From: "Theodore Ts'o" <tytso@mit.edu>
To: Andreas Dilger <adilger@dilger.ca>
Cc: Burke Harper <go88team@gmail.com>, linux-ext4@vger.kernel.org
Subject: Re: Should Never Happen: Resize Inode Corrupt
Date: Sun, 17 Mar 2019 17:19:22 -0400 [thread overview]
Message-ID: <20190317211922.GC23356@mit.edu> (raw)
In-Reply-To: <CB5B81C1-C1C8-4A19-8062-89B2B50C4F65@dilger.ca>
On Sat, Mar 16, 2019 at 12:57:57PM -0600, Andreas Dilger wrote:
> You could kill e2fsck and disable the resize_inode feature? There is a different resize mechanism available now (meta_bg) that doesn't need it.
It looks like the file system was previously 36T and you were trying
to resize it to 51T. Is that right? The resize_inode feature should
not have been present at all; it's not valid for file systems > 32TiB.
The resize2fs in 1.42 is more than a little bit buggy when dealing
with large file systems > 32TiB, and it sounds like there were some
problems dealing with the transition from file systems smaller than 32
TiB (where the resize_inode still works), and file systems > 32 TiB
(where we use a new style of on-line resizing, called meta_bg.
Hopefully that's because you used an old 1.42 resize2fs when you
resized it up to 36 TiB, but we should test to make sure it's
currently working correctly.
Similarly, e2fsck shouldn't be even trying to deal with the resize
inode if the file system size > 32 TiB. (Or to be more
accurate/pedantic, when the max. block number no longer fits in a
32-bit integer; although if someone is using a 1k or 2k block file
system on a file system that larger, they have other problems. :-)
So yeah, the first thing I would use debugfs to clear the resize_inode
feature:
debugfs -w /dev/md0
debugfs: features ^resize_inode
debugfs: clri <7>
debugfs: quit
And then run e2fsck -f /dev/md0.
- Ted
next prev parent reply other threads:[~2019-03-17 21:19 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-03-15 6:38 Should Never Happen: Resize Inode Corrupt Burke Harper
2019-03-15 19:19 ` Andreas Dilger
2019-03-16 17:11 ` Burke Harper
2019-03-16 18:57 ` Andreas Dilger
2019-03-17 21:19 ` Theodore Ts'o [this message]
2019-03-18 5:24 ` Burke Harper
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=20190317211922.GC23356@mit.edu \
--to=tytso@mit.edu \
--cc=adilger@dilger.ca \
--cc=go88team@gmail.com \
--cc=linux-ext4@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox