Amanda-Users

Re: Problem with restore :(

2005-07-14 13:06:06
Subject: Re: Problem with restore :(
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users <amanda-users AT amanda DOT org>
Date: Thu, 14 Jul 2005 12:50:22 -0400
On Thu, Jul 14, 2005 at 06:02:50PM +0000, ?????? ??????? wrote:
> Hello! I have a problem: at attempt of restoration of files amanda speaks the 
> following:
> 
> [code]
> EOF, check amidxtaped.<timestamp>.debug file on guardian.
> 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]?
> [/code]
> 
> I do so:
> 
> [code]
> amrecover svn -s guardian -t guardian -d file:/amandatapes/svn
> (I shall pass reports of information :) )
> amrecover> sethost tux
> amrecover> setdisk /var/www/localhost
> amrecover> setdate ---10
> amrecover> cd svn
> amrecover> add work
> amrecover> extract
> Extracting files using tape drive chg-disk on host guardian.
> The following tapes are needed: svn17
>                                 svn7
>                                 svn10
>                                 svn11
> 
> Restoring files into directory /var/www/localhost
> Continue [?/Y/n]? Y
> 
> Extracting files using tape drive chg-disk on host guardian.
> Load tape svn17 now

At this point, did you do the "sudo -u amanda amtape svn slot 17"
command you show below, `before' you answered "y"?

> Continue [?/Y/n/s/t]? Y
> EOF, check amidxtaped.<timestamp>.debug file on guardian.
> 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]?
> 
> [/code]
> 
> And certainly, I on a server do
> 
> [code]
> 
> sudo -u amanda amtape svn slot 17
> 
> [/code]
> 
> Tried to specify type tpchanger
> [code]
> settape chg-disk
> [/code]
> but has not helped.

With real, not virtual, tapes the settape command is a "device",
not the changer type.  Are the semantics different for virtual tape?


> My amanda.conf has these entries:
> [code]
> 
> tpchanger "chg-disk"
> changerfile "/var/spool/amanda/svn/changer"             
> tapedev "file:/amandatapes/svn"                 

I would have expected your settape command to use
"guardian:file:/amandatapes/svn" as the argument.


> labelstr "^svn[0-9][0-9]*$"                          
> infofile "/var/spool/amanda/svn/curinfo"     
> logdir  "/var/spool/amanda/svn"                 
> indexdir "/var/spool/amanda/svn/index"    
> 
> [/code]
> 

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

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