Amanda-Users

Re: Disaster recovery and amanda-2.6.0b1

2008-01-13 21:06:07
Subject: Re: Disaster recovery and amanda-2.6.0b1
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: amanda-users AT amanda DOT org
Date: Sun, 13 Jan 2008 21:00:24 -0500
On Sunday 13 January 2008, Dustin J. Mitchell wrote:
>On Jan 13, 2008 2:25 PM, Gene Heskett <gene.heskett AT verizon DOT net> wrote:
>> [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
>
>Perhaps I'm not seeing it here, but what are the permissions on
>/usr/local/sbin/amcheck?  And what is the date -- was it really just
>installed, or did something go wrong with the install script that you
>didn't notice?


 An ls -l shows the path and name of that file only in red, all the others 
look normal.
[root@coyote amanda-2.6.0b1-20080111]# ls -l /usr/local/sbin/am*
-rwxr-xr-x 1 amanda disk  15489 2008-01-13 14:04 /usr/local/sbin/amaddclient
-rwxr-xr-x 1 amanda disk  83624 2008-01-13 14:04 /usr/local/sbin/amadmin
-rwxr-xr-x 1 amanda disk   3205 2008-01-13 14:04 /usr/local/sbin/amaespipe
-rwsr-x--- 1 root   disk 113204 2008-01-13 14:04 /usr/local/sbin/amcheck
-rwxr-xr-x 1 amanda disk   1982 2008-01-13 14:05 /usr/local/sbin/amcheckdb
-rwxr-xr-x 1 amanda disk  11975 2008-01-13 14:05 /usr/local/sbin/amcheckdump
-rwxr-xr-x 1 amanda disk   8398 2008-01-13 14:05 /usr/local/sbin/amcleanup
-rwxr-xr-x 1 amanda disk   1072 2008-01-13 14:04 /usr/local/sbin/amcrypt
-rwxr-xr-x 1 amanda disk   1318 2008-01-13 14:04 /usr/local/sbin/amcrypt-ossl
-rwxr-xr-x 1 amanda disk   5860 2008-01-13 
14:04 /usr/local/sbin/amcrypt-ossl-asym
-rwxr-xr-x 1 amanda disk   3500 2008-01-13 14:04 /usr/local/sbin/amcryptsimple

etc etc

Then I got to thinking that I hadn't added amanda to the group "disk" in the 
group file, and that fixed it right up.  Now I need to fixup the disklist for 
2 now missing trees, and three renamed.

>I also notice that gh.cf doesn't do 'make install' .

That script is run by the user amanda.  One must become root to do the make 
install, so I have always done that separately.

>You may also 
>want to add some kind of error handling to the ./configure line:
>  ./configure .... || exit 1

It has been known to bail out as is once or twice, so I hadn't considered it 
as immediately important.  I probably should..

Is there anything in that config driver that I should change for 2.6.0b1?

Anyway, while waiting to send this msg, I've cleaned up the errors, made a new 
LABEL on that 390GB Sata Hitachi deathstar after making it all one BIG 
partition, cleaned up the rest  of the perms problems that seem to go with 
any new install, and it looks as it is ready for run #1.  However, the rest 
of this system is nowhere near as fine tuned as the FC6 install I lost.  I 
swear, every new release from fedora is rougher around the edges than the 
version before it.

And I'll say it right here and now, Thank God and _this crew_ for amanda.  In 
spite of losing about 110GB of stuff in the dustup, that which was important 
was recovered.  Now, if in all the making of this install, I haven't lost 
access to the other drive in case I find I've missed something yet, I'll be 
fat(er), dumb(er) and happier.

Many Thanks Dustin.

>Dustin

-- 
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)
Great Moments in History: #3

August 27, 1949:
        A Hall of Fame opened to honor outstanding members of the
        Women's Air Corp.  It was a WAC's Museum.