Re: Chg-disk question
2004-11-03 07:27:03
On Wednesday 03 November 2004 04:43, Griffiths, Alan wrote:
>That's how I thought it worked, but
>
>amtape <config> show
IIRC this reports only that which has been labeled and is in the
tapelist.
>never shows more than tapecycle slots in the changer. So as far I
> can see there is no way to reference slot tapecycle+1, tapecycle+2
> etc. For example,
>
>amtape <config> label <tapecycle+1>
>
>Returns
>
>amtape: could not find label <tapecycle+1> in tape rack.
>
>Even though a vtape with that label exists. If I extend tapecycle so
> that new_tapecycle=old_tapecycle+1 then the previous command will
> correctly load the specified tape.
>
>Am I missing something?
>
It sounds as if you will have to extend the tapecycle after having
marked a current vtape as no-reuse. Or, rather than marking it
no-reuse and going to all that folderol, since its just a dir on that
partition, just rename it out of the current slotnn nameing scheme.
Frankly, amanda doesn't make this part brain dead easy, and probably
for a good reason.
I think, rather than involve amanda in it I'd do it all by hand by
just renameing that slot to foo.save, mkdir a new slotnn, and copy
the first 00000-labelnn carrying file over from the foo.save dir to
the new slotnn directory, and the TAPE_END_file too but rename the
000nn-TAPEEND to 00001-TAPEEND as you copy it. I *think* this will
fool amanda into thinking its empty and can be used when its turn
comes up, but please don't shoot the messenger if it doesn't quite
work. :)
>-----Original Message-----
>From: Stefan G. Weichinger [mailto:monitor AT oops.co DOT at]
>Sent: 02 November 2004 16:01
>To: 'amanda-users AT amanda DOT org'
>Subject: Re: Chg-disk question
>
>
>Hi, Alan,
>
>on Dienstag, 02. November 2004 at 12:26 you wrote to amanda-users:
>
>GA> Can anyone explain how chg-disk works? I'm a bit confused. As I
>GA> understand it the number of slots in the vchanger is determined
> by GA> the tapecycle option. This means that if I remove a tape
> from the GA> cycle with amadmin no-reuse there will be insufficient
> tapes in the GA> cycle. However, I sometimes need to take certain
> 'tapes' out of the GA> cycle for a bit. Is this possible using
> chg-disk?
>
>The number of vtapes has to be equal or bigger that the parameter
> tapecycle. You could create some more vtapes, this does not matter
> to AMANDA.
>
>So if you want to mark up to 3 vtapes as "no-reuse" at a time and
> have a tapecycle of 10, go and create at least 13 vtapes. Just make
> sure that you have at least "tapecycle" vtapes that are marked
> reusable all the time.
>
>Ok?
--
Cheers, Gene
"There are four boxes to be used in defense of liberty:
soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.28% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attorneys please note, additions to this message
by Gene Heskett are:
Copyright 2004 by Maurice Eugene Heskett, all rights reserved.
|
|
|