[Stgt-devel] [PATCH] Make changes so that VTL stuff works properly ...

Mark Harvey markh794
Wed Jul 30 04:45:05 CEST 2008


OK, I've reproduced the core dump as well.

All my testing involved running the scripts/tgt-core-setup script.

This script (incorrectly) adds a backing file - so I never experienced
this core dump. When configured to startup with a backing file - loads
and unloads work without error.

Setting up the device without an initial backing file results in the
core dump once a write is attempted.

Cheers
Mark

On Wed, Jul 30, 2008 at 3:02 AM, Richard Sharpe
<realrichardsharpe at gmail.com> wrote:
> Here is the command I used to create DVDs ...
>
> iscsiadm -m node -T
> iqn.2008-03.com.datalane-inc:storage.dvd1.tyan1U00.sys1 -p
> 192.168.1.19:3260 -u
>  mtx -f /dev/sg4 load 3
> cdrecord -v -dao -ignsize -overburn dev=/dev/sg3 ./someDVD.iso
>
> Here is the script I use to set up the tape library:
>
> ./usr/tgtadm --lld iscsi --op new --mode target --tid 1 -T iqn.2008-03.com.datal
> ane-inc:storage.tape1.tyan1U00.sys1
> ./usr/tgtadm --lld iscsi --op new    --mode logicalunit --tid 1 --lun 1 -Y ssc -
> -bstype ssc
> ./usr/tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun 1 --params
>  vendor_id=QUANTUM,product_id=DLT7000,product_rev=0010,scsi_sn=DLMV010023,remova
> ble=1
> # Create the SMC device
> ./usr/tgtadm --lld iscsi --op new    --mode logicalunit --tid 1 --lun 2 -b /mnt/
> testing/virtual-tapes/smc -Y changer
> # Name it ...
> ./usr/tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun 2 --params
>  vendor_id=Quantum,product_id=DLT4700,product_rev=0010,scsi_sn=XYZZY_0,removable
> =1
> # Add a data transfer device (1 drive)
> ./usr/tgtadm --lld iscsi --op=update --mode logicalunit --tid 1 --lun 2 --params
>  element_type=4,start_address=1,quantity=1
> ./usr/tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun 2 --params
>  element_type=4,address=1,tid=1,lun=1
>
> # Medium Transport Elements
> ./usr/tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun 2 --params
>  element_type=1,start_address=16,quantity=1
>
> # Define the path to the virtual tapes
> ./usr/tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun 2 --params
>  media_home=/mnt/testing/virtual-tapes
>
> # Add media to slots ...
> ./usr/tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun 2 --params
>  element_type=2,start_address=1024,quantity=8
> ./usr/tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun 2 --params
>  element_type=2,address=1024,barcode=TAPE0000,sides=1
> ./usr/tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun 2 --params
>  element_type=2,address=1025,barcode=TAPE0001,sides=1
> ./usr/tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun 2 --params
>  element_type=2,address=1026,barcode=TAPE0002,sides=1
> ./usr/tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun 2 --params
>  element_type=2,address=1027,barcode=TAPE0003,sides=1
> ./usr/tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun 2 --params
>  element_type=2,address=1028,barcode=TAPE0004,sides=1
> ./usr/tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun 2 --params
>  element_type=2,address=1029,barcode=TAPE0005,sides=1
> ./usr/tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun 2 --params
>  element_type=2,address=1030,barcode=TAPE0006,sides=1
> ./usr/tgtadm --lld iscsi --op update --mode logicalunit --tid 1 --lun 2 --params
>  element_type=2,address=1031,barcode=TAPE0007,sides=1
>
> ./usr/tgtadm --lld iscsi --op show   --mode target
> ./usr/tgtadm --lld iscsi --op bind   --mode target --tid 1 -I ALL
>
> I used mtx to load a tape and then tar to save a job
> _______________________________________________
> Stgt-devel mailing list
> Stgt-devel at lists.berlios.de
> https://lists.berlios.de/mailman/listinfo/stgt-devel
>



More information about the stgt mailing list