Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1236669

Summary: fsck.gfs2: Duplicate refs inside one dinode are not fixed
Product: Red Hat Enterprise Linux 7 Reporter: Robert Peterson <rpeterso>
Component: gfs2-utilsAssignee: Robert Peterson <rpeterso>
Status: CLOSED ERRATA QA Contact: cluster-qe <cluster-qe>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: ccaulfie, cluster-maint, cluster-qe, gfs2-maint, jpayne, phracek, rpeterso, sbradley, teigland
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: gfs2-utils-3.1.8-4.el7 Doc Type: Bug Fix
Doc Text:
Cause: In some rare cases, blocks in a corrupt gfs2 file system were mistakenly being referenced twice by the same file. The fsck.gfs2 tool was not detecting nor fixing the problem. Consequence: As a result, customers had corrupt gfs2 file systems that could not be fixed. Fix: Code was added to the fsck.gfs2 tool to detect and fix this kind of file system corruption by copying them to new blocks in the file system, as other file system checkers do. Result: As a result, fsck.gfs2 now detects and fixes file systems with these multi-referenced blocks.
Story Points: ---
Clone Of: 1206149 Environment:
Last Closed: 2015-11-19 03:54:10 UTC Type: Bug
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: 1206149    
Bug Blocks:    

Comment 4 Justin Payne 2015-08-11 18:14:53 UTC
Verified in gfs2-utils-3.1.8-4.el7:

[root@dash-01 ~]# rpm -q gfs2-utils 
gfs2-utils-3.1.8-4.el7.x86_64
[root@dash-01 ~]# gfs2_edit restoremeta T9479dsb01a_mqm_data_metadata /dev/mapper/fsck-sasdata 
Metadata saved at Wed Mar 25 16:14:54 2015
File system size 999.1023GB
Block size is 4096B
This is gfs2 metadata.
There are 805306368 free blocks on the destination device.
Highest saved block is 262078469 (0xf9f0005)
262078470 blocks processed, 152638 saved (100%)
File T9479dsb01a_mqm_data_metadata restore successful.
[root@dash-01 ~]# fsck.gfs2 -y /dev/mapper/fsck-sasdata &> /tmp/fsck_out 

[root@dash-01 ~]# grep "Found duplicate data block" /tmp/fsck_out
Found duplicate data block 70519672 (0x4340b78) referenced as data by dinode 69995390 (0x42c0b7e) 
Found duplicate data block 70519687 (0x4340b87) referenced as data by dinode 69995390 (0x42c0b7e) 
Found duplicate data block 71129024 (0x43d57c0) referenced as data by dinode 70061131 (0x42d0c4b) from metadata block 71110016 (0x43d0d80)
Found duplicate data block 71177597 (0x43e157d) referenced as data by dinode 70061132 (0x42d0c4c) from metadata block 71110058 (0x43d0daa)
Found duplicate data block 70257526 (0x4300b76) referenced as data by dinode 70061137 (0x42d0c51)

[root@dash-01 ~]# grep "Removing duplicate reference" /tmp/fsck_out 
Removing duplicate reference to block 70257526 (0x4300b76) referenced as data by dinode 70061137 (0x42d0c51)
Removing duplicate reference to block 70519672 (0x4340b78) referenced as data by dinode 69995390 (0x42c0b7e)
Removing duplicate reference to block 70519687 (0x4340b87) referenced as data by dinode 69995390 (0x42c0b7e)
Removing duplicate reference to block 71129024 (0x43d57c0) referenced as data by dinode 70061131 (0x42d0c4b)
Removing duplicate reference to block 71177597 (0x43e157d) referenced as data by dinode 70061132 (0x42d0c4c)

[root@dash-01 ~]# fsck.gfs2 /dev/mapper/fsck-sasdata
Initializing fsck
Validating Resource Group index.
Level 1 rgrp check: Checking if all rgrp and rindex values are good.
(level 1 passed)
Starting pass1
pass1 completed in 0.068s
Starting pass1b
pass1b completed in 0.000s
Starting pass1c
pass1c completed in 0.000s
Starting pass2
pass2 completed in 1.235s
Starting pass3
pass3 completed in 0.000s
Starting pass4
pass4 completed in 0.000s
Starting pass5
pass5 completed in 1.413s
Starting check_statfs
check_statfs completed in 0.000s
gfs2_fsck complete

Comment 6 errata-xmlrpc 2015-11-19 03:54:10 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2015-2178.html