Bug 439749
Summary: | Directory corruption (duplicate entries) with dir_index | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 5 | Reporter: | Simon Matter <simon.matter> |
Component: | kernel | Assignee: | Eric Sandeen <esandeen> |
Status: | CLOSED DUPLICATE | QA Contact: | Red Hat Kernel QE team <kernel-qe> |
Severity: | low | Docs Contact: | |
Priority: | high | ||
Version: | 5.1 | CC: | esandeen |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2009-02-16 18:17:21 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 483701 |
Description
Simon Matter
2008-03-31 06:04:07 UTC
Which kernel was this on? There is one fix in 5.1 related to a dir_index corruption: * Mon Sep 17 2007 Don Zickus <dzickus> [2.6.18-48.el5] - [fs] ext3: ensure do_split leaves enough free space in both blocks (Eric Sandeen ) [286501] although it's unlikely that this problem would lead to duplicate entries, I believe. If this were to happen again, an e2image of the filesystem might be very helpful. Thanks, -Eric I don't think it has something to do with #286501 because my kernel versions were newer (kernel-xen-2.6.18-53.1.13.el5 and kernel-xen-2.6.18-53.1.14.el5) at the time the issue showed up. We are running it as Dom0 and it also holds some PVM DomU's but I don't think that matters. The filesystem in question has nothing to do with the DomU's. What I can say for sure is that disabling dir_index on the filesystem has fixed it immediately and no problems showed up since then. Unfortunately I don't know how the reproduce the problem. I apologize for the lack of activity on this bug... There is a recent upstream fix related to duplicate file entries with dir_index dirs; this may well be be the problem. "duplicate entries on ext3 when using readdir/readdir64" is the upstream thread on the linux-ext4 list. It also contains a workaround: ---- Anyway, the workaround is as follows: debugfs -w /dev/sdXXX debugfs: set_super_value def_hash_version half_md4 debugfs: quit Then completely delete any directories where you were having problems, and recreate them. (You can do the "mkdir foo.new; mv foo/* foo.new; rmdir foo; mv foo.new foo" trick if you want to preserve the files in that directory.) ---- The fix is not yet in Linus' tree but probably will be soon. If you run into this problem again, I can provide an updated ext3 module to test. I would guess that the lack of dir_index might be hurting your workload with that many files .... Thanks, -Eric Upstream: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6a897cf4 and subsequently: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=8c9fa93d51123c5540762b1a9e1919d6f9c4af7c Duplicate dir entries is somewhat akin to corruption IMHO; I think this should get fixed in RHEL, and there are now upstream fixes which we can backport. Thanks, -Eric This request was evaluated by Red Hat Product Management for inclusion in a Red Hat Enterprise Linux maintenance release. Product Management has requested further review of this request by Red Hat Engineering, for potential inclusion in a Red Hat Enterprise Linux Update release for currently deployed products. This request is not yet committed for inclusion in an Update release. Updating PM score. This is a dup of another, will mark as dup & transfer PM score if I can. *** This bug has been marked as a duplicate of bug 465626 *** Unfortunately I get an access denied on 465626 and this bug is closed... I put you on cc:, sorry about that. |