Amanda-Users

amrestore: could not stat disklist:/var2/amandadumps/tape02

2006-01-02 00:28:40
Subject: amrestore: could not stat disklist:/var2/amandadumps/tape02
From: Ong Loeng Seng <loeng.ong AT vicscouts.asn DOT au>
To: amanda-users AT amanda DOT org
Date: Mon, 02 Jan 2006 16:15:55 +1100
Hi,

I did amanda backup using tapeless configuration, pretty much the same
configuration as in the Amanda-FAQ-O-Matic.
I also add encryption as described in www.amanda.org/docs/howto-gpg.html

The backup is running fine. The problem is when I try to restore the
backup.

Following is some of the screendump:
...
amrecover> setdisk /etc/amanda
200 Disk set to /etc/amanda.
amrecover> cd DailySet1
/etc/amanda/DailySet1
amrecover> add amanda.conf
Added /DailySet1/amanda.conf
amrecover> list
TAPE DailySet102 LEVEL 0 DATE 2006-01-02
        /DailySet1/amanda.conf
amrecover> settape
myhost.mynetwork.com:amanda.conf:/var2/amandadumps/tape02
Using tape "amanda.conf:/var2/amandadumps/tape02" from server
myhost.mynetwork.com.
amrecover> extract

Extracting files using tape drive amanda.conf:/var2/amandadumps/tape02
on host myhost.mynetwork.com.
The following tapes are needed: DailySet102

Restoring files into directory /tmp/restore
Continue [?/Y/n]? Y

Extracting files using tape drive amanda.conf:/var2/amandadumps/tape02
on host myhost.mynetwork.com
Load tape DailySet102 now
Continue [?/Y/n/s/t]? Y
EOF, check amidxtaped.<timestamp>.debug file on myhost.mynetwork.com
amrecover: short block 0 bytes
UNKNOWN file
amrecover: Can't read file header
extract_list - child returned non-zero status: 1
Continue [?/Y/n/r]? Y
amrecover>

Here is the content of the amidxtaped:
amidxtaped: debug 1 pid 21022 ruid 33 euid 33: start at Mon Jan  2
14:22:56 2006
amidxtaped: version 2.4.5
amidxtaped: time 0.000: > SECURITY USER root
amidxtaped: time 0.000: bsd security: remote host myhost.mynetwork.com
user root local user amanda
amidxtaped: time 0.000: amandahosts security check passed
amidxtaped: time 0.000: > CONFIG=DailySet1
amidxtaped: time 0.000: > LABEL=DailySet102
amidxtaped: time 0.000: > FSF=1
amidxtaped: time 0.000: > HEADER
amidxtaped: time 0.000: > DEVICE=disklist:/var2/amandadumps/tape02
amidxtaped: time 0.000: > HOST=^myhost.mynetwork.com$
amidxtaped: time 0.001: > DISK=^/etc/amanda$
amidxtaped: time 0.001: > DATESTAMP=20060102
amidxtaped: time 0.001: > END
amidxtaped: time 0.001: amrestore_nargs=0
amidxtaped: time 0.001: Ready to execv amrestore with:
path = /usr/sbin/amrestore
argv[0] = "amrestore"
argv[1] = "-p"
argv[2] = "-h"
argv[3] = "disklist:/var2/amandadumps/tape02"
argv[4] = "^myhost.mynetwork.com$"
argv[5] = "^/etc/amanda$"
argv[6] = "20060102"
amrestore: could not stat disklist:/var2/amandadumps/tape02: No such
file or directory
amidxtaped: time 0.003: amrestore terminated normally with status: 2
amidxtaped: could not stat disklist:/var2/amandadumps/tape02: No such
file or directory
amidxtaped: time 0.004: could not stat
disklist:/var2/amandadumps/tape02: No such file or directory
amidxtaped: time 0.004: pid 21022 finish time Mon Jan  2 14:22:56 2006

Could someone suggests me what went wrong?

The backup file is definitely in /var2/amandadumps/tape02 directory. 
I don't understand why amrestore says no such file or directory?


Thanks,

Loeng