Amanda-Users

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

2004-08-25 05:25:44
Subject: URGENT!!! System Disk recovery - UNKNOWN file. amrecover: Cant read file header
From: "Ranveer Attalia" <Ranveer.Attalia AT tertio DOT com>
To: "Paul Bijnens" <paul.bijnens AT xplanation DOT com>
Date: Wed, 25 Aug 2004 10:19:05 +0100
 
I have also noticed that since writing the last email that the indexed
appear to exist in 
$ pwd
/var/adm/amanda/Weekly/index/telhp6/_opt
$ ls -al
total 11796
drwxr-sr-x   2 amanda   amanda       512 Aug 24 17:45 .
drwxr-sr-x   9 amanda   amanda       512 Apr 23 22:43 ..
-rw-------   1 amanda   amanda    843781 Jun  8 07:36 20040607_0.gz
-rw-------   1 amanda   amanda    844327 Jun 26 06:26 20040625_0.gz
-rw-------   1 amanda   amanda    843765 Jul 24 07:19 20040723_0.gz
-rw-------   1 amanda   amanda    849580 Aug  4 08:47 20040803_0.gz
-rw-------   1 amanda   amanda    853483 Aug  7 08:23 20040806_0.gz
-rw-------   1 amanda   amanda    853500 Aug 14 09:26 20040813_0.gz
-rw-------   1 amanda   amanda    854630 Aug 21 08:57 20040820_0.gz


PLEASE REPLY SOMEONE - DESPARATE !!!!


-----Original Message-----
From: Ranveer Attalia 
Sent: 25 August 2004 09:45
To: 'Paul Bijnens'
Subject: URGENT!!! System Disk recovery - UNKNOWN file. amrecover: Cant
read file header
Importance: High

 
SOrry about this, but I'm having a nightmare I attempted the amrecover
again last night on a file and it worked. 
I took the tapes out of the drive and put in the daily incremental tapes
and hashed out the server that failed so it doesnt attempt to back it
up.

However, this morning I have tried to do a amrestore but when I run an
amadmin Weekly telhp6 /opt it is telling me its not a dump list (what
does this mean? nothing has changed on the tapes since last night!!)

AMANDA SERVER:
$  amadmin Weekly find telhp6
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...

No dump to list
$
$mtx load 1
$ amtape Weekly current
amtape: scanning current slot in tape-changer rack:
slot 2: date 20040820 label Fri3.2
$ mt -f /dev/rmt/1ubn rew

AMANDA CLIENT:
#remsh tsssun1 -l amanda -n /opt/amanda/sbin/amrestore -p /dev/rmt/1ubn
telhp6 /opt | restore rbf 2 -
amrestore:   0: skipping start of tape: date 20040820 label Fri3.2
amrestore:   1: skipping pedlinux1._scratch.20040820.0
amrestore:   2: skipping telsun4._projects.20040820.0
amrestore:   3: skipping telhp3._home.20040820.0
amrestore:   4: restoring telhp6._opt.20040820.0
Tape is not a dump tape
# 

HELP PLEASE! I NEED TO GET THIS SORTED FAST! 

Thanks v. much 

- Ranveer
-----Original Message-----
From: Paul Bijnens [mailto:paul.bijnens AT xplanation DOT com]
Sent: 24 August 2004 16:01
To: Ranveer Attalia; 'amanda-users AT amanda DOT org'
Subject: Re: Anyone please reply! System Disk recovery - UNKNOWN file.
amrecover: Cant read file header

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:  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          *
***********************************************************************



_______________________________________________________________________

This email has been scanned by the MessageLabs Email Security System.
MLabs systems monitored and maintained by Tertio Internal Support.
_______________________________________________________________________



________________________________________________________________________

Tertio Telecoms (www.telco-tertio.com)

Head Office: One Angel Square  Torrens Street  London  EC1V 1PL
Tel: +44 (0)20 7843 4000 - Fax: +44 (0)20 7843 4001

Bath Office: Riverside Buildings  108 Walcot Street  Bath  BA1 5BG
Tel: +44 (0)1225 478000 - Fax: +44 (0)1225 478001 

Munich Office: Freisinger Strasse 10, 85737 Ismaning/Munich, Germany,
Tel: +49 (0)89 665506 41 - Fax: +49 (0)89 665506 99

Any views expressed in this message are those of the individual sender,
except where the sender specifically states them to be the views of Tertio Ltd.

This email has been scanned by the MessageLabs Email Security System.
________________________________________________________________________