Here is my first stab at tgt iSCSI target with mhvtl release mhvtl-2010-08-11.tgz :
After downloading the latest release of tgt : http://stgt.sourceforge.net/releases/tgt-1.0.8.tar.gz
and unpacking in a SUN/Oracle VirtualBox running Oracle Enterprise Linux 5.0 (2.6.18-194.el5),
I did the following: -- Also, refer to tgt-1.0.8/doc/README.iscsi
No errors encountered
Then attempted to start via sample init script:
But tgtd will not start due to missing some Perl Config stuff.. General.pm ..
After doing more digging .. found out I need to install the following:
After that ... tgt-1.0.8/scripts/initd.sample start was successful ..
# ps -ef | grep tgt
root 426 1 0 Aug28 ? 00:00:00 tgtd
root 427 426 0 Aug28 ? 00:00:00 tgtd
Next, I followed tgt-1.0.8/doc/README.passthrough to create/export iscsi targets for MHVTL:
Above created a controller target along with a library and a tape drive.
Then, I went to my iscsi-initiator linux box and did the following:
# mt -f /dev/st0 status
SCSI 2 tape drive:
File number=-1, block number=-1, partition=0.
Tape block size 0 bytes. Density code 0x0 (default).
Soft error count since last status=0
General status bits on (50000):
# mtx -f /dev/sg6 status
Storage Changer /dev/sg6:4 Drives, 203 Slots ( 4 Import/Export )
Data Transfer Element 0:Empty
Data Transfer Element 1:Empty
Data Transfer Element 2:Empty
Data Transfer Element 3:Empty
Storage Element 1:Full :VolumeTag=UDD001L5
Storage Element 2:Full :VolumeTag=UDD002L5
Storage Element 3:Full :VolumeTag=UDD003L5
Storage Element 4:Full :VolumeTag=UDD004L5
Below is the readme file I used: tgt-1.0.8/doc/README.passthrough
I have tried the same on a windows iSCSI initiator also:
I did not have the windows drivers for the IBM library but could not find one for the IET controller .. I saw on Google that it is not needed ..