Amanda-Users

RE: Using no-reuse with vtapes

2006-12-14 12:50:03
Subject: RE: Using no-reuse with vtapes
From: "Gordon J. Mills III" <Gordon.Mills AT usa DOT net>
To: "'Jean-Louis Martineau'" <martineau AT zmanda DOT com>
Date: Thu, 14 Dec 2006 11:43:46 -0600
Jean-Louis, thanks for the patch! I applied it when you sent it but had to
wait to see if the system would cycle through past the "no-reuse" tape. It
did so successfully and all is working fine now!

Thanks again!

Regards,
Gordon Mills 

-----Original Message-----
From: Jean-Louis Martineau [mailto:martineau AT zmanda DOT com] 
Sent: Monday, November 20, 2006 2:20 PM
To: Gordon.Mills AT usa DOT net
Cc: amanda-users AT amanda DOT org
Subject: Re: Using no-reuse with vtapes


I attached a bad version of the patch,
Try this one instead.

Jean-Louis

Jean-Louis Martineau wrote:
>
> Changing tapecycle will not fix your problem because the chg-disk 
> changer script use it to set it's LASTSLOT.
>
> The use of chg-disk with 'no-reuse' is incompatible, but it could be 
> easily fix (attached patch):
>  - chg-disk must set its LASTSLOT from a changer configuration file.
>
> After that, you will have 2 possibilities:
>   set LASTSLOT to 22, create the slot directory and label it.
> or
>  set LASTSLOT to 21 and tapecycle to 20.
>
>
> Try the attached patch, the changer configuration filename is your 
> setting of changerfile with a ".conf" appended.
> Add a "LASTSLOT=22" to the changer configuration file.
>
> Jean-Louis
>
>
> Gordon J. Mills III wrote:
>> I am having a problem using the no-reuse feature with vtapes. I have 
>> a tape that contains files from a machine that is going to be 
>> decommissioned. I want to save the last full backup of that machine. 
>> So I put no-reuse next to that tape in the tapelist file. The problem 
>> is that the next time the tape cycle comes around to that tape it 
>> acts like there is no available tape. It cycles through all the tapes 
>> and says "(expecting a new tape)" at the end.
>> So the question is: how can I use the "no-reuse" feature? It seems 
>> that amanda has to have tapecycle number of tapes even if dumpcycle 
>> is set to a number lower than that. The relative section of my 
>> amanda.conf is below.
>> This is on 2.5.0b1.
>>
>> dumpcycle 10 days       # the number of days in the normal dump cycle
>> runspercycle 10
>> tapecycle 21 tapes      # the number of tapes in rotation
>>
>> bumpsize 10 MB          # minimum savings (threshold) to bump level 1 
>> -> 2
>> bumpdays     2          # minimum days at each level
>> bumpmult     1.5        # threshold = bumpsize * (level-1)**bumpmult
>>
>> runtapes     1         # explained in WHATS.NEW
>> tpchanger "chg-disk" # the tape-changer glue script, see 
>> TAPE.CHANGERS changerfile "/etc/amanda/DailySet1/changer"
>> tapedev "file:/amandatapes/DailySet1/"  # Linux @ tuck, important:
>> norewinding
>> # tapedev "/dev/nrst8"  # or use the (no-rewind!) tape device 
>> directly rawtapedev "file:/amandatapes/DailySet1/"
>>
>> tapetype HARD-DISK              # what kind of tape it is (see tapetypes
>> below)
>> labelstr "^TAPE[0-9][0-9]*$"    # label constraint regex: all tapes must
>> match
>>
>> Regards,
>> Gordon
>>
>>
>>   
>
> ----------------------------------------------------------------------
> --
>
>   




<Prev in Thread] Current Thread [Next in Thread>
  • RE: Using no-reuse with vtapes, Gordon J. Mills III <=