Amanda-Users

Re: Converting to FILE

2004-09-09 02:38:22
Subject: Re: Converting to FILE
From: "Stefan G. Weichinger" <monitor AT oops.co DOT at>
To: amanda-users AT amanda DOT org
Date: Thu, 9 Sep 2004 08:31:00 +0200
Hi, Gene Heskett,

on Donnerstag, 09. September 2004 at 01:54 you wrote to amanda-users:

GH> That would be the only line in that config driver thats dbl
GH> quoted, but I tried it, nuked everything and re-built and
GH> installed it, no real diffs to be seen.

GH> I've rebuilt it several times with this config:
GH> --------------
GH> #!/bin/sh
GH> # since I'm always forgetting to su amanda...
GH> if [ `whoami` != 'amanda' ]; then
GH>  echo
GH>  echo "!!!!!!!!!!!! Warning !!!!!!!!!!!!"
GH>  echo "Amanda needs to be configured and built by the user amanda,"
GH>  echo "but must be installed by user root."
GH>  echo
GH>  exit 1
GH> fi
GH> make clean
GH> rm -f config.status config.cache
GH> ./configure --with-user=amanda \
GH>  --with-group=disk \
GH>  --with-owner=amanda \
GH>  --with-gnu-ld \
GH>  --prefix=/usr/local \
GH>  --with-tapedev="FILE:/amandatapes" \
GH>  --with-debugging=/tmp/amanda-dbg/ \
GH>  --with-tape-server=coyote.coyote.den \
GH>  --with-amandahosts \
GH>  --with-configdir=/usr/local/etc/amanda

GH> make

Ok.

...

GH> #tpchanger "chg-scsi" # the tape-changer glue script
GH> #tpchanger "chg-mtx"
GH> tpchanger "changer"

GH> #tapedev  "0" # the no-rewind tape device to be used
GH> tapedev  "FILE:/amandatapes/DailySet1"
GH> rawtapedev "FILE:/amandatapes/Dailyset1"
GH> changerfile "/usr/local/etc/amanda/DailySet1/changer"

GH> tapetype HARD-DISK

GH> labelstr "^DailySet1-[0-9][0-9]*$" # label constraint regex: all tapes must 
match

GH> amrecover_changer "changer"

This should be:

tpchanger "chg-disk"    # the tape-changer glue script
changerfile "/usr/local/etc/amanda/DailySet1/changer.conf"
# Just noticed that I have "changer.conf" here and not "changer" ...
tapedev "file:/amandatapes/DailySet1"
changerdev "file:/amandatapes/DailySet1"
amrecover_changer "chg-disk"

You don't need rawtapedev.

GH> And I now note that in my attempts to run amcheck or amlabel,
GH> I now have files in the /config/ dir named -access, -clean 
GH> and -slot, which tells me the name string those are supposed
GH> to be appended to is a null string, probaby because the name
GH> 'changer' isn't correct, or is not correctly keyword identified.

Maybe because it really has to be "changer.conf" as noticed above. If
yes, another bug in the howto, but I wonder why noone else has hit
this before ...

GH> and a run of amcheck gets this:
GH> ---------------
GH> [amanda@coyote amanda-2.4.5b1-20040831]$ amcheck DailySet1
GH> amcheck: error while loading shared libraries:
GH> libamserver-2.4.5b1-20040831.so: cannot open shared object file:
GH> Nosuch file or directory
GH> ----------------
GH> The library does indeed exist:

Run "ldconfig".

-- 
best regards,
Stefan

Stefan G. Weichinger
mailto:monitor AT oops.co DOT at





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