Amanda-Users

amrecover/amrestore problem with large taped tarballs

2002-12-17 06:49:03
Subject: amrecover/amrestore problem with large taped tarballs
From: Jyrki Hämäläinen <jyrki.hamalainen AT tre-multivisions DOT fi>
To: amanda-users AT amanda DOT org
Date: Tue, 17 Dec 2002 13:09:13 +0200
Hi all!

I have a problem with amrestore/amrecover.

I managed succesfully backup and tape all filesystems I wanted. When
tried to recover some files I however encountered problem.

If I got it right amanda reads through tape trying to find right file and then finds problem with its own headers and quits trying. Or are there any timing parameters involved with amrestore that can be fiddled with. That sould be last choise anyway.

However amrecover didn't get even far enough to find right file from tape.

Two last taped tarballs are over 2GB large. I was wondering if that
could be the cause. I am able to restore files with amrestore from
other taped tarballs in the same tape.

amrestore command line used:
[root@nfs jyka]# amrecover Monthly -s dogbert -t dogbert -d /dev/nst0

I tried manually restoring those two last directories with:
mt -f /dev/nst0 rewind
mt -f /dev/nst0 fsf 19
dd if=/dev/nst0 bs=32k skip=1 | tar zxf -

mt -f /dev/nst0 rewind
mt -f /dev/nst0 fsf 20
dd if=/dev/nst0 bs=32k skip=1 | tar zxf -

and this worked so it cannot be in os level, right?

both systems (dogbert and nfs) are redhat 7.2 based. Amanda version
2.4.2p2 is compiled from sources.
Tapedriver is Seagate Tapestor travan 20GB USB.

------- amrestore output ---------

AMRECOVER Version 2.4.2p2. Contacting server on dogbert ...
220 dogbert AMANDA index server (2.4.2p2) ready.local/amanda/sbin/amrecover_old
200 Access OK
Setting restore date to today (2002-12-16)
200 Working date set to 2002-12-16.
200 Config set to Monthly.
501 No index records for host: nfs.intra.tre-multivisions.fi. Invalid?
Trying nfs.intra.tre-multivisions.fi ...
501 No index records for host: nfs.intra.tre-multivisions.fi. Invalid?
amrecover> sethost nfs
200 Dump host set to nfs.
amrecover> setdisk /shares/userhomes
Scanning /mnt/tmp/holding2...
  20021211: found Amanda directory.
Scanning /mnt/holding...
  lost+found: skipping cruft directory, perhaps you should delete it.
  20021125: found Amanda directory.
  20021211: found Amanda directory.
200 Disk set to /shares/userhomes.
amrecover> setdate 2002-12-14
200 Working date set to 2002-12-14.
amrecover> cd jyka
/shares/userhomes/jyka
amrecover> ls
2002-12-14 .
2002-12-14 testfile
.
long listing skipped
.
amrecover> add testfile
Added /jyka/testfile
amrecover> extract

Extracting files using tape drive /dev/nst0 on host dogbert.
The following tapes are needed: Monthly_01

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

Load tape Monthly_01 now
Continue? [Y/n]:
EOF, check amidxtaped.debug file on dogbert.
amrecover: short block 0 bytes
UNKNOWN file
amrecover: Can't read file header
extract_list - child returned non-zero status: 1
Continue? [Y/n]:
amrecover> pwd
/shares/userhomes/jyka
amrecover>
------- amrestore output end ---------

------- amidxtaped.debug ---------
amidxtaped: debug 1 pid 9895 ruid 33 euid 33 start time Mon Dec 16 12:36:03 2002
amidxtaped: version 2.4.2p2
> SECURITY USER root
bsd security: remote host nfs.intra.tre-multivisions.fi user root local user amanda
amandahosts security check passed
> 6
amrestore_nargs=6
> -h
> -p
> /dev/nst0
> nfs
> ^/shares/userhomes$
> 20021214
Ready to execv amrestore with:
path = /usr/local/amanda/sbin/amrestore
argv[0] = "amrestore"
argv[1] = "-h"
argv[2] = "-p"
argv[3] = "/dev/nst0"
argv[4] = "nfs"
argv[5] = "^/shares/userhomes$"
argv[6] = "20021214"
amrestore:   0: skipping start of tape: date 20021214 label Monthly_01
amrestore:   1: skipping nfs._shares_netlogon.20021214.0
amrestore:   2: skipping server._usr_local_exim_.20021214.0
amrestore:   3: skipping nfs._shares_server__etc.20021214.0
amrestore:   4: skipping keitvei._etc.20021214.0
amrestore:   5: skipping nfs._shares_administration.20021214.0
amrestore:   6: skipping server._etc.20021214.0
amrestore:   7: skipping nfs._var_spool_mail.20021214.0
amrestore:   8: skipping nfs._usr_local_exim_.20021214.0
amrestore:   9: skipping nfs._boot.20021214.0
amrestore:  10: skipping nfs._etc.20021214.0
amrestore:  11: skipping nfs._shares_lib.20021214.0
amrestore:  12: skipping nfs._shares_CVS.20021214.0
amrestore:  13: skipping server._var_spool_mail.20021214.0
amrestore:  14: skipping nfs._shares_WWW.20021214.0
amrestore:  15: skipping keitvei._WWW.20021214.0
amrestore:  16: skipping nfs._shares_NT__profiles.20021214.0
amrestore:  17: skipping nfs._shares_tech__doc.20021214.0
amrestore:  18: skipping nfs._shares_common.20021214.0
amrestore: error reading file header: Input/output error
amidxtaped: amrestore terminated normally with status: 2
Rewinding tape: done
amidxtaped: pid 9895 finish time Mon Dec 16 13:09:56 2002

