Amanda-Users

Re: Amrecover Problem

2003-11-03 11:02:11
Subject: Re: Amrecover Problem
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: jsummers AT bachman.cs.ou DOT edu, amanda-users <amanda-users AT amanda DOT org>
Date: Mon, 3 Nov 2003 10:59:42 -0500
On Monday 03 November 2003 09:37, 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).
>
Linux normally uses two different devices to address a changer, one, 
the drive itself, is usually /dev/nst0, then the changer robot is 
treated as a generic scsi device, in your case /dev/sg1 because 
you've already got something on sg0.  But check your /var/log/dmesg 
file for the device assigned to the drive itself.

Norma;lly you won't need the changer to recover if you can manually 
position the right tapes into the drive.

>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.
looks good
>Load tape daily06 now
do it manually
>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

Humm, can amverify read this tape?

>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

what user are you?

>amidxtaped: time 0.010: pid 31743 finish time Mon Nov  3 08:10:09
> 2003 ===========

-- 
Cheers, Gene
AMD K6-III@500mhz 320M
Athlon1600XP@1400mhz  512M
99.27% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2003 by Maurice Eugene Heskett, all rights reserved.


<Prev in Thread] Current Thread [Next in Thread>