xfs
[Top] [All Lists]

Re: xfsrestore problems

To: Charles Shannon Hendrix <shannon@xxxxxxxxxxxxx>, linux-xfs@xxxxxxxxxxx
Subject: Re: xfsrestore problems
From: John Kihonge <mkulima@xxxxxxx>
Date: Mon, 20 May 2002 10:25:14 -0500
References: <20020511205125.GD4462@widomaker.com> <20020516020938.GB10343@widomaker.com> <3CE3D3CF.7DBAF8A9@sgi.com> <200205162151.07376.hasch@t-online.de> <20020517000623.GA13675@widomaker.com> <3CE53102.2B550CF8@sgi.com> <20020517181451.GC13880@widomaker.com>
Sender: owner-linux-xfs@xxxxxxxxxxx
Charles Shannon Hendrix wrote:

> On Fri, May 17, 2002 at 11:34:10AM -0500, John Kihonge wrote:
>
> > We are working to try and determine what might be happening and to help you
> > restore the data. The backup may not be lost and you may be able to recover
> > the files you want. The problem you are having may have nothing to do with
> > the online database. We are working hard at it and we will get back to you
> > early next week.
>
> Sounds great.
>
> I gathered a bit more information.
>
> I log all my backups in a written journal, and this backup is number 23,
> dated 16 April 2002.
>
> My current kernel is dated 1 May 2002, so it's looking like the backup
> was done under XFS 1.0, kernel 2.4.16, and glibc 2.2.3. My first move to
> an XFS kernel was 24 August 2001, with whatever was current at the time,
> and all filesystems date from that time. However, I really don't believe
> the kernel the dump was performed under matters.
>
> I have my old kernels saved if you need any symbol information from
> them.
>
> I have attempted to restore a November backup, and I believe the same problem
> exists.  xfsrestore will report something like this:
>
> xfsrestore: 1085 directories and 14713 entries processed
>
> ...and will restore the 1085 directories, but only a fraction of the
> entries. I assume that entries == files.
>
> In this testing, I'm just doing level 0 dumps with a command like:
>
> % xfsrestore -f /dev/nst0 /u/restore
>
> On a dump dated 9 November I restored / which gave me all the
> directories and 1663 files out of ~4000 entries.  The next
> restore was for /home, 1085 directories and 14713 entries,
> and it failed with the following error:
>
> xfsrestore: examining media file 3
> xfsrestore: seeking past media file directory dump
> xfsrestore: drive_scsitape.c:1507: do_next_mark: Assertion
> `rechdrp->first_mark_offset - rechdrp->file_offset <= ( off64_t )(
> contextp->dc_recsz )' failed.
> Aborted
>

If the problem is just the assertion one, it maybe that you are restoring an old
dump (dumped prior to a fix for xfsdump-1.1.10 of 10th December 2001).

The mail archive:
  http://marc.theaimsgroup.com/?l=linux-xfs&m=101435725816823&w=2
has an explanation of the problem and the suggested fix to allow one to restore
such a dump.

I hope that will fix the problem.


>
> I thought it might be useful to re-create this problem with an older
> dump.
>
> Let me know if any other information would be useful.
>
> --
> UNIX/Perl/C/Pizza__________________________________shannon@xxxxxxxxxxxxx

----
Kihonge JN


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