The utility "fsck.gfs2" produced the following error and then seg faulted while checking a RHEL 7 GFS2 filesystem: "Error: too many missing or damaged rgrps using this method. Time to try another method.."
Issue
The tool fsck.gfs2
could not repair a gfs2 filesystem and error was generated. In addition a segfault was generated by fsck.gfs2
.
# fsck.gfs2 /dev/mapper/vg_cluster-cluster_lv
Initializing fsck
Validating Resource Group index.
Level 1 rgrp check: Checking if all rgrp and rindex values are good.
[....]
New resource groups:
1: start: 17 (0x11), length = 10030 (0x272e)
2: start: 10047 (0x273f), length = 4095 (0xfff)
3: start: 14142 (0x373e), length = 4095 (0xfff)
4: start: 18237 (0x473d), length = 4095 (0xfff)
5: start: 22332 (0x573c), length = 4095 (0xfff)
6: start: 26427 (0x673b), length = 4095 (0xfff)
7: start: 30522 (0x773a), length = 4095 (0xfff)
[....]
5951: start: 24371202 (0x173e002), length = 4095 (0xfff)
5952: start: 24375297 (0x173f001), length = 4095 (0xfff)
L3: number of rgs in the index = 374.
L3: number of rgs expected = 5952.
L3: They don't match; either (1) the fs was extended, (2) an odd
L3: rgrp size was used, or (3) we have a corrupt rg index.
(level 3 failed at block 0 (0x0): rindex calculations don't match: uneven rgrp boundaries)
Level 4 rgrp check: Trying to rebuild rindex assuming evenly spaced rgrps.
rgrp 2 is damaged: getting dist from index: 0x8047
* rgrp 3 at block 0x8158 *** DAMAGED *** [length 0x100]
* rgrp 4 at block 0x8258 *** DAMAGED *** [length 0x100]
* rgrp 5 at block 0x8358 *** DAMAGED *** [length 0x100]
* rgrp 6 at block 0x8458 *** DAMAGED *** [length 0x100]
Error: too many missing or damaged rgrps using this method. Time to try another method.
Error rebuilding rgrp list.
Segmentation fault
Environment
- Red Hat Enterprise Linux Server 7 (with the High Availability and Resilient Storage Add Ons)
- A Global Filesystem 2(
GFS2
)
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.