Annotated edit history of
iSCSINotes version 1, including all changes.
View license author blame.
Rev |
Author |
# |
Line |
1 |
DanielLawson |
1 |
! Exporting a tape drive via iSCSI |
|
|
2 |
|
|
|
3 |
The Enterprise iSCSI Target stack doesn't really support tapes yet, however there is a patch available to export RAW devices via iSCSI. This only applies to a specific version of iscsitarget however!. Full support is on the roadmap, but as of this writing (September 2008) there's no guarantee when or if it'll happen. |
|
|
4 |
|
|
|
5 |
You'll need iscsitarget version 0.4.14, eg from http://optusnet.dl.sourceforge.net/sourceforge/iscsitarget/iscsitarget-0.4.14.tar.gz |
|
|
6 |
|
|
|
7 |
Apply the patch for rawio support from here: http://sourceforge.net/mailarchive/attachment.php?list_name=iscsitarget-devel&message_id=1170171101.2822.23.camel@localhost.localdomain&counter=1 |
|
|
8 |
|
|
|
9 |
Build and install manually |
|
|
10 |
|
|
|
11 |
To configure iet, use lsscsi to find the appropriate [HCIL] numbers: |
|
|
12 |
<verbatim> |
|
|
13 |
[4:0:0:0] tape HP Ultrium 4-SCSI U24W /dev/st0 |
|
|
14 |
</verbatim> |
|
|
15 |
|
|
|
16 |
and then use something like the following in your ietd.conf |
|
|
17 |
<verbatim> |
|
|
18 |
Target iqn.2007-04.com.example:tape0 |
|
|
19 |
Lun 0 H=1,C=0,I=6,L=0,Type=rawio |
|
|
20 |
Type 1 |
|
|
21 |
</verbatim> |
|
|
22 |
|
|
|
23 |
! Exporting a tape autoloader via iSCSI |
|
|
24 |
|
|
|
25 |
Tape autoloaders work fine using the above version of iscsitarget and the rawio patch. You have to export both the tape drive devices and the changer device as the same target name. |
|
|
26 |
|
|
|
27 |
Find the HCIL numbers with lsscsi: |
|
|
28 |
<verbatim> |
|
|
29 |
[4:0:0:0] tape HP Ultrium 4-SCSI U24W /dev/st0 |
|
|
30 |
[4:0:0:1] mediumx HP 1x8 G2 AUTOLDR 1.70 - |
|
|
31 |
</verbatim> |
|
|
32 |
|
|
|
33 |
And then use something like the following in your ietd.conf: |
|
|
34 |
|
|
|
35 |
<verbatim> |
|
|
36 |
Target iqn.2007-04.com.example:changer0 |
|
|
37 |
Lun 0 H=4,C=0,I=0,L=0,Type=rawio |
|
|
38 |
Type 1 |
|
|
39 |
|
|
|
40 |
Lun 1 H=4,C=0,I=0,L=1,Type=rawio |
|
|
41 |
Type 1 |
|
|
42 |
</verbatim> |