Ranveer Attalia wrote:
It seems some overly active system administrator removed the log.DATESTAMP.x files. Do not do that. They are needed >by amanda to find information about tape contents. They are cleaned automatically by amanda, when needed, too.
These all live in /tmp/amanda yes? If so then everytime the machine reboots this means that the amanda log files get automatically cleared.
No, the files /tmp/amanda are debug files. The log.DATESTAMP.X files live in the ~amanda/Name-Of-Config/ directory, next to the amdump.X files and others, like tapelist etc.
EOF, check amidxtaped.<timestamp>.debug file on tsssun1. ok, what does that file say?
NOt much more info:
But enough for me :-)
$ cat amidxtaped.20040823170009.debug amidxtaped: debug 1 pid 23046 ruid 6558 euid 6558: start at Mon Aug 23 17:00:09 2004 amidxtaped: version 2.4.4p1 amidxtaped: time 0.000: > SECURITY USER root amidxtaped: time 0.002: bsd security: remote host pethp1.tertio.com user root local user amanda amidxtaped: time 0.003: amandahosts security check passed amidxtaped: time 0.003: > CONFIG=Weekly amidxtaped: time 0.003: > LABEL=Fri3.1
So it is looking for a tape named "Fri3.1" (remember that's what amrecover asked to load!)
amidxtaped: time 0.003: > FSF=132
And it would be file 132 on that tape.
amidxtaped: time 0.003: > HEADER amidxtaped: time 0.003: > DEVICE=/dev/rmt/1ubn amidxtaped: time 0.065: > HOST=^pesthp1$ amidxtaped: time 0.065: > DISK=^/opt$ amidxtaped: time 0.065: > DATESTAMP=20040820 amidxtaped: time 0.065: > END amidxtaped: time 0.093: amrestore_nargs=0 amidxtaped: time 0.093: Ready to execv amrestore with: path = /opt/amanda/sbin/amrestore argv[0] = "amrestore" argv[1] = "-p" argv[2] = "-h" argv[3] = "/dev/rmt/1ubn" argv[4] = "^pesthp1$" argv[5] = "^/opt$" argv[6] = "20040820" amrestore: 0: skipping start of tape: date 20040820 label Fri3.2
But the tape in /dev/rmt/1ubn it is reading is labelled "Fri3.2" and not "Fri3.1"!
(btw. the "b" flag on Solaris tape devices is usually not what you want, unless you know what you're doing! The "mt fsf" becomes a different thing in certain cases.)
amrestore: 1: skipping pedlinux1._scratch.20040820.0 amrestore: 2: skipping telsun4._projects.20040820.0 amrestore: 3: skipping telhp3._home.20040820.0 amrestore: 4: skipping telhp6._opt.20040820.0 amrestore: 5: skipping pesthp1._scratch.20040820.0 amrestore: 6: skipping pedhp1._scratch.20040820.0 amrestore: 7: skipping telsun8._export_home.20040820.0 amrestore: 8: skipping pesthp1._opt_oracle_oradata.20040820.0 amrestore: 9: skipping telsun7._databases1.20040820.0 amrestore: 10: skipping telhp6._home.20040820.0 amrestore: 11: skipping pestsun1._oradata1.20040820.0 amrestore: 12: reached end of tape: date 20040820
And neither does that tape contain 132 files.
amidxtaped: time 1213.215: amrestore terminated normally with status: 1
amidxtaped: time 1213.216: rewinding tape ...
amidxtaped: time 1286.265: done
amidxtaped: time 1286.282: pid 23046 finish time Mon Aug 23 17:21:35
2004
$
If you are running a recent version, you can add these two directives to amanda.conf:
amrecover_check_label yes amrecover_do_fsf yes
Verify if "man amanda" does contain these directives.
-- Paul Bijnens, Xplanation Tel +32 16 397.511 Technologielaan 21 bus 2, B-3001 Leuven, BELGIUM Fax +32 16 397.512 http://www.xplanation.com/ email: [EMAIL PROTECTED] *********************************************************************** * I think I've got the hang of it now: exit, ^D, ^C, ^\, ^Z, ^Q, F6, * * quit, ZZ, :q, :q!, M-Z, ^X^C, logoff, logout, close, bye, /bye, * * stop, end, F3, ~., ^]c, +++ ATH, disconnect, halt, abort, hangup, * * PF4, F20, ^X^X, :D::D, KJOB, F14-f-e, F8-e, kill -1 $$, shutdown, * * kill -9 1, Alt-F4, Ctrl-Alt-Del, AltGr-NumLock, Stop-A, ... * * ... "Are you sure?" ... YES ... Phew ... I'm out * ***********************************************************************
