Hi List I'm really interested in getting some basic VTL functionality up and running, it was a great surprise to see this is being built into stgt. So far, using 1.0.15 I have used the example VTL configuration file to create a robot and 3 drives which are visible to my host: scsi1 : iSCSI Initiator over TCP/IP Vendor: IET Model: Controller Rev: 0001 Type: RAID ANSI SCSI revision: 05 scsi 1:0:0:0: Attached scsi generic sg1 type 12 Vendor: HP Model: LTO3 ULTRIUM Rev: 0001 Type: Sequential-Access ANSI SCSI revision: 05 scsi 1:0:0:1: Attached scsi generic sg2 type 1 Vendor: HP Model: LTO3 ULTRIUM Rev: 0001 Type: Sequential-Access ANSI SCSI revision: 05 scsi 1:0:0:2: Attached scsi generic sg3 type 1 Vendor: HP Model: LTO3 ULTRIUM Rev: 0001 Type: Sequential-Access ANSI SCSI revision: 05 scsi 1:0:0:3: Attached scsi generic sg4 type 1 Vendor: STK Model: L700 Rev: 0001 Type: Medium Changer ANSI SCSI revision: 05 scsi 1:0:0:4: Attached scsi generic sg5 type 8 st: Version 20070203, fixed bufsize 32768, s/g segs 256 st 1:0:0:1: Attached scsi tape st0 st0: try direct i/o: yes (alignment 512 B) st 1:0:0:2: Attached scsi tape st1 st1: try direct i/o: yes (alignment 512 B) st 1:0:0:3: Attached scsi tape st2 st2: try direct i/o: yes (alignment 512 B) st1: Block limits 4 - 1048576 bytes. st0: Block limits 4 - 1048576 bytes. st2: Block limits 4 - 1048576 bytes. mtx looks OK: [root at linux-media ~]# mtx -f /dev/changer-sg5 status Storage Changer /dev/changer-sg5:3 Drives, 236 Slots ( 20 Import/Export ) Data Transfer Element 0:Empty Data Transfer Element 1:Empty Data Transfer Element 2:Empty Storage Element 1:Full :VolumeTag=LTO901L3 Storage Element 2:Full :VolumeTag=LTO902L3 Storage Element 3:Full :VolumeTag=LTO903L3 Storage Element 4:Empty:VolumeTag= Storage Element 5:Empty:VolumeTag= Storage Element 6:Empty:VolumeTag= . . . Trouble is when I try and load a tape to a drive: [root at linux-media ~]# mtx -f /dev/changer-sg5 load 2 mtx: Request Sense: Long Report=yes mtx: Request Sense: Valid Residual=no mtx: Request Sense: Error Code=70 (Current) mtx: Request Sense: Sense Key=Hardware Error mtx: Request Sense: FileMark=no mtx: Request Sense: EOM=no mtx: Request Sense: ILI=no mtx: Request Sense: Additional Sense Code = 15 mtx: Request Sense: Additional Sense Qualifier = 01 mtx: Request Sense: BPV=no mtx: Request Sense: Error in CDB=no mtx: Request Sense: SKSV=no MOVE MEDIUM from Element Address 1001 to 500 Failed This is how I created the tapes: cd /root/tapes/ tgtimg --op=new --device-type=tape --barcode="" --size=1 --type=clean --file=notape tgtimg --op=new --device-type=tape --barcode="LTO901L3" --size=1024 --type=data --file=LTO901L3 tgtimg --op=new --device-type=tape --barcode="LTO902L3" --size=1024 --type=data --file=LTO902L3 tgtimg --op=new --device-type=tape --barcode="LTO903L3" --size=1024 --type=data --file=LTO903L3 How I added them: tgtadm --lld iscsi --mode logicalunit --op update --tid 5 --lun 4 --params element_type=2,address=1000,barcode=LTO901L3,sides=1 tgtadm --lld iscsi --mode logicalunit --op update --tid 5 --lun 4 --params element_type=2,address=1001,barcode=LTO902L3,sides=1 tgtadm --lld iscsi --mode logicalunit --op update --tid 5 --lun 4 --params element_type=2,address=1002,barcode=LTO903L3,sides=1 tgt-admin -s: Target 5: iqn.2008-09.com.example:server.tape System information: Driver: iscsi State: ready I_T nexus information: I_T nexus: 13 Initiator: iqn.1991-05.com.microsoft:r2-node2.hisser.ad Connection: 1 IP Address: 192.168.100.95 I_T nexus: 16 Initiator: iqn.1994-05.com.redhat:f183937f6aa3 Connection: 0 IP Address: 192.168.100.10 LUN information: LUN: 0 Type: controller SCSI ID: IET 00050000 SCSI SN: beaf50 Size: 0 MB, Block size: 1 Online: Yes Removable media: No Readonly: No Backing store type: null Backing store path: None Backing store flags: LUN: 1 Type: tape SCSI ID: HP LTO3 ULTRIUM SCSI SN: HUM1A00001 Size: 0 MB, Block size: 1 Online: Yes Removable media: Yes Readonly: No Backing store type: ssc Backing store path: /root/tapes/notape1 Backing store flags: LUN: 2 Type: tape SCSI ID: HP LTO3 ULTRIUM SCSI SN: HUM1A00002 Size: 0 MB, Block size: 1 Online: Yes Removable media: Yes Readonly: No Backing store type: ssc Backing store path: /root/tapes/notape2 Backing store flags: LUN: 3 Type: tape SCSI ID: HP LTO3 ULTRIUM SCSI SN: HUM1A00003 Size: 0 MB, Block size: 1 Online: Yes Removable media: Yes Readonly: No Backing store type: ssc Backing store path: /root/tapes/notape3 Backing store flags: LUN: 4 Type: changer SCSI ID: IET 00050004 SCSI SN: 123:456:789:000 Size: 0 MB, Block size: 1 Online: Yes Removable media: Yes Readonly: No Backing store type: rdwr Backing store path: /root/smc Backing store flags: Account information: ACL information: ALL Can anyone see if I am missing a step here? Cheers James -- 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 |