Hi folks.

For some reason, i was under the impression that this was working well earlier, but it 
appears to have stopped working after my monthly test (amanda version is 2.4.3b3
on the server, 2.4.2p2 on the clients). The only anomalies i have to report is that 
occasionally i have run out of storage space for the backups and i have taken many 
'tapes' out of circulation (but only by using amrmtape).

I am using amanda to backup various Linux clients to a central index and tape server, 
which has a SAN server mounted using NFS under /var/spool/backup.

Every night, a shell script makes a directory that corresponds to the day's date, eg) 
/var/spool/backup/dumps/20020718 and sym-links it to /var/spool/backup/dumps/data so 
that the file driver will work.

I have tried a restore on a random file using the current date, and it worked. 
However, today i tried to restore from a few days ago, and i got the following error 
from amrestore (exact syntax follows, hostnames x'd out to protect the innocent). 

(Keep in mind that when amrestore tells me to load the tape, all i really do is unlink 
the symlink for /var/spool/backup/dumps/data and relink it to the correct subdirectory 
corresponding to that date, right?)

================== output of amrecover

bash-2.05# amrecover -C DailySet1 -s xxxxxxx.rvbs.net -t xxxxxx.rvbs.net
AMRECOVER Version 2.4.2p2. Contacting server on xxxxxx.rvbs.net ...
220 xxxxxxx AMANDA index server (2.4.3b3) ready.
200 Access OK
Setting restore date to today (2002-07-18)
200 Working date set to 2002-07-18.
200 Config set to DailySet1.
200 Dump host set to www.xxxxxxxxxxxx.com.
$CWD '/' is on disk '/' mounted at '/'.
200 Disk set to /.
/
amrecover> history
200- Dump history for config "DailySet1" host "www.xxxxxxxxxxxxxxxx.com" disk "/"
201- 2002-07-16 0 BackupFile20020716 25
201- 2002-07-15 0 BackupFile20020715 25
201- 2002-07-14 0 BackupFile20020714 25
201- 2002-06-30 0 BackupFile20020630 34
200 Dump history for config "DailySet1" host "www.xxxxxxxxxxxxxxxxxxxxx.com" disk "/"
amrecover> setdate 2002-07-16
200 Working date set to 2002-07-16.
amrecover> settape BackupFile20020716
Using tape BackupFile20020716 from server xxxxxxx.rvbs.net.
amrecover> cd /usr/local/src
/usr/local/src
amrecover> ls
2002-07-16 .
2002-07-16 INSTALL.txt
2002-07-16 README
2002-07-16 apache_1.3.23/
2002-07-16 s36010usl.tar
2002-07-16 s360setup
2002-07-16 s360tmp/
2002-07-16 tar-1.13.19.tar.gz
2002-07-16 tar-1.13.19/
amrecover> add s36010*
Added /usr/local/src/s36010usl.tar
amrecover> list
TAPE BackupFile20020716 LEVEL 0 DATE 2002-07-16
        /usr/local/src/s36010usl.tar
amrecover> extract

Extracting files using tape drive BackupFile20020716 on host xxxxxxxxxxx.rvbs.net.
The following tapes are needed: BackupFile20020716

Restoring files into directory /
Continue? [Y/n]:

Load tape BackupFile20020716 now
Continue? [Y/n]:
EOF, check amidxtaped.debug file on xxxxxxxxxx.rvbs.net.
amrecover: short block 0 bytes
UNKNOWN file
amrecover: Can't read file header
extract_list - child returned non-zero status: 1
Continue? [Y/n]: n
amrecover>

==================================== end amrecover syntax

and here is my log file from /tmp/amanda on my tape/index server:

============================= begin logfile amidxtaped.debug

bash-2.05$ cat amidxtaped.20020718164118.debug
amidxtaped: debug 1 pid 9909 ruid 33 euid 33 start time
Thu Jul 18 16:41:18 2002
amidxtaped: version 2.4.3b3
> SECURITY USER root
bsd security: remote host www.xxxxxxxxxxxxxxxxxxxxx.com
 user root local user amanda
amandahosts security check passed
> 6
amrestore_nargs=6
> -h
> -p
> BackupFile20020716
> www.xxxxxxxxxxxxxxxxxxxxxxxxxx.com
> ^/$
> 20020716
Ready to execv amrestore with:
path = /usr/local/sbin/amrestore
argv[0] = "amrestore"
argv[1] = "-h"
argv[2] = "-p"
argv[3] = "BackupFile20020716"
argv[4] = "www.xxxxxxxxxxxxxxxxxxxxx.com"
argv[5] = "^/$"
argv[6] = "20020716"
amrestore: could not stat BackupFile20020716
amidxtaped: amrestore terminated normally with status: 2
amidxtaped: could not stat BackupFile20020716
could not stat BackupFile20020716
amidxtaped: pid 9909 finish time Thu Jul 18 16:41:18 200
2
bash-2.05$
========================== end logfile

I have check the permissions, and amanda owns everything in /var/spool/backup/dumps, 
so i'm pretty sure it's not that. Indexes also seem to be working, otherwise i 
wouldn't be able to list my files, right? i've also checked the directory, and the 
files appear to be there (if someone wants more details i'll forward that to you later)

Anyone who can help me with this will really help to re-establish my calm. 

thanks,
john.





Reply via email to