Re: Strange sendtargets behaviour

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

 



I have one other observation that might be helpful. The error case can be
detected by non-empty stderr from iscsiadm discovery. Using this, I wrote two
tight loops:

This one runs indefinitely without aborting:

  while [ -z "`iscsiadm -m discovery -t sendtargets -p $HOST 2>&1 >/dev/null`" ]; do
    iscsiadm -m node -T $TARGET -l
    iscsiadm -m node -T $TARGET -u
  done

where this one crashes after a few repeats, leaving the sendtargets data
corrupted for future discoveries:

  iscsiadm -m node -T $TARGET -l
  while [ -z "`iscsiadm -m discovery -t sendtargets -p $HOST 2>&1 >/dev/null`" ]; do
    iscsiadm -m node -T $TARGET -u
    iscsiadm -m node -T $TARGET -l
  done

This means that the corruption appears following a login, and disappears again
following the corresponding logout.

Cheers,

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