[stgt] Strange sendtargets behaviour
Chris Webb
chris at arachsys.com
Mon Sep 14 19:44:54 CEST 2009
In case you have problems reproducing this one, the following script run
straight after boot is sufficient for me, with nothing else running except
for iscsid so open-iscsi can run:
#!/bin/bash
tgtd
dd if=/dev/zero of=/tmp/disk bs=1M count=1
for ID in `seq 1 100`; do
TARGET=iqn.2008-03.com.elastichosts:`uuidgen`:`uuidgen`
tgtadm -L iscsi -m target -o new -t $ID -T $TARGET
tgtadm -L iscsi -m logicalunit -o new -t $ID -l 1 -b /tmp/disk
tgtadm -L iscsi -m target -o bind -t $ID -I ALL
done
iscsiadm -m node -T $TARGET -l
while [ -z "`iscsiadm -m discovery -t sendtargets -p localhost 2>&1 >/dev/null`" ]; do
iscsiadm -m node -T $TARGET -u
iscsiadm -m node -T $TARGET -l
done
echo "Exiting: corruption now present"
Best wishes,
Chris.
--
To unsubscribe from this list: send the line "unsubscribe stgt" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the stgt
mailing list