From 6f7abc26d0e8d67052d104abfaad5a30bc6467b5 Mon Sep 17 00:00:00 2001 From: Boaz Harrosh Date: Mon, 19 Oct 2009 15:50:07 +0200 Subject: [PATCH] {TODO} osd-target: up: Launch a 2nd LUN For multy-device mirror configuration and all future multi device configurations we should be able to export multiple targets/luns from the same server. Each with it's own backing store. TODO: Just us we establish the second lun in this patch, we should remove the automatic- first-lun patch on /tmp/$user/... and have backing-device path here inside the script. (And not hard coded in source-code.) Signed-off-by: Boaz Harrosh --- up | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/up b/up index 3ede784..e12b070 100755 --- a/up +++ b/up @@ -11,4 +11,12 @@ # DEBUG="-d 9" DEBUG="" -./tgt/usr/tgtd $DEBUG -f +./tgt/usr/tgtd $DEBUG -f & + +sleep 2 +./tgt/usr/tgtadm --lld iscsi --mode logicalunit \ + --op new --tid 1 --lun 2 --bstype=osdemu --device-type osd \ + --backing-store /tmp/tgt-bharrosh-2/ + +tgt/usr/tgtadm --lld iscsi --mode target --op show +wait