fsck.ext4 fails to fix multiply-claimed blocks: can't find dup_blk
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
e2fsprogs (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
Precise |
Fix Released
|
Undecided
|
Seyeong Kim | ||
Trusty |
Fix Released
|
Undecided
|
Seyeong Kim |
Bug Description
[SRU justification]
[Impact]
The last few times my root ext4 filesystem had its regularly-scheduled boot-time check, errors were reported. The first time it happened, I simply told the system to fix the errors, but since they kept coming up again, I decided to look more closely. I booted from a live USB drive, assembled my raid partitions, and ran fsck.ext4 manually.
Without any options, fsck.ext4 simply reported that the filesystem was clean, and exited. Things got more interesting when I ran with -f. It reported several multiply-claimed blocks, and when I told fsck to go ahead and clone them, it failed with an internal error. Repeated runs of fsck revealed that the filesystem was still not fixed, and repeated attempts to fix the problem also failed, reporting that multiply-claimed blocks already reassigned or cloned.
I was lucky in that the files in question were unimportant, so deleting one of them and running fsck again seems to have fixed my problem this time. However, fsck's internal error and failure to fix the problem in the first place is worrisome.
[Test Case]
Here's the full output:
$ sudo fsck.ext4 -f /dev/md/1
e2fsck 1.42.8 (20-Jun-2013)
Pass 1: Checking inodes, blocks, and sizes
Running additional passes to resolve blocks claimed by more than one inode...
Pass 1B: Rescanning for multiply-claimed blocks
Multiply-claimed block(s) in inode 27528089: 73467268 9287 9288 9289 9290 9291
9292 9293
Multiply-claimed block(s) in inode 27528105: 73467268 9287 9288 9289 9290 9291
9292 9293
Pass 1C: Scanning directories for inodes with multiply-claimed blocks Pass 1D:
Reconciling multiply-claimed blocks
(There are 2 inodes containing multiply-claimed blocks.)
File
/home/user/
(inode #27528089, mod time Mon Jan 13 02:50:08 2014)
has 7 multiply-claimed block(s), shared with 1 file(s):
(inode #27528105, mod time Mon Jan 13 02:50:08 2014)
Clone multiply-claimed blocks<y>? yes
clone_file_block: internal error: can't find dup_blk for 73467268
clone_file_block: internal error: can't find dup_blk for 73467268
File
/home/user/
(inode #27528105, mod time Mon Jan 13 02:50:08 2014)
has 7 multiply-claimed block(s), shared with 1 file(s):
(inode #27528089, mod time Mon Jan 13 02:50:08 2014)
Multiply-claimed blocks already reassigned or cloned.
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
root: ***** FILE SYSTEM WAS MODIFIED *****
root: 1038356/30285824 files (0.3% non-contiguous), 106319516/121119454 blocks
[Regression Potential]
[Other Info]
backported from upstream
https:/
https:/
summary: |
- fsck.ext4 fails to fix multiply-claimed blocks + fsck.ext4 fails to fix multiply-claimed blocks: can't find dup_blk |
Changed in e2fsprogs (Ubuntu): | |
status: | Confirmed → In Progress |
assignee: | Theodore Ts'o (tytso) → Rafael David Tinoco (inaddy) |
tags: | added: cts |
no longer affects: | e2fsprogs (Ubuntu Vivid) |
Changed in e2fsprogs (Ubuntu): | |
status: | In Progress → Invalid |
Changed in e2fsprogs (Ubuntu Precise): | |
status: | New → In Progress |
Changed in e2fsprogs (Ubuntu Trusty): | |
status: | New → Incomplete |
status: | Incomplete → In Progress |
Changed in e2fsprogs (Ubuntu Precise): | |
assignee: | nobody → Seyeong Kim (xtrusia) |
Changed in e2fsprogs (Ubuntu Trusty): | |
assignee: | nobody → Seyeong Kim (xtrusia) |
Changed in e2fsprogs (Ubuntu): | |
assignee: | Rafael David Tinoco (inaddy) → nobody |
description: | updated |
Changed in e2fsprogs (Ubuntu): | |
assignee: | nobody → Jouan Oceane (jouanoceane) |
assignee: | Jouan Oceane (jouanoceane) → nobody |
Can you send me the output of the following:
debugfs /dev/md/1
debugfs: stat <27528105>
debugfs: stat <27528089>
debugfs: quit
Thanks!!