Success: I got MHVTL to work on Windows via iSCSI

GNU General Public License Linux disk based Virtual Tape Library
Developed by Mark Harvey - markh794@gmail.com
To get started, go to: http://sites.google.com/site/linuxvtl2/

Success: I got MHVTL to work on Windows via iSCSI

Postby nia » Sun Jan 24, 2010 5:15 am

I got MHVTL to work on Windows via iSCSI . :shock:
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. :o

Image

Image

Image
User avatar
nia
Forum Founder
 
Posts: 242
Joined: Sat Dec 12, 2009 12:51 pm
Location: MI, USA

Re: I got MHVTL to work on Windows via Linux ISCSI Target

Postby tomkat183 » Sun Jan 24, 2010 12:42 pm

WOW .. That is very cool .. :D
Good Job nia !
tomkat183
Member
 
Posts: 16
Joined: Wed Dec 16, 2009 6:21 pm

great job!

Postby otmanix » Sun Jan 24, 2010 1:29 pm

I wouldn't even think about running Networker server on Windows ;)
But this is so cool, great job nia!!!

Otmanix
otmanix
Registered
 
Posts: 4
Joined: Thu Jan 07, 2010 11:01 am
Location: Bavaria, Germany

Re: I got MHVTL to work on Windows via Linux ISCSI Target

Postby rami766 » Sun Jan 24, 2010 4:08 pm

Very nice nia ... 8-)
Rami
rami766
Member
 
Posts: 39
Joined: Sat Aug 14, 2010 12:04 am

Re: Success: I got MHVTL to work on Windows via iSCSI

Postby jeffcai » Tue Feb 23, 2010 10:00 am

From where can I download the driver for the tape drives?

On my windows 2003, those tape drive could not be initialized.

Thanks,
Jeff
jeffcai
Registered
 
Posts: 2
Joined: Tue Feb 23, 2010 8:17 am

Re: Success: I got MHVTL to work on Windows via iSCSI

Postby nia » Tue Feb 23, 2010 11:33 am

For the IBM drives, go here: ftp://ftp.software.ibm.com/storage/devdrvr/Windows/Win2003/Latest/

For the Quantum drives, I just used Windows update driver utility in device manager and chose option 1 so windows can get the driver from Windows update. I suspect you can also download from Quantum web site here:
http://www.quantum.com/ServiceandSupport/SoftwareandDocumentationDownloads/SDLT600/Index.aspx

The Medium changer, does not have a driver that I could find but if it shows configured as unknown medium changer with Microsoft generic driver then it should be fine.

Good Luck
~nia
User avatar
nia
Forum Founder
 
Posts: 242
Joined: Sat Dec 12, 2009 12:51 pm
Location: MI, USA

Re: Success: I got MHVTL to work on Windows via iSCSI

Postby jeffcai » Wed Feb 24, 2010 3:20 am

It works now.

Thanks.
Jeff
jeffcai
Registered
 
Posts: 2
Joined: Tue Feb 23, 2010 8:17 am

Re: Success: I got MHVTL to work on Windows via iSCSI

Postby nia » Fri Feb 26, 2010 9:48 pm

Jeff,
Which Linux distro have used for the SCSI Target Subsystem and did you have to patch the Kernel also ?
~nia
User avatar
nia
Forum Founder
 
Posts: 242
Joined: Sat Dec 12, 2009 12:51 pm
Location: MI, USA

Re: Success: I got MHVTL to work on Windows via iSCSI

Postby IKP » Thu Mar 04, 2010 3:38 pm

Just to say thanks...

Got this working using Oracle Enterprise Linux 5 Update 4 x86_64.

Now have training Windows servers accessing the Linux VTL
IKP
Member
 
Posts: 15
Joined: Thu Mar 04, 2010 3:36 pm

Re: Success: I got MHVTL to work on Windows via iSCSI

Postby nia » Thu Mar 04, 2010 3:58 pm

IKP wrote:Just to say thanks...

Got this working using Oracle Enterprise Linux 5 Update 4 x86_64.

Now have training Windows servers accessing the Linux VTL


YW,

I am glad it worked for you also ..

nia
~nia
User avatar
nia
Forum Founder
 
Posts: 242
Joined: Sat Dec 12, 2009 12:51 pm
Location: MI, USA

Next

Return to MHVTL Discussion Forums

Who is online

Users browsing this forum: d_y19 and 0 guests