PDA

View Full Version : Debugging failed amrecover



wsanders
September 5th, 2010, 06:20 PM
I've been stupid and lazy and have not done a trial restore for a long time. We are running the Amanda 3.0.0 that came with Zmanda 3, on Solaris 10, Ultrium IV tape media.

Amrecovers are now failing with:
# amrecover
[etc]
amrecover> extract
Extracting files using tape drive changer on host localhost.
The following tapes are needed: pool-24
pool-25
Restoring files into directory /export/home/wms2/Restore
[etc]
[bunch of directories .. but no files]
/opt/csw/bin/gtar: Unexpected EOF in archive
/opt/csw/bin/gtar: Error is not recoverable: exiting now
Extractor child exited with status 2

I have no idea how to begin debugging this. I see these lines in the "amgtar.*.debug" files:

1283731418.155662: amgtar: pid 21692 ruid 0 euid 0 version 3.0.0: start at Sun Sep 5 17:03:38 2010
1283731418.155759: amgtar: version 3.0.0
1283731418.163490: amgtar: pid 21692 ruid 0 euid 0 version 3.0.0: rename at Sun Sep 5 17:03:38 2010
1283731418.163529: amgtar: GNUTAR-PATH /opt/csw/bin/gtar
1283731418.163538: amgtar: GNUTAR-LISTDIR /var/lib/amanda/gnutar-lists
1283731418.163545: amgtar: ONE-FILE-SYSTEM yes
1283731418.163552: amgtar: SPARSE yes
1283731418.163558: amgtar: NO-UNQUOTE no
1283731418.163565: amgtar: ATIME-PRESERVE no
1283731418.163572: amgtar: CHECK-DEVICE yes
1283731418.163578: amgtar: SIZE ^ *Total bytes written: [0-9][0-9]*
1283731418.163585: amgtar: IGNORE : Directory is new$
1283731418.163592: amgtar: IGNORE : Directory has been renamed
1283731418.163599: amgtar: NORMAL ^could not open conf file
1283731418.163605: amgtar: NORMAL ^Elapsed time:
1283731418.163612: amgtar: NORMAL ^Throughput
1283731418.163618: amgtar: NORMAL : socket ignored$
1283731418.163624: amgtar: NORMAL : File .* shrunk by [0-9][0-9]* bytes, padding with zeros
1283731418.163655: amgtar: NORMAL : Cannot add file .*: No such file or directory$
1283731418.163662: amgtar: NORMAL : Error exit delayed from previous errors

And in the "amrecover.*.debug" file:

1283731418.165075: amrecover: Exec'ing /usr/lib/amanda/application/amgtar with arguments:
1283731418.165091: amrecover: amgtar
1283731418.165098: amrecover: restore
1283731418.165105: amrecover: --config
1283731418.165112: amrecover: pool
1283731418.165118: amrecover: --disk
1283731418.165125: amrecover: /pool2/backups/mail
1283731418.165131: amrecover: --device
1283731418.165138: amrecover: /pool2/backups/mail
1283731418.165144: amrecover: --level
1283731418.165151: amrecover: 0
1283731418.165157: amrecover: --one-file-system
1283731418.165164: amrecover: yes
1283731418.165171: amrecover: --atime-preserve
1283731418.165177: amrecover: no
1283731418.165184: amrecover: --tar-blocksize
1283731418.165190: amrecover: 2560
1283731418.165197: amrecover: --sparse
1283731418.165203: amrecover: yes
1283731418.165209: amrecover: --check-device
1283731418.165220: amrecover: yes
1283731418.165227: amrecover: <name of file I am trying to recover>
1283731419.218751: amrecover: security_stream_seterr(814b5e8, EOF)
1283731419.218811: amrecover: security_stream_seterr(8153628, EOF)
1283731419.218825: amrecover: security_stream_close(8153628)
1283731419.220268: amrecover: security_stream_close(814b5e8)

I suspect some resource restriction in gtar? The file system being backed up has 6 million files, there are up to 10,000 files on each tape that gets written (I have not been successful getting Amanda to write bigger files to tape.)

Thanks in advance,
W Sanders
St Marys College Of California