[Stgt-devel] VTL - tgtadm syntax additions (Long)
FUJITA Tomonori
fujita.tomonori
Mon Mar 26 06:05:38 CEST 2007
From: "Mark Harvey" <markh794 at gmail.com>
Subject: [Stgt-devel] VTL - tgtadm syntax additions (Long)
Date: Mon, 26 Mar 2007 10:19:21 +1000
> As the idea of hijacking the 'backing file' for use as a configuration
> file has not received the most positive resonse, I have put together
> some ideas for adding to the syntax of tgtadm to allow the
> configuration and customization of SSC and SMC devices.
>
> I have not attempted to implement any of the syntax, but am posting to
> the list for comments before putting any effort into coding.
>
> Here goes....
>
>
> tgtadm --lld iscsi --mode logicalunit --op update --tid=[] --lun=[]
> --value=[value]
>
> Where value is:
>
> If device_type == 1 (SSC)
>
> VendorIdent="SONY"
> ProductIdent="SDX-900V"
> ProductRev="5401"
> SerialNumber="XYZZY_10"
>
> If device_type == 8 (SMC), in addition to SSC values...
> VendorIdent="STK"
> ProductIdent="L700"
> ProductRev="5400"
> SerialNumber="XYZZY"
>
> To configure
> (Reserve address space)
> ElementType=[1|2|3] StartAddress=[number] Quanity=[number]
> Sides=[1|2] (Single/double sided)
>
> (To reserve address space for 'drives')
> ElementType=4 StartAddress=[number] Quanity=[number] Type="ssc|smc|sbc"
>
> (To 'tie' a previously known SerialNumber to this Address..)
> ElementType=4 Address=[Within Range from above] SerialNumber="xxxxx"
>
> To 'populate' slots with 'media'
> ElementType=[2|3] BarCode="string"
>
> where ElementType 1 == Medium Transport (picker arm)
> ElementType 2 == Storage Element (Slots in robot)
> ElementType 3 == Import/Export Element (mailslots/Cartridge Access Port)
> ElementType 4 == Data Transport (SSC/SBC/MMC device - Tape,
> Optical, CD/DVD)
>
> Limits:
> VendorIdent, ProductIdent, ProductRev & SerialNumber can all be on one line...
>
> For Medium changers
> - We first need to 'reserve' number of slots for each element type:
> - Then Tie device S/No to a slot
> - Next fill Storage Slots and Import/Export with 'media'
>
>
> tgtadm --lld iscsi --mode logicalunit --op update --tid=[] --lun=[]
> VendorIdent="QUANTUM"
> tgtadm --lld iscsi --mode logicalunit --op update --tid=[] --lun=[]
> ProductIdent="SDLT600"
> tgtadm --lld iscsi --mode logicalunit --op update --tid=[] --lun=[]
> ProductRev="0001"
> tgtadm --lld iscsi --mode logicalunit --op update --tid=[] --lun=[]
> SerialNumber="XYZZY_10"
tgtadm adopts a syntax similar to open-iscsi. That is, it can do
something like:
tgtadm --lld iscsi --mode target --op update --tid 1 --name MaxRecvDataSegmentLength --value 16384
So why can't we do:
tgtadm --lld iscsi --mode logicalunit --op update --tid=1 --lun=0 --name VendorIdent --value QUANTUM
More information about the stgt
mailing list