Amanda-Users

Re: Problems restoring files with amrecover on my backup client!

2005-02-22 08:03:05
Subject: Re: Problems restoring files with amrecover on my backup client!
From: Gene Heskett <gene.heskett AT verizon DOT net>
To: amanda-users AT amanda DOT org
Date: Tue, 22 Feb 2005 07:58:33 -0500
On Tuesday 22 February 2005 06:52, Thomas Løjmann Jørgensen wrote:
>Hi list,
>
>
>
>I have a small problem when I want to restore from my DLT tape.
>
>When doing the backup I don't see any errors (only one warning:
> driver: WARNING: ignoring holding disk /space: No such file or
> directory)
>
>
>
>When trying to restore a file I got this:
>
>
>
>amrecover> extract
>
>
>
>Extracting files using tape drive /dev/nst0 on host npdev.
>
>The following tapes are needed: NP_TEST-00
>
>
>
>Restoring files into directory /home/samba/Users
>
>Continue [?/Y/n]? Y
>
>
>
>Extracting files using tape drive /dev/nst0 on host npdev.
>
>Load tape NP_TEST-00 now
>
>Continue [?/Y/n/s/t]?
>
>EOF, check amidxtaped.<timestamp>.debug file on npdev.
>
>amrecover: short block 0 bytes
>
>UNKNOWN file
>
>amrecover: Can't read file header
>
>extract_list - child returned non-zero status: 1
>
>Continue [?/Y/n/r]?
>
>I rely can't figure out what is wrong!

You did rewind the tape didn't you?

>My disklist contain this line:
>
>gandalf /home/samba/Users/_rod comp-user-tar

Oh oh, samba.  Because of missing time fields in a samba (windows 
filesystems) access, it will get essentially a level 0 full backup 
every night.

>org "My TEST"
>
>mailto "tlj"
>
>dumpuser "backup"
>
>
>
>inparallel 4
>
>netusage  600
>
>
>
>dumpcycle 1 days

Why are you forcing a level 0, aka a full backup every night?

>tapecycle 5 tapes
>
>
>
>bumpsize 20 MB
>
>bumpdays     1
>
>bumpmult     4
>
>
>
>tapedev "/dev/nst0"
>
>
>
>tapetype DLTNP
>
>labelstr "^NP_TEST-[0-9]*$"
>
>
>
>diskdir "/space"
>
>disksize 290 MB

For a typical system today, you need /space to be measured in 
gigabytes, with a relative small percentage held in reserve for 
incrementals.  But with samba, you won't get incrementals even if it 
says its doing a level 4 because every file will be considered new 
every night.

>infofile "/var/lib/amanda/TEST/curinfo"
>
>logfile  "/var/log/amanda/TEST/log"
>
>
>
>indexdir "/var/lib/amanda/ TEST/index"
>
>
>
>
>
>define tapetype DLTNP {
>
>    comment "DLT tape drives"
>
>    length 80000 mbytes         # 80 Gig tapes
>
>    filemark 8000 kbytes        # I don't know what this means
Thats how much space is used between files on that drive.  It probably 
doesn't use that much, 32k would be typical, but thats what the math 
spits out.

>    speed 8000 kbytes
This isn't used by amanda
>
>}
>
>
>
>(and then the default dump-types in AMANDA)
>
>
>
>Can anybody help me with figure out what is wrong with my setup?
>
See above comments.
>
>Kind Regards,
>
>Thomas Løjmann Jørgensen

-- 
Cheers Thomas, 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.34% 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.