{"id":94,"date":"2008-09-09T15:41:07","date_gmt":"2008-09-09T02:41:07","guid":{"rendered":"http:\/\/www.meta.net.nz\/~daniel\/blog\/?p=94"},"modified":"2008-11-04T12:10:58","modified_gmt":"2008-11-03T23:10:58","slug":"exporting-tape-autoloaders-via-iscsi","status":"publish","type":"post","link":"https:\/\/www.meta.net.nz\/~daniel\/blog\/2008\/09\/09\/exporting-tape-autoloaders-via-iscsi\/","title":{"rendered":"Exporting Tape Autoloaders via iSCSI"},"content":{"rendered":"<p>A while ago I posted about {{post id=&#8221;iscsi-for-scsi-device-passthrough-under-xen-enterprise&#8221; text=&#8221;exporting a tape drive via iSCSI&#8221;}} to enable windows VMs to backup to a SCSI tape drive under Citrix Xenserver.   I spent a couple of hours googling for whether or not you could do the same thing with a tape autoloader, and didn&#8217;t find a lot of useful information.<\/p>\n<p>So, I just dived in and tried it, and it turns out exactly the same process works fine for exporting a tape autoloader via iSCSI as well, as long as you are slightly careful about your configuration file.<\/p>\n<p>First of all, find your <a href=\"http:\/\/www.wlug.org.nz\/HCIL\">HCIL<\/a> numbers with lsscsi:<br \/>\n[code]<br \/>\n[4:0:0:0]    tape    HP       Ultrium 4-SCSI   U24W  \/dev\/st0<br \/>\n[4:0:0:1]    mediumx HP       1&#215;8 G2 AUTOLDR   1.70  &#8211;<br \/>\n[\/code]<\/p>\n<p>So, we&#8217;ve got an HP Ultrium 4 tape drive on 4:0:0:0, and a 1&#215;8 G2 Autoloader on 4:0:0:1. Let&#8217;s configure IETd:<\/p>\n<p>[code]<br \/>\nTarget iqn.2007-04.com.example:changer0<br \/>\nLun 0 H=4,C=0,I=0,L=0,Type=rawio<br \/>\nType 1<br \/>\nInitialR2T No<br \/>\nImmediateData Yes<br \/>\nxMaxRecvDataSegmentLength 262144<\/p>\n<p>Lun 1 H=4,C=0,I=0,L=1,Type=rawio<br \/>\nType 1<br \/>\n[\/code]<\/p>\n<p>A couple of points to note:<\/p>\n<ul>\n<li>I&#8217;ve named it changer0, you don&#8217;t have to<\/li>\n<li>You do have to make sure both the tape drive device(s) (in this case, 4:0:0:0) and the changer device (4:0:0:1) are exported as different LUNs under the same target<\/li>\n<li>The other options (InitialR2T, ImmediateData etc) may or may not work for you, consult the IETd documentation for what you actually need and want.\n<\/li>\n<\/ul>\n<p>Once you&#8217;ve restarted the iscsi target, you can load up an initiator and connect to it, and you should see both devices being exported under the one target. If you accidentally use a different target for the changer and the tape drive, you&#8217;ll find that your backup software probably can see the changer device, but will tell you there are not available drives. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>A while ago I posted about {{post id=&#8221;iscsi-for-scsi-device-passthrough-under-xen-enterprise&#8221; text=&#8221;exporting a tape drive via iSCSI&#8221;}} to enable windows VMs to backup to a SCSI tape drive under Citrix Xenserver. I spent a couple of hours googling for whether or not you could do the same thing with a tape autoloader, and didn&#8217;t find a lot of [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[12,8,10],"tags":[19,26,17,18,25,24],"_links":{"self":[{"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/posts\/94"}],"collection":[{"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/comments?post=94"}],"version-history":[{"count":2,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/posts\/94\/revisions"}],"predecessor-version":[{"id":102,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/posts\/94\/revisions\/102"}],"wp:attachment":[{"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/media?parent=94"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/categories?post=94"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/tags?post=94"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}