Amanda-Users

Mutliple configs sharing the same indexes

2006-04-23 20:40:36
Subject: Mutliple configs sharing the same indexes
From: stan <stanb AT panix DOT com>
To: amanda users list <amanda-users AT amanda DOT org>
Date: Sun, 23 Apr 2006 20:38:09 -0400
I'm trying to finish up a configuration that normally backus up
to a RAIT of one vtape, and one real tape. The backup side of
this is working.

I wnat to have a disk_only (and perhaps a tape_only) config, that
will only be used to restor things. I've set up a common amanda
confi file  in ../amanda.conf.main, and all 3 configs amanda.conf
file include it. In it I have:

nfofile "/opt/amanda/var/DailyDump/curinfo"    # database DIRECTORY
logdir   "/opt/amanda/var/DailyDump"            # log directory
indexdir "/opt/amanda/var/DailyDump/index"      # index directory

DailyDump is the "prime" configuration.

DailyDump's amanda.conf file looks like this:

ncludefile "/opt/amanda/etc/amanda.conf.main"
tpchanger "chg-multi"
changerfile "/opt/amanda/etc/DailyDump/chg-multi.conf"
tapetype RAIT

That's everyhting that is in it.

disk_only's amanda.conf looks like this:

includefile "/opt/amanda/etc/amanda.conf.main"
tpchanger "chg-multi"
changerfile "/opt/amanda/etc/disk_only/chg-multi.conf"
tapetype HARD-DISK

But look at this:

root@amanda:/tmp# /opt/ama*/sbin/amrecover DailyDump
AMRECOVER Version 2.5.0. Contacting server on amanda.meadwestvaco.com ...
220 amanda AMANDA index server (2.5.0) ready.
200 Access OK
Setting restore date to today (2006-04-23)
200 Working date set to 2006-04-23.
Warning: no log files found for tape DailyDump17 written 2006-04-23
Scanning /dumpdisk...
20060423120823: found Amanda directory.
200 Config set to DailyDump.
501 Host amanda.meadwestvaco.com is not in your disklist.
Trying host amanda.meadwestvaco.com ...
501 Host amanda.meadwestvaco.com is not in your disklist.
Trying host amanda ...
200 Dump host set to amanda.
Trying disk / ...
$CWD '/tmp' is on disk '/' mounted at '/'.
200 Disk set to /.
/tmp
WARNING: not on root of selected filesystem, check man-page!

So far, so good right? But then:

root@amanda:/tmp# /opt/ama*/sbin/amrecover disk_only
AMRECOVER Version 2.5.0. Contacting server on amanda.meadwestvaco.com ...
220 amanda AMANDA index server (2.5.0) ready.
200 Access OK
Setting restore date to today (2006-04-23)
200 Working date set to 2006-04-23.
Scanning /dumpdisk...
20060423120823: found Amanda directory.
200 Config set to disk_only.
501 Host amanda.meadwestvaco.com is not in your disklist.
Trying host amanda.meadwestvaco.com ...
501 Host amanda.meadwestvaco.com is not in your disklist.
Trying host amanda ...
200 Dump host set to amanda.
Trying disk / ...
$CWD '/tmp' is on disk '/' mounted at '/'.
200 Disk set to /.
No index records for disk for specified date
If date correct, notify system administrator
Invalid directory - /tmp

Can't sem to find the index records, right? But it _should_ be able to
as they are configured in the common amanda config file. Or do the
index records somehow reference teh configuration? If so, can I
overide this somehow?


-- 
U.S. Encouraged by Vietnam Vote - Officials Cite 83% Turnout Despite Vietcong 
Terror 
- New York Times 9/3/1967