Amanda-Users

Errors when running amcheck - # su amanda -c "/usr/sbin/amcheck DailySet1"

2005-04-14 09:31:06
Subject: Errors when running amcheck - # su amanda -c "/usr/sbin/amcheck DailySet1"
From: Chuck Amadi <chuck AT smtl.co DOT uk>
To: Amanda List <amanda-users AT amanda DOT org>
Date: Thu, 14 Apr 2005 14:13:35 +0100
Hi again

I am getting somewhere after a battle of some sorts but I have a few
more errors. I have
myserver:/usr/lib/amanda # su amanda -c "/usr/sbin/amcheck DailySet1"
Amanda Tape Server Host Check
-----------------------------
WARNING: program /usr/sbin/amcheck: not setuid-root
Holding disk /dumps/amanda: 140780012 KB disk space available, that's
plenty
ERROR: /dev/st0: Permission denied
       (expecting a new tape)
NOTE: skipping tape-writable test
ERROR: info dir /var/lib/amanda/DailySet1/curinfo: not writable
ERROR: index dir /var/lib/amanda/DailySet1/index: not writable
Server check took 0.000 seconds
myserver:/usr/lib/amanda # chmod 770 /var/lib/amanda/DailySet1/index
myserver:/usr/lib/amanda # chmod 770 /var/lib/amanda/DailySet1/curinfo
myserver:/usr/lib/amanda # ls -l /var/lib/amanda/DailySet1/curinfo
total 0
drwxrwx---  2 root   root  48 Apr 14 13:58 .
drwxr-xr-x  4 amanda disk 208 Apr 14 13:58 ..
myserver:/usr/lib/amanda # chown
amanda.disk /var/lib/amanda/DailySet1/curinfo
myserver:/usr/lib/amanda # chown
amanda.disk /var/lib/amanda/DailySet1/index
myserver:/usr/lib/amanda # su amanda -c "/usr/sbin/amcheck DailySet1"
Amanda Tape Server Host Check
-----------------------------
WARNING: program /usr/sbin/amcheck: not setuid-root
Holding disk /dumps/amanda: 140780012 KB disk space available, that's
plenty
ERROR: /dev/st0: Permission denied
       (expecting a new tape)
NOTE: skipping tape-writable test
NOTE: info dir /var/lib/amanda/DailySet1/curinfo/greenbottle: does not
exist
NOTE: index dir /var/lib/amanda/DailySet1/index/greenbottle: does not
exist
Server check took 0.000 seconds
 
Amanda Backup Client Hosts Check
--------------------------------
WARNING: myserver: selfcheck request timed out.  Host down?
Client check: 1 host checked in 30.003 seconds, 1 problem found
 
(brought to you by Amanda 2.4.4p2)
myserver:/usr/lib/amanda # vi /etc/amanda/amanda/amanda.conf
myserver:/usr/lib/amanda # cd /usr/sbin
myserver:/usr/sbin # ls -l amcheck
-rwsr-x---  1 amanda disk 189134 Jul  1  2004 amcheck

So I have had to set the sticky bit to /usr/lib/planner and dumper but
when I tried chmod u+s /usr/sbin/amcheck I still get that error Please
note that I am ssh to myserver.

I also had to create a tapelist in /etc/amanda/amanda as my adopted test
<configname> dir.

Can someone explain the ERROR: /dev/st0: Permission denied as I was lead
to believe only root can access devices.

Cheers for you time I am reading and digesting the doc's So bear with
me.

Cheers


-- 
Unix/ Linux Systems Administrator

The Surgical Material Testing Laboratory (SMTL), 
Princess of Wales Hospital 
Coity Road 
Bridgend, 
United Kingdom, CF31 1RQ.

Tel: +44 1656 752820 
Fax: +44 1656 752830


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