From: Nikola Ciprich <nikola.ciprich@linuxbox.cz>
To: Jan Kara <jack@suse.cz>
Cc: linux-ext4@vger.kernel.org, nik@linuxbox.cz
Subject: Re: e2fsck -D lead to severely damaged filesystem
Date: Tue, 16 Jan 2018 11:32:12 +0100 [thread overview]
Message-ID: <20180116103212.GC20942@pcnci.linuxbox.cz> (raw)
In-Reply-To: <20180116090352.lsz4mhpfho3noumx@quack2.suse.cz>
Hello Jan,
thanks for the reply (and really sorry for double post, after sending
first email, I noticed I'm no longer subscribed, so I sent it again
after resubscribe, but apparently both emails got into list after all)
you're right, this commit looks like the one I'm looking for.. I'l try
to reproduce with and without it and report.. anyways time to move on
to newer e2fsprogs..
with best regards
nik
On Tue, Jan 16, 2018 at 10:03:52AM +0100, Jan Kara wrote:
> Hello,
>
> On Mon 15-01-18 08:23:29, Nikola Ciprich wrote:
> > we were dealing with slow access to directories with lots of
> > files (large maildirs), so after some tests, I came to conclusion
> > that optimizing directories using e2fsck -D (on unmounted FS of course)
> > helps a lot. So after testing this on our test box, I did it on production
> > mailserver mail volume. The I decided to do some tests on newer kernel,
> > so I rebooted test box and got lots of fs errors..
> >
> > I checked production box, and it got bad as well:
> >
> > lots of dx_probe:829: inode #15949784: block 35579: comm deliver: Directory hole found
> > messages..
> >
> >
> > so I unmounted fs again, run fsck, and got zillion of:
> >
> > Inode 18378187 ref count is 2, should be 1. Fix? yes
> >
> > Unattached inode 18378194
> > Connect to /lost+found? yes
> >
> > messages..
> >
> >
> > after ~3 hours, I gave up, and recovered FS from backup.. checking fs after
> > "repair" showed that some of large mailboxes vanished completely (and appeared in lost+found)
> >
> > I think I can rule out hardware problem, since it appeared on two completely different
> > systems after some action.. but I'll try to prepare new test environment and reproduce it.
> >
> > What I think might be my big mistake is that I was using quite old e2fsprogs - 1.42.6,
> > kernel was 4.4.52 (which I know is also a bit old, we're already testig 4.14.x)
> >
> > My question is, was that some known e2fsck problem which got fixed in new version?
>
> Commit 19961cd000 "e2fsck: fix e2fsck -fD directory truncation" sounds like
> fixing a similar problem you've observed. So there's reasonable chance
> newer e2fsprogs will handle the filesystem fine. But if not, please do
> "e2image -r <device> - | xz -c >ext4.image" *before* running e2fsck -D and
> put it somewhere for download. That way we can experiment with the metadata
> image and see what exactly does e2fsck do wrong. Thanks!
>
> Honza
>
> --
> Jan Kara <jack@suse.com>
> SUSE Labs, CR
>
--
-------------------------------------
Ing. Nikola CIPRICH
LinuxBox.cz, s.r.o.
28.rijna 168, 709 00 Ostrava
tel.: +420 591 166 214
fax: +420 596 621 273
mobil: +420 777 093 799
www.linuxbox.cz
mobil servis: +420 737 238 656
email servis: servis@linuxbox.cz
-------------------------------------
prev parent reply other threads:[~2018-01-16 10:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-15 7:23 e2fsck -D lead to severely damaged filesystem Nikola Ciprich
2018-01-16 9:03 ` Jan Kara
2018-01-16 10:32 ` Nikola Ciprich [this message]
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=20180116103212.GC20942@pcnci.linuxbox.cz \
--to=nikola.ciprich@linuxbox.cz \
--cc=jack@suse.cz \
--cc=linux-ext4@vger.kernel.org \
--cc=nik@linuxbox.cz \
/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