Skip to content

Commit

Permalink
osd-target: README: Add documentation for OSD backend administration
Browse files Browse the repository at this point in the history
Usually for a single target we all use Pete's hack of auto
configuration of a single default target at /tmp/xxxx.

But for any real world use here are the instructions of how
to set up a more permanent target.

Signed-off-by: Boaz Harrosh <bharrosh@panasas.com>
  • Loading branch information
Boaz Harrosh committed Apr 16, 2009
1 parent 7685e34 commit 7bb16ac
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion osd-target/README
Original file line number Diff line number Diff line change
Expand Up @@ -121,5 +121,23 @@ You can redirect debug output to a file too.
Now, point an iSCSI initiator at this machine, port 3260, and
issue OSD commands.

If you want to add an osd-target by hand or add a second osd
logical unit issue the following commands:

# vim: set tw=72 :
[]$ ./tgtadm --lld iscsi --mode target --op new --tid 1 --targetname $(hostname)

[]$ ./tgtadm --lld iscsi --mode target --op bind --tid 1 --initiator-address ALL

[]$ ./tgtadm --lld iscsi --mode logicalunit --op new --tid 1 --lun 1 \
--backing-store /tmp/tgt-$(id -nu) --device-type osd

[]$ ./tgtadm --lld iscsi --mode logicalunit --op update --tid 1 --lun 1 \
--name=scsi_sn --value=$(hostname)

And optionaly these for preformance:

[]$ ./tgtadm --lld iscsi --mode target --op update --tid 1 \
--name MaxRecvDataSegmentLength --value 262144

[]$ ./tgtadm --lld iscsi --mode target --op update --tid 1 \
--name FirstBurstLength --value 262144

0 comments on commit 7bb16ac

Please sign in to comment.