On 10/26/2009 04:27 PM, Tomasz Chmielewski wrote: > >> Looking at it using wireshark I can see that the Login Command is >> generated every 17-18 seconds, >> even after the mtx command had failed. >> >> So there seems to be something weirdly configured this way, compared >> to the "manually" created >> device with a script. > > Did you compare the tgtadm commands generated with your config, and > the ones you used before? > One thing I noticed, is that the changer is defined before the (in my case) three tape drives. One of the configuration options for the changer is a reference to the tape drives using the lun number: tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun=4 --params "element_type=4,address=500,tid=1,lun=1" tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun=4 --params "element_type=4,address=500,tid=1,lun=2" tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun=4 --params "element_type=4,address=500,tid=1,lun=3" Only later on, the luns are defined: tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /root/tapes/notape1 --device-type tape tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun=1 --params scsi_sn="HUM1A00001" tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun=1 --params scsi_id="HP LTO3 ULTRIUM" tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun=1 --params product_id="LTO3 ULTRIUM" tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun=1 --params removable="1" tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun=1 --params vendor_id="HP" tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun=1 --params product_rev="0001" # Write cache is enabled (default) for lun 1. This maybe a reason for the problems? Albert -- 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 |