Amanda-Users

Re: Chg-disk question

2004-11-03 11:38:28
Subject: Re: Chg-disk question
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: "Griffiths, Alan" <Alan.Griffiths AT colt-telecom DOT com>
Date: Wed, 3 Nov 2004 11:34:08 -0500
On Wednesday 03 November 2004 10:47, Griffiths, Alan wrote:
>That was my fall back option. However, I will lose index information
> on those dirs won't I? So I can't do an amrecover from the client
> if I want to restore from one of the dirs I have moved. It just
> means a bit more work having to pull the files out of the dump and
> then scp them from server to host.
>
Mmm, of course you are right about that, but I'd assume too, thats it 
woud be possible to suitably rename and save the index files too?

Now, let me tell you just a basic overview of how I wrap up amanda, 
and one of the things I do is to append the tar'd files for the 
config that wrote that particular backup, and the index files 
generated by that backup, to the tape, or vtape as the case may be.  
With the tape, I had to shrink my tapesize to make sure there was 
room on the tape, with vtapes thats not a consideration as all I 
watch is the df report to see if I'm about to overflow a 176GB 
partition, and adjust amanda.conf to control that.

My scripts are a mess but they work, and Stephan W. has been working 
on cleaning them up and making them a bit more universally usable.

Are they ready for an alpha test yet Stephan?  Or should I just fwd 
these, with the usual "I'm not responsible if you cat has a litter of 
Dalmations" warnings?

>-----Original Message-----
>From: Gene Heskett [mailto:gene.heskett AT verizon DOT net]
>Sent: 03 November 2004 12:20
>To: Griffiths, Alan
>Cc: 'amanda-users AT amanda DOT org'
>Subject: Re: Chg-disk question
>
>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.

<Prev in Thread] Current Thread [Next in Thread>