------- amidxtaped.debug end---------

------- amdump log mail---------
These dumps were to tape Monthly_01.
The next 3 tapes Amanda expects to used are: a new tape, a new tape, a new tape.


STATISTICS:
                          Total       Full      Daily
                        --------   --------   --------
Estimate Time (hrs:min)    0:05
Run Time (hrs:min)         7:30
Dump Time (hrs:min)        6:17       6:17       0:00
Output Size (meg)        8589.0     8589.0        0.0
Original Size (meg)     14497.2    14497.2        0.0
Avg Compressed Size (%)    59.2       59.2        --
Filesystems Dumped           20         20          0
Avg Dump Rate (k/s)       388.8      388.8        --

Tape Time (hrs:min)        3:54       3:54       0:00
Tape Size (meg)          8589.6     8589.6        0.0
Tape Used (%)              91.6       91.6        0.0
Filesystems Taped            20         20          0
Avg Tp Write Rate (k/s)   625.2      625.2        --


NOTES:
  planner: Adding new disk nfs:/shares/userhomes.
  planner: Adding new disk nfs:/shares/administration.
  planner: Adding new disk nfs:/shares/common.
  planner: Adding new disk nfs:/shares/lib.
  planner: Adding new disk nfs:/shares/tech_doc.
  planner: Adding new disk nfs:/shares/CVS.
  planner: Adding new disk nfs:/shares/NT_profiles.
  planner: Adding new disk nfs:/shares/netlogon.
  planner: Adding new disk nfs:/etc.
  planner: Adding new disk nfs:/shares/server_etc.
  planner: Adding new disk server:/etc.
  planner: Adding new disk keitvei:/etc.
  planner: Adding new disk nfs:/usr/local/exim/.
  planner: Adding new disk server:/usr/local/exim/.
  planner: Adding new disk nfs:/boot.
  planner: Adding new disk nfs:/shares/software.
  planner: Adding new disk keitvei:/WWW.
  planner: Adding new disk nfs:/shares/WWW.
  planner: Adding new disk server:/var/spool/mail.
  planner: Adding new disk nfs:/var/spool/mail.
  taper: tape Monthly_01 kb 8795744 fm 20 [OK]


DUMP SUMMARY:
                                     DUMPER STATS            TAPER STATS
HOSTNAME     DISK        L ORIG-KB OUT-KB COMP% MMM:SS  KB/s MMM:SS  KB/s
-------------------------- --------------------------------- ------------
keitvei      /WWW        0  323050 198176  61.3  11:09 296.4   7:24 446.8
keitvei      /etc        0    3900    928  23.8   0:07 127.2   0:04 253.0
nfs          /boot       0    2336   2336   --    0:09 263.7   0:06 387.7
nfs          /etc        0    5970   1312  22.0   0:09 145.8   0:06 224.4
nfs          /shares/CVS 0   71670  21856  30.5   1:41 215.9   0:48 453.2
nfs          -T_profiles 0  185350  95712  51.6   5:55 269.6   2:21 677.0
nfs          /shares/WWW 0  113500  33920  29.9   1:42 332.7   0:49 689.6
nfs          -nistration 0     230     32  13.9   0:00  87.1   0:02  31.3
nfs          -res/common 0 32434601388480  42.8 102:48 225.1  38:15 605.0
nfs          /shares/lib 0   34910  15552  44.5   1:30 173.6   0:35 441.4
nfs          -s/netlogon 0      20     32 160.0   0:00 157.1   0:14   4.5
nfs          -server_etc 0     130     32  24.6   0:00  74.3   0:02  36.7
nfs          -s/software 0 39194803447328  88.0  82:31 696.3  87:19 658.1
nfs          -s/tech_doc 0  607620 409696  67.4  14:55 458.0   9:56 687.2
nfs          -/userhomes 0 61755203084320  49.9 148:54 345.3  83:21 616.7
nfs          -ocal/exim/ 0     850    352  41.4   0:02 174.8   0:03 111.7
nfs          -spool/mail 0     210     32  15.2   0:00  64.7   0:02  29.9
server       /etc        0    6120   1376  22.5   0:18  75.5   0:04 327.8
server       -ocal/exim/ 0     850    352  41.4   0:03 134.6   0:08  46.5
server       -spool/mail 0  149930  93280  62.2   5:08 302.9   2:47 559.4

(brought to you by Amanda version 2.4.2p2)
------- amdump log mail end ---------

--
Jyrki Hämäläinen
Tampere Multivisions oy         GSM 040 541 7747
Hepolamminkatu 36 C 3           Direct 03-359 5617
33720 Tampere
phone: 03-3595600


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