Re: how to setup a virtual tape using scsi-target-utils?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

If you just want to create a tape drive with a tape loaded, these
commands should work :

# create a blank tape
tgtimg --op new --device-type tape --barcode 12345 --size 100 --type
data --file /data/tape001.img


# create a target
tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.ronnie.test

# create a SSC LUN for with the blank tape above loaded into the device
tgtadm --lld iscsi --mode logicalunit --op new --tid 1 --lun 1 -b
/data/tape001.img --device-type=tape

# set up access control so anyone/everyone can use the LUN
tgtadm --lld iscsi --op bind --mode target --tid 1 -I ALL



This will create a virtual tape drive with a virtual tape loaded into it.


If you want to create a full VTL with lots of different tapes and
mediachanger devices  there are examples on how to create a
media jukebox for emulated CDROM devices in the manpage for tgtadm.
That example should easy to modify to apply to tapes instead of CDROM.


regards
ronnie sahlberg


On Sat, Jul 14, 2012 at 8:55 AM, Rob Evers <revers@xxxxxxxxxx> wrote:
> Could someone point me to set of directions
> on how to setup a virtual iscsi tape drive using
> scsi-target-utils?
>
> Thank, Rob
> --
> 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


[Index of Archives]     [Linux SCSI]     [Linux RAID]     [Linux Clusters]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]

  Powered by Linux