Amanda-Users

Re: [UPDATE] How to control which tape is next?

2003-10-21 10:21:50
Subject: Re: [UPDATE] How to control which tape is next?
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: lucio AT pixel DOT it, amanda-users AT amanda DOT org
Date: Tue, 21 Oct 2003 10:14:21 -0400
On Tuesday 21 October 2003 11:40, Lucio wrote:
>When I wrote the last message I forgot to specify the following:
>
>This morning Amanda reported the last backup on Tape2, and then
> asked for "a new tape" only, instead of "Tape3 or a new tape".
>I put Tape3 in the unit anyway and amcheck stopped complaining for
> the wrong tape. Amanda is going to use Tape3 for the next backup
> (which is just the correct behavior).
>
>This suggest me that amcheck DOES KNOW that Tape3 is the correct
> tape for the next run, BUT, for some reason, doesn't tell me.
>
>BTW, it's Amanda 2.4.3 on RH9
>
>What am I missing?

Possibly the upgrade to 2.4.4-p1?  Get the latest tarball snapshots 
from Jean-Louis's site at umontreal.  The link is near the bottom of 
the home page at www.amanda.org the last time I checked.

I stay up2date for the most part, having made it easy by writing a 
script to do the config and build so that each new version is built 
with exactly the same config options as the previous versions since 
about 2.4.2p2.  Since amanda has to be built as a non-priviledged 
user, but installed by root, I have a user "amanda" who does all that 
up to the needs root stage.  I also have a smallish changer, a 
Seagate that holds 4 DDS2 tapes.

Generally speaking, become the user amanda after downloading it to 
/home/amanda, unpack it with a "tar xzvf nameofsnapshot.tar.gz", then 
cd into the "nameofsnapshot" dir it will make, and run something like 
this script.

It (the script) looks like this, with apologies to those whom I've 
plagerized to write this, and adjust those items which would be 
different for you:
-----------------------
#!/bin/sh
# since I'm always forgetting to su amanda...
if [ `whoami` != 'amanda' ]; then
        echo
        echo "!!!!!!!!!!!! Warning !!!!!!!!!!!!"
        echo "Amanda needs to be configured and built by the user amanda,"
        echo "but must be installed by user root."
        echo
        exit 1
fi
make clean
rm -f config.status config.cache
./configure --with-user=amanda \
        --with-group=disk \
        --with-owner=amanda \
        --with-tape-device=/dev/nst0 \
        --with-changer-device=/dev/sg1 \
        --with-gnu-ld --prefix=/usr/local \
        --with-debugging=/tmp/amanda-dbg/ \
        --with-tape-server=coyote.coyote.den \
        --with-amandahosts \
        --with-configdir=/usr/local/etc/amanda

make
------------------
when thats done, then become root and do a make install from the same 
directory.  Once you have it working with a config that works for 
you, then an update when a new snapshot becomes available is only 
about a 4 minute job, plus the download time of course, so there's no 
real reason not to stay current.

-- 
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
99.27% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2003 by Maurice Eugene Heskett, all rights reserved.