Adam Lins writes:
> > Are your backup images OK? If you pick some client/disk that is
> > having an index problem, what happens if you try something like
> > this:
> >
> > mt -f /dev/whatever rewind
> > amrestore -p /dev/whatever <client> <disk> | gtar tf -
Here's what I tried:
[root@bertha amanda]# mt -f /dev/nst0 rewind
[root@bertha amanda]# /usr/local/sbin/amrestore -p /dev/nst0 bertha \
/boot | restore -iv -b 2 -f -
Verify tape and initialize maps
Input is from file/pipe
amrestore: 0: skipping start of tape: date 20020405 label WeeklySet2a23
amrestore: 1: restoring bertha._boot.20020405.0
Input block size is 2
Dump date: Fri Apr 5 19:02:38 2002
Dumped from: the epoch
Level 0 dump of /boot on bertha.bdti.com:/dev/sda3
Label: /boot
Extract directories from tape
Initialize symbol table.
restore > ls
.:
2 ./ 2009 grub/ 23 module-info
2 ../ 24 initrd-2.4.7-10.img 19 module-info-2.4.7-10
22 System.map 17 kernel.h 15 os2_d.b
18 System.map-2.4.7-10 16 kernel.h-2.4.7 21 vmlinuz
26 boot.0803 11 lost+found/ 20 vmlinuz-2.4.7-10
12 boot.b 25 map
13 chain.b 14 message
restore > quit
Error 32 (Broken pipe) offset 32768+32768, wrote 0
amrestore: pipe reader has quit in middle of file.
amrestore: skipping ahead to start of next file, please wait...
I can do the same with a disk from the client, and I can read the
directory --- it matches what I see on the disk.
So I conclude (without actually extracting the files) that the data
_is_ on tape, I just don't have an index file.
Confusingly, I don't see a mention of the client (us) in the
sendbackup.*.debug logs --- shouldn't I?
There's also mention of the client in the following file:
[root@bertha amanda]# more amtrmidx.20020406032926.debug
amtrmidx: debug 1 pid 13712 ruid 5001 euid 5001 start time Sat Apr 6 03:29:26 2
002
/usr/local/libexec/amtrmidx: version 2.4.2p2
Keeping 1001 index files
bertha /boot
bertha /usr2
us /usr
us /var/mail
us /export/home/us2
amtrmidx: pid 13712 finish time Sat Apr 6 03:29:26 2002
So: the data is making it across. The indexer seems to see the data,
but there's no index.
-Adam