Re: Strange sendtargets behaviour

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux