Jim Summers wrote:

Hello List,

I am attempting to recover a file using amrecover. I am running
amrecover on the amanda server and want to recover the file to a temp
directory and then manually put it back in place. This is amanda
2.4.4p1 on a Redhat9 system. I have found references to EOF errors but
not anything with th permission denied stuff. My tape drive is actually
a changer (/dev/sg1). The host and disk are on a amanda client.


I start amrecover, no problem.

I issue a sethost <clientname> No errors or problems

I issue a setdisk <DLE> No errors or problems

Next I cd to the directory containing the file to recover and issue the
add command.  No problem.

Then I issue extract and it prompts for the tape needed and then a
continue prompt and the following is displayed:
===========
Extracting files using tape drive /dev/nst0 on host backus.
Load tape daily06 now
Continue [?/Y/n/s/t]? Y
EOF, check amidxtaped.<timestamp>.debug file on backus.
amrecover: short block 0 bytes
UNKNOWN file
amrecover: Can't read file header
extract_list - child returned non-zero status: 1
===========

The amidxtaped debug contains the following errors:
===========
amrestore: could not open /dev/nst0: Permission denied
amidxtaped: time 0.010: amrestore terminated normally with status: 2
amidxtaped: time 0.010: rewinding tape ...
amidxtaped: time 0.010: tape_rewind: tape open: /dev/nst0: Permission
denied
amidxtaped: time 0.010: pid 31743 finish time Mon Nov  3 08:10:09 2003
===========


Are the filesystem permissions OK for /dev/nst0? You should have read and write permissions on the device. Are you logged in as root?

Marc



Reply via email to