[stgt] Using tgtd to pass through a SCSI tape drive
Tim Small
tim at seoss.co.uk
Thu Aug 5 10:43:04 CEST 2010
On 01/08/10 01:54, Mark Harvey wrote:
> On Sat, Jul 31, 2010 at 6:31 PM, Mark Harvey<markh794 at gmail.com> wrote:
>
> The tests finally completed. All tests were successful
Same here with the patch you supplied - FYI I did:
1. Test using bacula's "btape" test routines on a Debian 5 initiator
2. "mt -f /dev/stX erase" from a Debian 5 initiator
3. Various backup runs using Seagate Backup Exec 12.5 from a Windows
Server 2003 initiator
The tape drive is:
Vendor identification: HP
Product identification: Ultrium 2-SCSI
Product revision level: S63D
Thanks very much for the quick turn-around...
FWIW, I'm exporting the drive like this (in case it's of any use as an
example for the docs):
#!/bin/sh -e
#
# Export the first tape drive via iSCSI as a passthrough device, and enable
# header digests, whilst limiting access to a single IP address.
#
TAPEDRIVESG=$(lsscsi -g | awk '$2 == "tape" { print $NF; exit}')
/usr/local/bin/tgtd&& \
/usr/local/bin/tgtadm --lld iscsi --mode target --op new --tid=1 --targetname iqn.2009-02.com.debian:tapedrive&& \
/usr/local/bin/tgtadm -d --lld iscsi --mode logicalunit --op new --tid 1 --lun 1 --backing-store=${TAPEDRIVESG} --bstype=sg --device-type=pt&& \
/usr/local/bin/tgtadm --lld iscsi --mode target --op update --tid 1 --name HeaderDigest --value CRC32C&& \
/usr/local/bin/tgtadm --lld iscsi --mode target --op bind --tid 1 -I 192.168.0.3
Tim.
--
South East Open Source Solutions Limited
Registered in England and Wales with company number 06134732.
Registered Office: 2 Powell Gardens, Redhill, Surrey, RH1 1TQ
VAT number: 900 6633 53 http://seoss.co.uk/ +44-(0)1273-808309
--
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