Amanda-Users

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

2006-04-15 11:52:00
Subject: Re: Making certain the correct changer slot is selected before running amdump
From: stan <stanb AT panix DOT com>
To: Jon LaBadie <jon AT jgcomp DOT com>
Date: Sat, 15 Apr 2006 11:47:55 -0400
On Sat, Apr 15, 2006 at 10:23:47AM -0400, Jon LaBadie wrote:
> 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.

OK, taks acepted :-)

It's the least I can do for all the time people have spent helping me.
> 
> 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.

OK, I think I'm going to go ahead and label all the vtapes/physical tapes, 
and then work on this, as it will minimize the variables. Seems reasonable,
as it just adds a bit of overhead to the inital setup.

I'll work on it next wek, then post the HOWTO here.

Thanks, to you, and everyone else for all the help!!

-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967