xfs
[Top] [All Lists]

Re: Question: Old Irix tape backup. Recovery on Linux (xfsdump/xfsrestor

To: Eric Sandeen <sandeen@xxxxxxxxxxx>
Subject: Re: Question: Old Irix tape backup. Recovery on Linux (xfsdump/xfsrestore)
From: Dave Chinner <david@xxxxxxxxxxxxx>
Date: Fri, 1 Jul 2016 08:07:37 +1000
Cc: xfs@xxxxxxxxxxx
Delivered-to: xfs@xxxxxxxxxxx
In-reply-to: <dc20d8ae-d57f-53f1-72b8-d623529c695b@xxxxxxxxxxx>
References: <SN1PR05MB231785E5196A5D31D0D833EACC230@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <SN1PR05MB23175D5BF190CCC3F22E2EB0CC240@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4d9d00ef-82d5-a658-e88c-ba75fb7a6023@xxxxxxxxxxx> <SN1PR05MB2317E464B2CFB5A06CC4B66BCC240@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx> <dc20d8ae-d57f-53f1-72b8-d623529c695b@xxxxxxxxxxx>
User-agent: Mutt/1.5.21 (2010-09-15)
On Thu, Jun 30, 2016 at 12:04:07PM -0500, Eric Sandeen wrote:
> 
> 
> On 6/30/16 11:59 AM, Anthony l wrote:
> > I don't think this is a multi tape dump. But then again i don't know for 
> > sure. I recently got a job and this is my first 'project'. I have about 10 
> > tapes each are labeled a month and a year, so I don't think they are multi 
> > tape because they span like 3 years 2004-2007 . Although for the current 
> > tape I am working on right now if I select 1 skip, I'll get to another back 
> > up labeled "incremental backup 1" or something similar. Using the verbosity 
> > output here is what I got. (also using interactive restore). I went ahead 
> > and specified byte size 4096. Through earlier test using the dd command I 
> > determined that was the correct size. Ill post one without byte size 
> > specified too. I just saw it in that post and thought it might help.
> > 
> > Here is the output with verbosity.
> > 
> > http://pastebin.com/Nd6BqNc5
> > 
> > The out is the same with or without -b 4096.
> > 
> > http://pastebin.com/0dxbCvyc (no -b)
> 
> 
> interactively restore from this dump?
> 1: skip
> 2: interactively restore
>  (default)
> ->2
> ++++================++++
> missing some stuff------
> 
> ^^^ is that your comment, or actual output?
> 
> Looks like it eventually encountered a short read:
> 
> xfsrestore: drive op: read: wanted 131072 (0x20000)
> xfsrestore: tape op: reading 245760 bytes
> xfsrestore: tape op read of 245760 bytes short: nread == 4096
> xfsrestore: tape op: get status
> xfsrestore: tape status = wprot onl
> xfsrestore: short read record 1 (nread == 4096)
> xfsrestore: drive op read returning error rval=1
> 
> in dmesg, is there any sort of IO error from the tape?

So xfs_reatore is wanting to find the session inventory in that
last media file, and it would appear that it isn't there or shorter
than expected. A tape problem, perhaps? Have you tried running
xfs_restore using the minimal tape protocol (-m)?

Another option is to try to restore the dump files from tape to a
local file on disk and see if that can be parsed instead.

The other thing you might want to do is upgrade xfsdump to the
latest version - you're running 3.1.1 and the current version is
3.1.6. I doubt it will change the behaviour, but at least it will
give us something to work from...

Cheers,

Dave.
-- 
Dave Chinner
david@xxxxxxxxxxxxx

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