
I used Generic SCSI Target Subsystem for Linux from http://scst.sourceforge.net/
See this How to install scst on Gentoo Linux http://iscsi-scst.sourceforge.net/SCST_Gentoo_HOWTO.txt
or
http://iscsi-scst.sourceforge.net/iscsi-scst-howto.txt
I am using mhvtl release 0.18-1 http://sites.google.com/site/linuxvtl2/mhvtl-2009-12-15.tgz?attredirects=0
- CODE: SELECT ALL
scst-mhvtl ~ # lsscsi -g
[0:0:0:0] disk ATA VBOX HARDDISK 1.0 /dev/sda /dev/sg0
[0:0:1:0] cd/dvd VBOX CD-ROM 1.0 /dev/sr0 /dev/sg1
[2:0:0:0] mediumx SPECTRA PYTHON 5500 /dev/sch0 /dev/sg6
[2:0:1:0] tape QUANTUM SDLT600 5500 /dev/st0 /dev/sg2
[2:0:2:0] tape QUANTUM SDLT600 5500 /dev/st1 /dev/sg3
[2:0:3:0] tape IBM ULT3580-TD4 5500 /dev/st2 /dev/sg4
[2:0:4:0] tape IBM ULT3580-TD4 5500 /dev/st3 /dev/sg5
scst-mhvtl ~ #
- CODE: SELECT ALL
scst-mhvtl ~ # modprobe scst
scst-mhvtl ~ # modprobe scst_tape
scst-mhvtl ~ # modprobe scst_changer
scst-mhvtl ~ # cat /proc/scsi_tgt/scsi_tgt
Device (host:ch:id:lun or name) Device handler
0:0:0:0 none
0:0:1:0 none
2:0:1:0 dev_tape
2:0:2:0 dev_tape
2:0:3:0 dev_tape
2:0:4:0 dev_tape
2:0:0:0 dev_changer
- CODE: SELECT ALL
scst-mhvtl ~ # cat /etc/iscsi-scstd.conf
Target iqn.2010-23.us.nimsa:changer
Target iqn.2010-23.us.nimsa:tape.1
Target iqn.2010-23.us.nimsa:tape.2
Target iqn.2010-23.us.nimsa:tape.3
Target iqn.2010-23.us.nimsa:tape.4
- CODE: SELECT ALL
scst-mhvtl ~ # cat /etc/scst.conf
[HANDLER changer]
DEVICE 2:0:0:0
################
[HANDLER tape]
DEVICE 2:0:1:0
DEVICE 2:0:2:0
DEVICE 2:0:3:0
DEVICE 2:0:4:0
[GROUP Default_iqn.2010-23.us.nimsa:changer]
[GROUP Default_iqn.2010-23.us.nimsa:tape.1]
[GROUP Default_iqn.2010-23.us.nimsa:tape.2]
[GROUP Default_iqn.2010-23.us.nimsa:tape.3]
[GROUP Default_iqn.2010-23.us.nimsa:tape.4]
[ASSIGNMENT Default_iqn.2010-23.us.nimsa:changer]
DEVICE 2:0:0:0,0
[ASSIGNMENT Default_iqn.2010-23.us.nimsa:tape.1]
DEVICE 2:0:1:0,0
[ASSIGNMENT Default_iqn.2010-23.us.nimsa:tape.2]
DEVICE 2:0:2:0,0
[ASSIGNMENT Default_iqn.2010-23.us.nimsa:tape.3]
DEVICE 2:0:3:0,0
[ASSIGNMENT Default_iqn.2010-23.us.nimsa:tape.4]
DEVICE 2:0:4:0,0
- CODE: SELECT ALL
/etc/init.d/scst start
/etc/init.d/iscsi-scst start
- CODE: SELECT ALL
scst-mhvtl ~ # scstadmin -sessions
Collecting current configuration.. done.
Target Name Initiator Name Group Name Command Count
iscsi iqn.1991-05.com.microsoft:scst-mhvtl-win2 Default_iqn.2010-23.us.nimsa:tape.2 0
iscsi iqn.1991-05.com.microsoft:scst-mhvtl-win2 Default_iqn.2010-23.us.nimsa:tape.1 0
iscsi iqn.1991-05.com.microsoft:scst-mhvtl-win2 Default_iqn.2010-23.us.nimsa:changer 0
iscsi iqn.1991-05.com.microsoft:scst-mhvtl-win2 Default_iqn.2010-23.us.nimsa:tape.4 0
iscsi iqn.1991-05.com.microsoft:scst-mhvtl-win2 Default_iqn.2010-23.us.nimsa:tape.3 0
All done.
scst-mhvtl ~ #
For an ISCSI initiator, I used Microsoft iSCSI Software Initiator Version 2.08 on Windows 2003.
I was able to connect to the targets and see the changer and drives. I had to install some drivers for the tape drives afterward.
Then I used networker to check the tape library and tape drives.
>>>>>>It all worked just fine.



