{"id":49,"date":"2007-09-20T16:53:07","date_gmt":"2007-09-20T03:53:07","guid":{"rendered":"http:\/\/www.meta.net.nz\/~daniel\/blog\/2007\/09\/20\/iscsi-for-scsi-device-passthrough-under-xen-enterprise\/"},"modified":"2007-09-20T19:24:58","modified_gmt":"2007-09-20T06:24:58","slug":"iscsi-for-scsi-device-passthrough-under-xen-enterprise","status":"publish","type":"post","link":"https:\/\/www.meta.net.nz\/~daniel\/blog\/2007\/09\/20\/iscsi-for-scsi-device-passthrough-under-xen-enterprise\/","title":{"rendered":"iSCSI for SCSI device passthrough under Xen Enterprise"},"content":{"rendered":"<p>I recently had to add a SCSI tape drive to a Xen Enterprise server, and needed to use BackupExec under one of the Windows domU&#8217;s as the backup software.   Luckily, Greig did this a few months ago already using the<a href=\"http:\/\/iscsitarget.sourceforge.net\/\"> <\/a><a href=\"http:\/\/iscsitarget.sourceforge.net\/\">iSCSI Enterprise Target<\/a>, and put his notes up on the WLUG Wiki <a href=\"http:\/\/www.wlug.org.nz\/XenNotes\">here<\/a>.<\/p>\n<p>I hit one problem however &#8211; when using NTBackup to test the system, it would write about 20 MB to tape, then fail. Greig pointed out he&#8217;d only ever used BackupExec, which was the software that was going to be used finally anyway, so I installed that and then it worked fine.<\/p>\n<p>Also, going one step further, it&#8217;s possible to use the same technique to push USB mass storage devices over iSCSI to domUs. As Xen Enterprise doesn&#8217;t have a nice way of passing USB mass storage devices through to domUs yet, this is a very good solution in the interim<\/p>\n<p>[code]<\/p>\n<p>Target iqn.2007-04.com.example:tape0<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>Target iqn.2007-04.com.example:usb0<br \/>\nLun 1 Path=\/dev\/sdb,Type=fileio<br \/>\n[\/code]<\/p>\n<p>As it refers to the scsi device, which will change if you unplug and re-insert a USB block device, it makes a lot of sense to use udev to map your USB mass storage device to a specific \/dev entry.<\/p>\n<p>I don&#8217;t have a feeling for how robust this is yet.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I recently had to add a SCSI tape drive to a Xen Enterprise server, and needed to use BackupExec under one of the Windows domU&#8217;s as the backup software. Luckily, Greig did this a few months ago already using the iSCSI Enterprise Target, and put his notes up on the WLUG Wiki here. I hit [&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,4,10],"tags":[],"_links":{"self":[{"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/posts\/49"}],"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=49"}],"version-history":[{"count":0,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/posts\/49\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/media?parent=49"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/categories?post=49"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.meta.net.nz\/~daniel\/blog\/wp-json\/wp\/v2\/tags?post=49"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}