I think this example in your previous mail should also go to the tgtd manpage. I like when real examples are available from the manpage itself. We should probably have a "Passthrough" section in the tgtd manpage too. that describes how to use it and what limitations there are (can one share pt devices with local apps?, can you export the same physical device through multiple targets concurrently?). With three examples : pt of a scsi disk, pt of a cdrom, and marks tape library example in his email above. regards ronnie sahlberg On Thu, Jul 29, 2010 at 7:56 PM, Mark Harvey <markh794@xxxxxxxxx> wrote: > FUJITA Tomonori wrote: >> >> On Thu, 29 Jul 2010 11:38:10 +1000 >> Mark Harvey <markh794@xxxxxxxxx> wrote: >> >> >>> >>> I've had success using the passthru / sg devices for tape and robot >>> >> >> Cool. This is actually working, right? >> >> Probably, we put this info somewhere (like under doc directory). >> > > I've copied 'README.iscsi' to README.passthrough. > > I'm about 3/4 done updating README.passthrough with this information and > will submit a patch (hopefully tomorrow) > > I also plan on running some tests using NetBackup. I was hoping I was going > to get time today, but 'work' got in the way. > > Hopefully in the next couple of days I can run some load testing.. > > Anything / any status you would like collected while running ? >> >> >>> >>> On "target" host: >>> # lsscsi -g >>> [0:0:0:0] disk MAXTOR ATLAS10K4_36SCA DFM0 /dev/sda /dev/sg0 >>> [0:0:6:0] process PE/PV 1x3 SCSI BP 1.1 - /dev/sg1 >>> [2:0:0:0] tape IBM ULT3580-TD4 8192 /dev/st0 /dev/sg2 >>> [2:0:0:1] mediumx IBM 3573-TL 6.50 - /dev/sg3 >>> [2:0:1:0] tape IBM ULT3580-TD4 8192 /dev/st1 /dev/sg4 >>> [2:0:1:1] mediumx IBM 3573-TL 6.50 - /dev/sg5 >>> >>> # tgtadm --lld iscsi --op new --mode target --tid 1 -T >>> iqn.2001-04.com.example:vtl1 >>> # tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 >>> --bstype=sg --device-type=pt -b /dev/sg2 >>> # tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 2 >>> --bstype=sg --device-type=pt -b /dev/sg3 >>> # tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL >>> # tgtadm --lld iscsi --op show --mode target >>> >>> Target 1: iqn.2001-04.com.example:vtl1 >>> System information: >>> Driver: iscsi >>> State: ready >>> I_T nexus information: >>> LUN information: >>> LUN: 0 >>> Type: controller >>> SCSI ID: IET 00010000 >>> SCSI SN: beaf10 >>> Size: 0 MB >>> Online: Yes >>> Removable media: No >>> Backing store type: null >>> Backing store path: None >>> Backing store flags: >>> LUN: 1 >>> Type: (null) >>> >> >> Seems that we could improve "Type" message. >> >> Thanks! >> >> > > -- > To unsubscribe from this list: send the line "unsubscribe stgt" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe stgt" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html