Amanda-Users

Re: can't recover files

2008-10-30 23:38:38
Subject: Re: can't recover files
From: Frank Smith <fsmith AT hoovers DOT com>
To: Thomas Ginestet <thomas.ginestet AT gpsa DOT fr>
Date: Thu, 30 Oct 2008 22:34:55 -0500
Thomas Ginestet wrote:
> Hi list,
> 
> I've got a problem with Amanda 2.5.1p2 when running amrecover to restore
> files or directories:
> 
> Extracting files using tape drive /dev/nst0 on host backup.
> Load tape BACKUP-12 now
> Continue [?/Y/n/s/t]? y
> Could not fsf device /dev/nst0 by 111: Input/output error
> amrecover: short block 0 bytes
> UNKNOWN file
> amrecover: Can't read file header
> Extractor child exited with status 1
> amrecover>
> 
> I already try to rewind the tape before running amrecover or execute
> amrecover with the -d /dev/nsto flag like suggested on others archived
> threads.
> I've got the same problem with others files on others tapes (LTO-2).
> 
> Here is my amidxtaped log file:
> 
> amidxtaped: debug 1 pid 6070 ruid 34 euid 34: start at Thu Oct 30
> 16:25:29 2008
> amidxtaped: version 2.5.1p2
> amidxtaped: time 0.000: > FEATURES=fffffeff9ffeffffff7f
> amidxtaped: time 0.001: > CONFIG=gpsa
> amidxtaped: time 0.040: > LABEL=GPSA-12:111,112,113
> append_to_tapelist(tapelist=(nil), label='BACKUP-12', , file=-1,
> isafile=0)
> dump_tapelist(0x804ee40):
>   0x804ee40->next     = (nil)
>   0x804ee40->label    = BACKUP-12
>   0x804ee40->isafile  = 0
>   0x804ee40->numfiles = 0
>   0x804ee40 count     = 1
> append_to_tapelist(tapelist=0x804ee40, label='BACKUP-12', , file=111,
> isafile=0)
> dump_tapelist(0x804ee40):
>   0x804ee40->next     = (nil)
>   0x804ee40->label    = BACKUP-12
>   0x804ee40->isafile  = 0
>   0x804ee40->numfiles = 1
>   0x804ee40->files[0] = 111
>   0x804ee40 count     = 1
> append_to_tapelist(tapelist=0x804ee40, label='BACKUP-12', , file=112,
> isafile=0)
> dump_tapelist(0x804ee40):
>   0x804ee40->next     = (nil)
>   0x804ee40->label    = BACKUP-12
>   0x804ee40->isafile  = 0
>   0x804ee40->numfiles = 2
>   0x804ee40->files[0] = 111
>   0x804ee40->files[1] = 112
>   0x804ee40 count     = 1
> append_to_tapelist(tapelist=0x804ee40, label='BACKUP-12', , file=113,
> isafile=0)
> dump_tapelist(0x804ee40):
>   0x804ee40->next     = (nil)
>   0x804ee40->label    = BACKUP-12
>   0x804ee40->isafile  = 0
>   0x804ee40->numfiles = 3
>   0x804ee40->files[0] = 111
>   0x804ee40->files[1] = 112
>   0x804ee40->files[2] = 113
>   0x804ee40 count     = 1
> amidxtaped: time 0.041: > FSF=111
> amidxtaped: time 0.041: > HEADER
> amidxtaped: time 0.041: > DEVICE=/dev/nst0
> amidxtaped: time 0.041: > HOST=^pdc$
> amidxtaped: time 0.041: > DISK=^/cluster/d1$
> amidxtaped: time 0.041: > DATESTAMP=20081010
> amidxtaped: time 0.041: > END
> amidxtaped: Locking devices
> amidxtaped: Sending output to file descriptor 52
> search_tapes(prompt_out=50, prompt_in=51,  use_changer=0,
> tapelist=0x804ee40, match_list=0x804f4e0, flags=0x804e3d0,
> features=0x804e418)
> amidxtaped: Using tapedev /dev/nst0
> Scanning BACKUP-12 (slot <none>)
> search_a_tape: desired_tape=0x804ee40 label=BACKUP-12
> tape:   numfiles = 3
> tape:   files[0] = 111
> tape:   files[1] = 112
> tape:   files[2] = 113
> current tapefile_idx = 0
> Could not fsf device /dev/nst0 by 111: Input/output error
> amidxtaped: Could not fsf device /dev/nst0 by 111: Input/output error
> amidxtaped: time 41.348: Could not fsf device /dev/nst0 by 111:
> Input/output error
> amidxtaped: time 41.348: pid 6070 finish time Thu Oct 30 16:26:11 2008
> 
> Any hints would be really appreciate !

Assuming you really have 111 images on that tape, have you tried it
from the command line?
mt -f /dev/nst0 rewind
mt -f /dev/nst0 fsf 111

If mt fails, it isn't an amanda problem.  If fsf 111 fails, try an
mt -f /dev/nst0 fsf 1 and see if that works. If '1' works but '111'
fails, you may not have 111 images on that tape.

Frank

> 
> Thomas
> 


-- 
Frank Smith                                      fsmith AT hoovers DOT com
Sr. Systems Administrator                       Voice: 512-374-4673
Hoover's Online                                   Fax: 512-374-4501

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