Amanda-Users

Re: re-dumping failed hosts/disks and planner question

2005-05-19 13:15:48
Subject: Re: re-dumping failed hosts/disks and planner question
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Thu, 19 May 2005 13:01:44 -0400
On Thu, May 19, 2005 at 12:14:21PM -0400, Guy Dallaire wrote:
> Suppose amanda was not able to dump some host yesterday (all estimates
> timed for all disks of that host). If I put a new tape in the drive,
> and do an "amdump config host /diskx /disky", will this dump be
> accounted for by the planner ? I mean, if the planner decided to
> backup thoses disks later and I do it NOW, will it be aware of that ?

Yes.  IIRC there are exceedingly minor problems with running amdump
multiple times in one day.  I doubt you would have a problem.


> Another bonus question:
> 
> In the amanda man pages, I see usage syntax I'm not familiar with.
> There are options listed like this (amadmin man page example)
> 
> force-bump [ hostname [ disks ]* ]+
> 

Boy Guy, you are not an experimenter are you?  :)

I was unaware of the amadmin option, never used it.  So I looked at
the manpage.  I see that not only is there a set of "force-bump",
and "force" options, there are also "unforce" options to reverse
any 'damage' or 'unintended' actions.

> Now suppose that I have 3 hosts hosta, hostb and hostc and ecah one
> has 3 disks: diska diskb and diskc
> 
> does this mean that these syntaxes are correct ?
> 
> amadmin myconfig force-bump hosta
> amadmin myconfig force-bump hosta hostb diska diskb
> amadmin myconfig force-bump hosta diskc hostb

There are examples further on in the manpage showing the use of "force"
which uses the same syntax description.  If the examples are read as
"these are the only allowed ways" then only one host can be specified.

I'm not sure this is the correct interpretation, but I'd read the syntax
as if the '*' and '+' came from extended regular expression syntax.

  * == zero or more occurrences
  + ==  one or more occurrences

With that interpretation, there must be at least one "set" of host + disk
arguments but there could be multiple sets.  Further the number of disks
listed in each set can be zero and is interpreted as all disks.

Must admit I'm surprised that you can't force bumps for all hosts and disks
by having no sets listed on the command line.  But that is not what I read
the syntax as.

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)