Amanda-Users

Re: maxpromoteday

2006-04-10 12:57:39
Subject: Re: maxpromoteday
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: amanda-users AT amanda DOT org
Date: Mon, 10 Apr 2006 18:52:07 +0200
On 2006-04-10 07:02, Toomas Aas wrote:
Hello!

I'm trying to avoid the situation where some DLEs get multiple level0 backups during the dumpcycle. This is because I'm running with vtapes that are somewhat "over-drafting" the actual capacity of the backup-harddisk.

It seems from the documentation that I should set 'maxpromoteday' to 2, 1 or even 0. That's fine, I'll do that. But I must admit that I don't quite understand the meaning of maxpromoteday parameter, except that setting it to smaller number causes Amanda to promote dumps less aggressively. Can anyone explain it? If I set maxpromoteday to, say, 3, then how does this '3' actually influence the planner?

The Amanda planner schedules a level 0 of a DLE on the "due" date.
To see which one that is, do "amadmin config due".
Then Amanda looks at the total amount of level 0's, and compares
it to the "balanced" amount (total amount / runspercycle).
If the amount is less then balanced, Amanda will try to "promote"
some level 0's that are due the next few days, to run this day.

The "maxpromotedays" means that Amanda will not promote this DLE
more than this numbers of days in advance.

So if the next level 0 was due in 3 days, and maxpromotedays was
set to 3, then this DLE would still be taken into account.  If it
was set lower, then that DLE would not be considered for a promotion.

The default of 10000, means that Amanda will look up to 10000 days
from now.  Setting a to 0 will prohibit that DLE to be promoted any
day sooner.
To let amanda at least play with the schedule, and rearrange some
DLE's to get a more equal balance, it is best to avoid setting this
maxpromotedays to 0 for all disks.  Set it to 1 or 2.

Note that the frequently used schedule with "dumcycle 7", and
"runspercycle 5" (runs only mon-fri) together with "maxpromotedays 1"
cannot promote any dump on the friday run, because monday is 2
days further.  Set it at least to 2 to allow some reordering here.


--
Paul Bijnens, xplanation Technology Services        Tel  +32 16 397.511
Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM    Fax  +32 16 397.512
http://www.xplanation.com/          email:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* I think I've got the hang of it now:  exit, ^D, ^C, ^\, ^Z, ^Q, ^^, *
* F6, quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, *
* stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt,  abort,  hangup, *
* PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e,  kill -1 $$,  shutdown, *
* init 0, kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... *
* ...  "Are you sure?"  ...   YES   ...   Phew ...   I'm out          *
***********************************************************************


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