Hello everyone!
I am having a bit of trouble using amrecover and am hoping that someone can
see what is going wrong.
As root, I run amrecover, then select a few files to test restoring. This
is what I get:
sbs|amvr: /home/amv > amrecover Gemini
AMRECOVER Version 2.4.2p2. Contacting server on sbs ...
220 sbs AMANDA index server (2.4.2p2) ready.
200 Access OK
Setting restore date to today (2001-08-16)
200 Working date set to 2001-08-16.
200 Config set to Gemini.
200 Dump host set to sbs.
$CWD '/home/amv' is on disk '/home' mounted at '/home'.
200 Disk set to /home.
/home/amv
WARNING: not on root of selected filesystem, check man-page!
amrecover> add HDDUpgrade.doc aixupdates.tgz
Added /amv/HDDUpgrade.doc
Added /amv/aixupdates.tgz
amrecover> extract
Extracting files using tape drive /dev/rmt0.1 on host sbs.
The following tapes are needed: Gemini-4
Restoring files into directory /home/amv
Continue? [Y/n]: y
Load tape Gemini-4 now
Continue? [Y/n]: y
EOF, check amidxtaped.debug file on sbs.
amrecover: short block 0 bytes
UNKNOWN file
amrecover: Can't read file header
extract_list - child returned non-zero status: 1
Continue? [Y/n]: y
amrecover> exit
200 Good bye.
sbs|amvr: /home/amv >
Here is the debug file:
sbs|amvr: /tmp/amanda > cat amidxtaped.20010816083444.debug
amidxtaped: debug 1 pid 197734 ruid 1006 euid 1006 start time Thu Aug 16
08:34:44 2001
amidxtaped: version 2.4.2p2
> SECURITY USER root
bsd security: remote host sbs.sbs.com user root local user amanda
amandahosts security check passed
> 6
amrestore_nargs=6
> -h
> -p
> /dev/rmt0.1
> sbs
> ^/home$
> 20010816
Ready to execv amrestore with:
path = /usr/local/sbin/amrestore
argv[0] = "amrestore"
argv[1] = "-h"
argv[2] = "-p"
argv[3] = "/dev/rmt0.1"
argv[4] = "sbs"
argv[5] = "^/home$"
argv[6] = "20010816"
amrestore: error reading file header: I/O error
amidxtaped: amrestore terminated normally with status: 2
Rewinding tape: done
amidxtaped: pid 197734 finish time Thu Aug 16 08:35:40 2001
If I access the tape using mt and dd, it reads fine:
sbs|amvr: /home/amv > mt -f /dev/rmt0.1 rewind
sbs|amvr: /home/amv > dd if=/dev/rmt0.1 bs=32k count=1
AMANDA: TAPESTART DATE 20010816 TAPE Gemini-4
1+0 records in.
1+0 records out.
sbs|amvr: /home/amv > mt -f /dev/rmt0.1 rewind
sbs|amvr: /home/amv > mt -f /dev/rmt0.1 fsf 1
sbs|amvr: /home/amv > dd if=/dev/rmt0.1 bs=32k count=1
AMANDA: FILE 20010816 sbs /home lev 0 comp .gz program /usr/bin/gtar
To restore, position tape at start of file and run:
dd if=<tape> bs=32k skip=1 | /usr/bin/gzip -dc | usr/bin/gtar -f...
-
1+0 records in.
1+0 records out.
sbs|amvr: /home/amv > mt -f /dev/rmt0.1 rewind
sbs|amvr: /home/amv > mt -f /dev/rmt0.1 fsf 1
sbs|amvr: /home/amv > dd if=/dev/rmt0.1 bs=32k skip=1
of=/gemini/amanda/home.tgz
15586+0 records in.
15586+0 records out.
sbs|amvr: /home/amv > ls -l /gemini/amanda/home.tgz
-rw-rw---- 1 root system 510722048 Aug 16 08:57
/gemini/amanda/home.tgz
sbs|amvr: /home/amv > gtar -tvzf /gemini/amanda/home.tgz |pg
drwxr-xr-x root/usr 167 2001-06-28 15:24:00 ./
drwxr-xr-x root/system 187 2000-10-16 08:08:48 ./TT_DB/
drwxrwx--- amanda/backup 174 2001-08-15 19:24:26 ./amanda/
drwxr-xr-x amanda/backup 377 2001-07-03 08:39:29 ./amanda/amanda-2.4.2p2/
drwxr-xr-x amanda/backup 128 2001-06-29 11:24:46
./amanda/amanda-2.4.2p2/amplot/
drwxr-xr-x amanda/backup 666 2001-06-29 11:28:43
./amanda/amanda-2.4.2p2/changer-src/
drwxrwx--- amanda/backup 1 2001-06-29 11:24:31
./amanda/amanda-2.4.2p2/changer-src/.libs/
drwxr-xr-x amanda/backup 743 2001-06-29 11:28:07
./amanda/amanda-2.4.2p2/client-src/
drwxrwx--- amanda/backup 49 2001-06-29 11:22:46
./amanda/amanda-2.4.2p2/client-src/.libs/
drwxr-xr-x amanda/backup 1104 2001-06-29 11:27:58
./amanda/amanda-2.4.2p2/common-src/
.
.
.
And so on.
Here is my system info in case it's needed:
Hardware: IBM RS/6000 H80
OS: AIX 4.3.3.0
Amanda: 2.4.2p2
My disklist entries:
sbs /home gemini-store
sbs /u02/OracleBackup oracle-data-full
sbs /u01 oracle-app-full
sbs /gemini/disk4/stbkup gemini-store
My dumptypes:
define dumptype global {
comment "Global definitions"
index yes
record yes
program "GNUTAR"
}
define dumptype oracle-data-full {
global
comment "Full dump of this filesystem always"
compress none
priority high
holdingdisk no
dumpcycle 0
}
define dumptype oracle-app-full {
global
comment "Full dump of this filesystem always"
compress client
priority high
exclude "./oradata/oracle"
dumpcycle 0
}
define dumptype gemini-store {
global
comment "Backup of Gemini EOD Store files"
compress client
priority high
dumpcycle 0
}
Sorry for the long message, I just don't want to omit any relevant
information.
Any suggestions would be very appreciated!!
Thanks!
Anthony Valentine
Spenard Builders Supply
AIX Sys Admin/Oracle DBA
[EMAIL PROTECTED]