Amanda-Users

Re: Making certain the correct changer slot is selected before running amdump

2006-04-15 10:27:37
Subject: Re: Making certain the correct changer slot is selected before running amdump
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Sat, 15 Apr 2006 10:23:47 -0400
On Sat, Apr 15, 2006 at 09:21:22AM -0400, stan wrote:
> On Sat, Apr 15, 2006 at 05:46:52AM -0400, Joshua Baker-LePain wrote:
> > On Sat, 15 Apr 2006 at 5:24am, stan wrote
> > 
> > >On Sat, Apr 15, 2006 at 12:20:16AM -0400, Gene Heskett wrote:
> > 
> > >>You can go ahead and write such a beast, but if the tapes are already
> > >>labeled, amcheck can do that just fine.
> > >
> > >Mmm, as far as I know amcheck can tell me if the correct tape is loaded,
> > >but I'll stil need to write something that will run amcheck, check the
> > >results of it (does it return a status or do I have to check the text
> > >it outputs), then run amtape next slot, check again, and loop untill
> > >it gets a good status (or has checked all slots).
> > 
> > With my changer (and chg-zd-mtx), amtape will scan through all available 
> > slots until it finds (or doesn't) the tape with the label it's expecting.
> > 
> Cool, perhaps mine will work that way if I label all the tapes?
> I'm using cchg-multi with each "slot" consisting of a RAIT of 1 vatpe, 
> one physical tape. The tape drive is a single tape unit, not a changer.
> What amtape command are you issuing? None of the ones listed in the man
> page seem to request this, as far as I can tell.
> 

Stan,
you are trekking through basically uncharted waters.

- RAIT is not new, but was seldom used til recently with vtape/tape
  combos
- vtape is fairly new, and so are changers for vtape
- the combination of a RAIT with changer for vtape and no
  changer, or manual changer, for physical tape is certainly
  new to me.

Some of us may be looking to you for the HOW-TO for some of
these combinations.

You need a more intelligent wrapper, so you will have to author
it yourself.  Just a couple of points.

Amanda has a facility to inquire what tape it expects next.
I forget what it is, seldom used it.  Probably one of the
amadmin options.

You will have to check the labels of the two drives separately
since I don't think there is any single RAIT changer script.
I could be wrong there.

I suggest you not hard code the device names but query or
parse the configuration files.  Maybe amgetconf has needed
options.

jl
-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)