[Stgt-devel] VTL - tgtadm syntax additions (Long)

Mark Harvey markh794
Tue Mar 27 05:08:30 CEST 2007


On 3/27/07, Douglas Gilbert <dougg at torque.net> wrote:
> Mark Harvey wrote:
> > On 3/26/07, Ming Zhang <blackmagic02881 at gmail.com> wrote:
> >> On Mon, 2007-03-26 at 16:37 +1000, Mark Harvey wrote:
> >>> On 3/26/07, Ming Zhang <blackmagic02881 at gmail.com> wrote:
> >>>> On Mon, 2007-03-26 at 10:19 +1000, Mark Harvey wrote:
> >>>>> 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.
> >>>> looks fine to me. then u also need command to load/eject virtual
> >>>> cartridge? and each cartridge will need some parameters as well?
> >>> Good point. To load virtual media into a single SSC device, some way
> >>> of a user being able to identify the virtual media name will be
> >>> required (from a command line).
> >> yes, need a barcode, and maybe a WORM media or not, and blah blah u can
> >> think of. :P
> > The 'media type' is set in the virtual media 'header'. I reserve the
> > first xxx bytes of the file for MAM, where the media type is defined.
> > e.g. WORM, Cleaning, Data etc.
> >
> > I have another utility to make the virtual media. i.e. Create a file
> > and create a default MAM record.
> >
> >>> The 'load' and unload / eject commands are sent to the tape drive
> >>> itself. Its more a matter of being able to specify the media ID /
> >>> barcode. The Load command is an 'open()', while a eject is a 'close()'
> >> yes. we have 2 set, one set from backup app and another from emulation
> >> the user actions on physical drives.
> >>
> >>> There will be some sort of internal interface between the SMC and SSC
> >>> so a 'path name' to the virtual media can be passed. e.g. A MOVE
> >>> MEDIUM command will basically pass the virtual media name (filename)
> >>> to the SSC Logical unit.
> >> yes, will you emulate ADI as well?
> > ADI ??
>
> Perhaps the "Automation/Driver Interface" which has
> a command set known as ADC and a transport layer
> known as ADT.
> Here is an abstract for ADC:
> "Media changer (automation) devices use a private
> communication link for monitoring and controlling
> the removable medium devices (drives) installed
> in them. The proposed Automation/Drive Interface -
> Commands - 2 (ADC-2) standard specifies commands
> issued by automation devices to the drives."
>
> http://www.t10.org/ftp/t10/drafts/adc/adc-r07.pdf
> http://www.t10.org/ftp/t10/drafts/adt/adt-r14.pdf
>
> Doug Gilbert
>
Many thanks for the pointer..

So much to learn, so little time. :)

I'm downloading them now.

Mark



More information about the stgt mailing list