Amanda-Users

Re: URGENT!!! System Disk recovery - UNKNOWN file. amrecover: Cant read file header

2004-08-26 11:16:45
Subject: Re: URGENT!!! System Disk recovery - UNKNOWN file. amrecover: Cant read file header
From: Paul Bijnens <paul.bijnens AT xplanation DOT com>
To: Ranveer Attalia <Ranveer.Attalia AT tertio DOT com>
Date: Thu, 26 Aug 2004 17:14:51 +0200
Ranveer Attalia wrote:

Hi
I am having other problems now where I have attempted to use vxrestore and restored back most of the system. However, there appear to be some files missing so I am having to use amrecover to restore certain directories in /usr/local on my HPUX machine I am using my July full backup tape which was successful but amrecover keeps me for the last full backup tape (Fri3.1) which is a corrupt tape. Also I have noticed that when I load the July tape and set it to the correct directory to restore, on the client when I do a listing of whats on the July tape, its giving me the date of last Friday (Fri3.1) WHY?????

That's because amrecover does not read the tape, but uses the
online index files.

After you have specified the files, amrecover would then tell you
which tapes it needed!


It should be giving me the date of the July full backup. How can I force amrecover to read off the correct tape and not ask me to load Fri3.1???? $ amadmin Weekly find telhp6 /usr
Warning: no log files found for tape Fri4.1 written 2004-04-23
Warning: no log files found for tape Mar0.1 written 2004-03-28
Warning: no log files found for tape Weekly5 written 2004-02-28
Warning: no log files found for tape Weekly4 written 2004-02-14
Warning: no log files found for tape Weekly3 written 2004-02-07
Warning: no log files found for tape Weekly2 written 2004-01-30
Warning: no log files found for tape Weekly1 written 2004-01-23
Scanning /amanda...
Scanning /amanda1...
date host disk lv tape or file file status
2004-06-25 telhp6 /usr  0 Jun0.1         95 OK
2004-07-23 telhp6 /usr  0 Fri4.2         75 OK
2004-08-03 telhp6 /usr  0 Jul0.1         84 OK
2004-08-06 telhp6 /usr  0 Fri1.1        109 OK
2004-08-13 telhp6 /usr  0 Fri2.1        100 OK
2004-08-20 telhp6 /usr  0 Fri3.1         87 OK
Here I load Jul0.1 and fsf to 84
Then I go to my client:
# /opt/amanda/sbin/amrecover -C Weekly -t tsssun1 -s tsssun1
AMRECOVER Version 2.4.4p2. Contacting server on tsssun1 ...
220 tsssun1 AMANDA index server (2.4.4p1) ready.
200 Access OK
Setting restore date to today (2004-08-26)

The default is to use the most current date.
You can change this with the command:

setdate 2004-08-03

I got that date from the info above.  And now amrecover
will ask for the last tape just before that date.
And that seems to be the tape named "Jul0.1".


200 Working date set to 2004-08-26.
200 Config set to Weekly.
200 Dump host set to telhp6.
Trying disk /tmp ...
Trying disk /dev/vg00/lvol5 ...
Can't determine disk and mount point from $CWD '/tmp/usr-local-bin'
amrecover> setdisk /usr
Scanning /amanda...
Scanning /amanda1...
200 Disk set to /usr.
amrecover> ls
2004-08-20 .
2004-08-20 TT_DB/
2004-08-20 adm
Notice that it is showing the wrong date on July's tape.

amrecover does not yet did anything with the tape.

amrecover> add bin/
Added dir /local/bin at date 2004-08-20
amrecover> extract
Extracting files using tape drive /dev/rmt/1ubn on host tsssun1.
The following tapes are needed: Fri3.1

See here it says, that to restore what you asked, then
you need tape "Fri3.1".


Restoring files into directory /tmp/usr-local-bin
Continue [?/Y/n]? Y
Extracting files using tape drive /dev/rmt/1ubn on host tsssun1.
Load tape Fri3.1 now
Continue [?/Y/n/s/t]? Y

And only now, it reads the tape.
Which of course does not contain what amrecover asks.


EOF, check amidxtaped.<timestamp>.debug file on tsssun1.
amrecover: short block 0 bytes
UNKNOWN file
amrecover: Can't read file header
extract_list - child returned non-zero status: 1
Continue [?/Y/n/r]? n
amrecover>


--
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:  Paul.Bijnens AT xplanation DOT com
***********************************************************************
* 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          *
***********************************************************************