Amanda-Users

amrecover file recovery errors

2002-08-06 21:45:34
Subject: amrecover file recovery errors
From: "Matthew M. Austin" <maustin AT otsys DOT com>
To: amanda-users AT amanda DOT org
Date: Tue, 06 Aug 2002 18:28:39 -0700
Greetings,

I am having trouble using amrecover to restore a file . . . I end up having to go in at a much more granual level using amrestore. I've read in a few places that the errors I'm experiencing below would seem to be permissions and/or rewind device related but you'll see that I appear to actually have the correct permissions and the tape was rewound.

Not on list so please reply direct.

thanks,

-matthew

#########
amrecover
#########

start:/etc# amrecover -C amanda-daily -s eternal -t eternal
AMRECOVER Version 2.4.2p2. Contacting server on eternal ...
220 eternal AMANDA index server (2.4.2) ready.
200 Access OK
Setting restore date to today (2002-08-06)
200 Working date set to 2002-08-06.
200 Config set to ots-cirl-daily.
200 Dump host set to start.
$CWD '/etc' is on disk '/' mounted at '/'.
200 Disk set to /.
/etc
WARNING: not on root of selected filesystem, check man-page!
amrecover> add motd~
Added /etc/motd~
amrecover> extract

Extracting files using tape drive /dev/nst0 on host eternal.
The following tapes are needed: OCB5

Restoring files into directory /etc
Continue? [Y/n]: y

Load tape OCB5 now

---------------------
different shell
---------------------
backup@eternal:~$ /usr/sbin/amtape amanda-daily slot 5
amtape: changed to slot 5 on /dev/nst0
backup@eternal:~$ mt -f /dev/nst0 rewind

---------------------

Continue? [Y/n]: y
EOF, check amidxtaped.debug file on eternal.
amrecover: short block 0 bytes
UNKNOWN file
amrecover: Can't read file header
extract_list - child returned non-zero status: 1

################
amidxtaped.debug
################

eternal:/tmp/amanda# cat amidxtaped.debug
amidxtaped: debug 1 pid 12265 ruid 34 euid 34 start time Tue Aug 6 18:09:08 2002
amidxtaped: version 2.4.2
> SECURITY USER root
bsd security: remote host start user root local user backup
amandahosts security check passed
> 6
amrestore_nargs=6
> -h
> -p
> /dev/nst0
> start
> ^/$
> 20020803
Ready to execv amrestore with:
path = /usr/sbin/amrestore
argv[0] = "amrestore"
argv[1] = "-h"
argv[2] = "-p"
argv[3] = "/dev/nst0"
argv[4] = "start"
argv[5] = "^/$"
argv[6] = "20020803"
amrestore: could not open tape /dev/nst0: Permission denied
amidxtaped: amrestore terminated normally with status: 2
Rewinding tape: no tape online
amidxtaped: pid 12265 finish time Tue Aug  6 18:09:08 2002

###########
permissions
###########

eternal:/tmp/amanda# ll /dev/nst0
crw-rw----    1 root     tape       9, 128 Mar 10  2001 /dev/nst0
eternal:/tmp/amanda# cat /etc/group | grep tape
tape:x:26:backup





<Prev in Thread] Current Thread [Next in Thread>
  • amrecover file recovery errors, Matthew M. Austin <=