Amanda-Users

Re: Amanda server crashed!!!

2005-01-31 12:18:53
Subject: Re: Amanda server crashed!!!
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: "Kevin Alford" <kevin.alford AT tmctechnologies DOT com>
Date: Mon, 31 Jan 2005 12:13:19 -0500
On Monday 31 January 2005 11:40, Kevin Alford wrote:
>I am getting the following error.  I have found my data.
>
>[root@lightning /class_saa/restore]# dd if=/dev/rmt1.1 bs=32k skip=1
> | /usr/bin/gzip -dc | usr/sbin/restore -f... -
>-bash: usr/sbin/restore: A file or directory in the path name does
> not exist.
>1+0 records in.
>1+0 records out.
>
>I am stumped?

Probably not, it looks as if the target directory doesn't exist, so 
you may have to do a mkdir for the root dir of each DLE/file before 
you unpack them.

>Kevin D. Alford
>
>
>-----Original Message-----
>From: Gene Heskett [mailto:gene.heskett AT verizon DOT net]
>Sent: Monday, January 31, 2005 11:16 AM
>To: amanda-users AT amanda DOT org
>Cc: Kevin Alford
>Subject: Re: Amanda server crashed!!!
>
>On Monday 31 January 2005 06:30, Kevin Alford wrote:
>>My Amanda backup server crashed, and I had to rebuild it.  I was
>>running Amanda 2.4.2p2 on AIX 5.1 ML6.
>>I desperately need to restore the data from my Amanda tapes, but I
>>don't have the Amanda index files.
>>Isn't there a way I can use native Unix to read and restore my
>> tapes written by Amanda?
>>Your assistance in this matter is greatly appreciated.
>
>Sure, use mt to rewind the tape, starting with a tape thats at least
> a dumpcycle old.  dd the label block out to verify the correct
> starting tape, then dd the next block, both of these to stdout, and
> follow the directions in the 2nd block to recover the first file to
> scratch storage. dd the next block to stdout to get the
> instructions again as it may change from file to file depending on
> your use of software compression.
>
>Repeat as required, moving stuff from scratch to where it goes until
>you've recovered it all.  You'll be a day or so I expect unless you
> feel confident and cd to the target dir the next file came from,
> thereby saving you the trouble of moving all that stuff from
> scratch storage.
>
>One of the things I do here, over and above what amanda does, is to
> make a tarball of both the amanda config directory's contents, and
> the indice directory's contents, and append them to the tape every
> night after the amdump run is finished and any file locks amdump
> may have had on things, causeing that file to be missing in the
> backup, have been removed so I get the whole maryann.
>
>This may require a reduction in the specified tapesize in your
> tapetype in order to make sure amanda saves room for them.  This is
> done by the wrapper script that cron calls, and which then does the
> amdump, followed by this extra stuff so that the end of the tape
> actually has the indice and config files on it that wrote *that*
> tape.
>
>Currently my scripts have been simplified considerable by liberal
> use of the comment character as I'm now useing vtapes on a big hard
> drive, but anyone who'd like a copy of them is welcome.  The
> comments, and variable useage should be grokable by someone
> familiar with bash scripts.
>
>But, by the use of these, I can lose a drive, reinstall the current
> os in bare bones mode, and almost any version of amanda in the
> 2.4.5 series, use dd to recover those last 2 files, and then have
> all of amanda's facilities to do the rest of the recovery.  That of
> course is if the drive lost isn't the new 200GB I'm using for the
> vtape storage.
>
>:)
>:
>>Kevin D. Alford
>
>--
>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.32% setiathome rank, not too shabby for a WV hillbilly Yahoo.com
>attorneys please note, additions to this message by Gene Heskett
> are: Copyright 2005 by Maurice Eugene Heskett, all rights reserved.

-- 
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.32% setiathome rank, not too shabby for a WV hillbilly
Yahoo.com attorneys please note, additions to this message
by Gene Heskett are:
Copyright 2005 by Maurice Eugene Heskett, all rights reserved.

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