Amanda-Users

Re: amrecover with file:, again.....

2004-02-04 09:06:48
Subject: Re: amrecover with file:, again.....
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: amanda-users AT amanda DOT org
Date: Wed, 4 Feb 2004 09:03:28 -0500
On Wednesday 04 February 2004 03:56, R.M. Evers wrote:
>Thanks for your reply Marc, but alas, still no-go :-( The
>amidxtaped.xxxxxxx.debug file shows the following info:
>
>  ...
>  amrestore: could not stat chg-disk: No such file or directory
>  amidxtaped: time 0.063: amrestore terminated normally with status:
> 2 amidxtaped: could not stat chg-disk: No such file or directory
> amidxtaped: time 0.064: could not stat chg-disk: No such file or
> directory
>  ...
>
>So it seems that the chg-disk script can't be found, which sits in
>/usr/lib/amanda along with the other scripts.. Maybe something went
>wrong with my way of installing and patching amanda. I'll fetch the
>latest stable version from amanda.org, and try compiling it myself.
> Back to the drawing board it is....
>
>Regards,
>-Rodi.

Make your self a script to do that Rodi.  Mine does everything but the 
make install as the user amanda, leaving you to exit from being 
amanda, become root, and do the make install.

If your config options are in a script, then each new version of 
amanda is configured exactly like the older one.  I could repost mine 
if you'd like, but its in the list archives 10+ times now.

>On Tue, 2004-02-03 at 16:41, Marc Langlois wrote:
>> Hi Rodi,
>>
>> The "amrecover: Can't read file header" message happened to me
>> when the chg-disk script wasn't being called, and amrecover was
>> trying to read from an empty tape slot directory i.e. the "data"
>> sym-link was wrong.
>>
>> My amanda.conf has these entries:
>>
>> tpchanger "chg-disk"
>> tapedev "file:/s4/amanda_tapes"
>> rawtapedev "file:/s4/amanda_tapes"
>> changerfile "/usr/local/etc/amanda/clst01/changer"
>> changerdev "/dev/null"
>> amrecover_changer "chg-disk"
>>
>> In amrecover, I do:
>>
>> amrecover> settape chg-disk
>> amrecover> extract
>> ...
>>
>> and it works fine. Doing an "ls -l" on the tape slot directory
>> (/s4/amanda_tapes for me) shows that the "data" sym-link is
>> changed to point to the correct tape slot before each extract
>> begins.
>>
>> The value of "amrecover_changer" seems to be arbitrary - as long
>> as the same string is used in amrecover, then it will use the
>> value of "tpchanger" (AFAIK).
>>
>> Hope this helps,
>> Marc Langlois.
>>
>> On Tue, 2004-02-03 at 06:34, R.M. Evers wrote:
>> > hi amanda-users,
>> >
>> > sorry to bring this up again, but i'm also having problems with
>> > using amrecover with the file: driver.. i have read the recent
>> > thread, but i cannot get it to work properly.
>>
>> snip...
>>
>> > then, i tried to recover some directory using amrecover. at the
>> > final 'extract'-point, i receive the error:
>> >
>> >     --
>> >     Extracting files using tape drive daily01 on host bu2.
>> >     Load tape daily02 now
>> >     Continue [?/Y/n/s/t]?
>> >     EOF, check amidxtaped.<timestamp>.debug file on bu2.
>> >     amrecover: short block 0 bytes
>> >     UNKNOWN file
>> >     amrecover: Can't read file header
>> >     extract_list - child returned non-zero status: 1
>> >     --
>> >
>> > the recover works fine when i issue an "amtape DailySet1 label
>> > daily02" on the backup server, but hey, i'm lazy..
>> >
>> > i've tried different values for the amrecover_changer parameter
>> > mentioned in the thread last month, but to no avail.. right now,
>> > here's my config:
>> >
>> >     --
>> >     tpchanger "chg-disk"
>> >     changerfile "/etc/amanda/DailySet1/changer"
>> >     tapedev "file:/var/backups/amanda-tapes/DailySet1"
>> >     amrecover_changer "file:/var/backups/amanda-tapes/DailySet1"
>> >     --
>> >
>> > i read the docs, googled like there's no tomorrow, but i can't
>> > seem to get this right. what am i missing here?
>> >
>> > thanks & regards,
>> > -rodi.

-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
99.22% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attornies please note, additions to this message
by Gene Heskett are:
Copyright 2004 by Maurice Eugene Heskett, all rights reserved.

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