[stgt] Using tgtd to pass through a SCSI tape drive

FUJITA Tomonori fujita.tomonori at lab.ntt.co.jp
Thu Jul 29 03:54:59 CEST 2010


On Thu, 29 Jul 2010 11:38:10 +1000
Mark Harvey <markh794 at gmail.com> 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).


> 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 at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html



More information about the stgt mailing list