I know this has been extensively covered in the faq's/webpages, but
I have tried the suggested solutions, and am still not able to get
this to work.
a) loaded the proper tape
b) mt -f /dev/rmt/0hn rewind
// stdout from amrecover
atsun04:/apps/backup/hp01# amrecover -C atlab
AMRECOVER Version 2.4.2p2. Contacting server on atsun04 ...
220 atsun04 AMANDA index server (2.4.2p2) ready.
200 Access OK
Setting restore date to today (2001-05-29)
200 Working date set to 2001-05-29.
200 Config set to atlab.
200 Dump host set to atsun04.
Can't determine disk and mount point from $CWD
amrecover> setdisk //hp01/d$
Scanning /apps/backup/amanda...
20010529: found Amanda directory.
200 Disk set to //hp01/d$.
amrecover> ls
2001-05-24 Archive/
2001-05-24 B2B/
2001-05-24 B2BR4/
2001-05-24 EXPDAT.DMP
2001-05-24 ICO Backup/
2001-05-24 Oracle/
2001-05-24 Program Files/
2001-05-24 RECYCLER/
2001-05-24 import.log
2001-05-24 vss/
amrecover> add vss
Added dir /vss at date 2001-05-24
amrecover> lcd /apps/backup/hp01
amrecover> extract
Extracting files using tape drive /dev/rmt/0hn on host atsun04.
The following tapes are needed: atlab01
Restoring files into directory /apps/backup/hp01
Continue? [Y/n]: Y
Load tape atlab01 now
Continue? [Y/n]: Y
EOF, check amidxtaped.debug file on atsun04.
amrecover: short block 0 bytes
UNKNOWN file
amrecover: Can't read file header
extract_list - child returned non-zero status: 1
Continue? [Y/n]:
Ahh.. so you ask what's in /tmp/amanda/amidxtaped.debug ;)
amidxtaped: debug 1 pid 15210 ruid 101 euid 101 start time Tue May 29 20:17:08
2001
A nice core file exists as well :(
GDB and backtrace of the core I get the following:
Core was generated by `'.
Program terminated with signal 11, Segmentation Fault.
#0 0xff136dec in ?? ()
(gdb) where
#0 0xff136dec in ?? ()
#1 0xff181c40 in ?? ()
#2 0x12e8c in main ()
#3 0x12460 in main ()
(gdb)
//output of amindexd.20010529202323.debug
amindexd: debug 1 pid 15321 ruid 101 euid 101 start time Tue May 29 20:23:23
2001
amindexd: version 2.4.2p2
< 220 atsun04 AMANDA index server (2.4.2p2) ready.
> SECURITY USER root
bsd security: remote host atsun04 user root local user amanda
amandahosts security check passed
< 200 Access OK
> DATE 2001-05-29
< 200 Working date set to 2001-05-29.
> SCNF atlab
< 200 Config set to atlab.
> HOST atsun04
< 200 Dump host set to atsun04.
> DISK /tmp
< 501 No index records for disk: /tmp. Invalid?
> DISK swap
< 501 No index records for disk: swap. Invalid?
> DISK //hp01/d$
- 2001-05-24 1 atlab01 35
- 2001-05-23 0 atlab07 35
- 2001-05-22 1 atlab06 35
- 2001-05-21 1 atlab05 27
- 2001-05-18 0 atlab04 28
< 200 Disk set to //hp01/d$.
> OISD /
Uncompress command: /usr/local/bin/gzip -dc
'/usr/local/var/amanda/atlab/index/atsun04/__hp01_d$/20010524_1.gz' 2>/d
ev/null | sort >
'/usr/local/var/amanda/atlab/index/atsun04/__hp01_d$/20010524_1'
f /usr/local/var/amanda/atlab/index/atsun04/__hp01_d$/20010524_1
< 200 "/" is a valid directory
> OISD /
f /usr/local/var/amanda/atlab/index/atsun04/__hp01_d$/20010524_1
< 200 "/" is a valid directory
> OLSD /
Uncompress command: /usr/local/bin/gzip -dc
'/usr/local/var/amanda/atlab/index/atsun04/__hp01_d$/20010523_0.gz' 2>/d
ev/null | sort >
'/usr/local/var/amanda/atlab/index/atsun04/__hp01_d$/20010523_0'
< 200- Opaque list of /
< 201- 2001-05-24 1 atlab01 /Archive/
< 201- 2001-05-24 1 atlab01 /B2B/
< 201- 2001-05-24 1 atlab01 /B2BR4/
< 201- 2001-05-24 1 atlab01 /EXPDAT.DMP
< 201- 2001-05-24 1 atlab01 /ICO Backup/
< 201- 2001-05-24 1 atlab01 /Oracle/
< 201- 2001-05-24 1 atlab01 /Program Files/
< 201- 2001-05-24 1 atlab01 /RECYCLER/
< 201- 2001-05-24 1 atlab01 /import.log
< 201- 2001-05-24 1 atlab01 /vss/
< 200 Opaque list of /
> ORLD /vss
< 200- Opaque recursive list of /vss
< 200 Opaque recursive list of /vss
> QUIT
Removing index file:
/usr/local/var/amanda/atlab/index/atsun04/__hp01_d$/20010523_0
Removing index file:
/usr/local/var/amanda/atlab/index/atsun04/__hp01_d$/20010524_1
< 200 Good bye.
amindexd: pid 15321 finish time Tue May 29 20:23:47 2001
//My inetd.conf entries for amanda
atsun04:/tmp/amanda# grep amanda /etc/inetd.conf
amandaidx stream tcp nowait amanda /usr/local/libexec/amindexd
amidxtape stream tcp nowait amanda /usr/local/libexec/amidxtaped
amanda dgram udp wait amanda /usr/local/libexec/amandad
amandad
Thanks,
<<Ben