All of lore.kernel.org
 help / color / mirror / Atom feed
From: Brian Foster <bfoster@redhat.com>
To: Emmanuel Florac <eflorac@intellique.com>
Cc: "Darrick J. Wong" <darrick.wong@oracle.com>,
	Dave Chinner <david@fromorbit.com>,
	"'linux-xfs@vger.kernel.org'" <linux-xfs@vger.kernel.org>
Subject: Re: Weird xfs_repair error
Date: Mon, 17 Jul 2017 13:11:29 -0400	[thread overview]
Message-ID: <20170717171129.GA57771@bfoster.bfoster> (raw)
In-Reply-To: <20170711152340.4cd5dff9@harpe.intellique.com>

On Tue, Jul 11, 2017 at 03:23:52PM +0200, Emmanuel Florac wrote:
> Le Fri, 7 Jul 2017 08:36:33 -0700
> "Darrick J. Wong" <darrick.wong@oracle.com> écrivait:
> 
> > > fatal error -- name create failed in lost+found (28), filesystem
> > > may be out of space  
> > 
> > Would be helpful to have a metadump of this goobered-up lost+found
> > fs...
> > 
> 
> The metadump is here for anyone who would like to have a look:
> 
> http://update2.intellique.com/pub/bign.metadump.xz
> 
> The filesystem is about 115 TiB.
> 

Thanks for posting this. The first thing to note is that this filesystem
is severely corrupted. Nonetheless, I've been playing around with trying
to get the latest for-next xfs_repair to run through this fs (via gdb)
and have definitely hit a few issues:

- xfs_sb_verify() was changed to use bp->b_maps[0].bm_bn rather than
  bp->b_bn in libxfs commit 85428dd23f ("xfs: fix superblock inprogress
  check"). b_maps isn't allocated if the buffer was initialized with
  libxfs_initbuf() (rather than libxfs_initbuf_map()). This causes a
  sigsegv here, though only if I disable -O2 optimization for some
  reason that I haven't dug into yet.
- libxfs commit 0268fdc3fe ("xfs: remove xfs_trans_get_block_res")
  replaced the use of xfs_trans_get_block_res() in
  xfs_bmbt_alloc_block() which causes the -ENOSPC error. The previous
  function was hardcoded to return 1 such that this would never occur.
- The recently added directory sf format verifier (xfs_iformat_fork() ->
  xfs_dir2_sf_verify()) seems to cause a premature repair failure in at
  least one case.

I was able to eventually get repair to complete with some quick hacks to
bypass those issues. I did have to run repair two or three times to get
the fs to a clean state. The fs mounts and otherwise appears clean to
xfs_repair, but it's not clear to me how usable the resulting fs really
is (repair is for fs consistency after all, not necessarily data
recovery). Note that lost+found appears to be loaded with 18T of data
across almost 2 million inodes. :/

Brian

> -- 
> ------------------------------------------------------------------------
> Emmanuel Florac     |   Direction technique
>                     |   Intellique
>                     |	<eflorac@intellique.com>
>                     |   +33 1 78 94 84 02
> ------------------------------------------------------------------------



  reply	other threads:[~2017-07-17 17:11 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-06 13:30 Weird xfs_repair error Emmanuel Florac
2017-07-06 13:48 ` Brian Foster
2017-07-06 14:49   ` Emmanuel Florac
2017-07-06 23:28 ` Dave Chinner
2017-07-07 11:36   ` Emmanuel Florac
2017-07-07 11:50   ` Emmanuel Florac
2017-07-07 15:36     ` Darrick J. Wong
2017-07-10 17:29       ` Emmanuel Florac
2017-07-11 13:23       ` Emmanuel Florac
2017-07-17 17:11         ` Brian Foster [this message]
2017-07-24 14:27           ` Emmanuel Florac
2017-07-24 14:51             ` Brian Foster
2017-07-25 16:44               ` Emmanuel Florac
2017-07-25 17:16               ` Emmanuel Florac
2017-07-25 19:22                 ` Brian Foster

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170717171129.GA57771@bfoster.bfoster \
    --to=bfoster@redhat.com \
    --cc=darrick.wong@oracle.com \
    --cc=david@fromorbit.com \
    --cc=eflorac@intellique.com \
    --cc=linux-xfs@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.