From 7bb16acf9ec548155a8d4ad9deae583991728598 Mon Sep 17 00:00:00 2001 From: Boaz Harrosh Date: Thu, 16 Apr 2009 18:54:40 +0300 Subject: [PATCH] osd-target: README: Add documentation for OSD backend administration 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 --- osd-target/README | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/osd-target/README b/osd-target/README index 9513496..cd34c24 100644 --- a/osd-target/README +++ b/osd-target/README @@ -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