Amanda-Users

Disaster recovery and amanda-2.6.0b1

2008-01-13 14:33:25
Subject: Disaster recovery and amanda-2.6.0b1
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: amanda-users <amanda-users AT amanda DOT org>
Date: Sun, 13 Jan 2008 14:25:52 -0500
Greetings all;

I had something zero out the partition table on my boot drive about 2 weeks 
ago, and had to reinstall from scratch, but put fedora 8 on.  Then I used dd 
to recover the last full backup of /home and used that to rebuild and 
reinstall 2.5.2p1. I'm still using that version of amrecover to pick out the 
stuff that's missing from time to time.  And other than PEBKAC type problems 
because I was rusty, that has worked well.

What I want to do is to use 2.6.0 with a new drive, which I will mount at the 
same mount point as the old one by suitable editing of fstab.  I don't 
foresee that as being a problem as long as I do the new drive, a 372 GB 
Hitachi/ibm sata drive on its own card, bought to be the F8 drive, but on 
this mobo, it cannot be made bootable as the bios doesn't see it.  The cards 
bios does, and it mounts and works just fine, but I don't think I need 2 huge 
drives just for F8 and I don't dual boot this box.

Using my original gh.cf to configure and build 2.6.0b1 went without visible 
errors, so I was rather surprised to see this after the root install step:

[root@coyote amanda-2.6.0b1-20080111]# su amanda -c "amcheck Daily"
bash: /usr/local/sbin/amcheck: Permission denied
[root@coyote amanda-2.6.0b1-20080111]# su - amanda
[amanda@coyote ~]$ ls
amanda-2.5.2p1-20070713         amanda-2.5.2p1-20070727         
amanda-2.6.0b1-20080111         bacula-2.0.3-1.src.rpm  Mail
amanda-2.5.2p1-20070713.tar.gz  amanda-2.5.2p1-20070727.tar.gz  
amanda-2.6.0b1-20080111.tar.gz  delete_old_debug.diff
amanda-2.5.2p1-20070720         amanda-2.5.2p1-20071101         amandahosts     
                
fix-3hole.ps
amanda-2.5.2p1-20070720.tar.gz  amanda-2.5.2p1-20071101.tar.gz  
amplot-2.5.1.diff               gh.cf
[amanda@coyote ~]$ amcheck Daily
-bash: /usr/local/sbin/amcheck: Permission denied

So obviously I've 'screwed the moose' somehow, and a rather cursory look at 
the readme's, install's, news and ChangeLog didn't warn me that something 
important had been changed.  A run of ldconfig didn't help either.

Has the install protocol changed?  Or is my config script now bogus:
--------------------------
#!/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-gnu-ld \
        --prefix=/usr/local \
        --with-tapedev="FILE:/amandatapes" \
        --with-debugging=/tmp/amanda-dbg/ \
        --with-tape-server=coyote \
        --with-bsdtcp-security --with-amandahosts \
        --with-configdir=/usr/local/etc/amanda \
        --with-config=Daily \
        --with-gnutar=/bin/tar

make
------------------------------------

Thanks.
-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
It occurred to me lately that nothing has occurred to me lately.