Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 440897

Summary: GFS: gfs_fsck should repair gfs_grow corruption (see bug #436383)
Product: Red Hat Enterprise Linux 5 Reporter: Robert Peterson <rpeterso>
Component: gfs-utilsAssignee: Robert Peterson <rpeterso>
Status: CLOSED ERRATA QA Contact: GFS Bugs <gfs-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 5.2CC: edamato
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-01-20 20:32:45 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: 440896    
Bug Blocks:    
Attachments:
Description Flags
Patch to fix the problem none

Description Robert Peterson 2008-04-04 16:51:46 UTC
+++ This bug was initially created as a clone of Bug #440896 +++
This was cloned so I can crosswrite the fix to RHEL5.

Description of problem:
The problem described in bug #436383 (RHEL4) and bug #434962 (RHEL5)
introduces corruption into a gfs file system.  Today's gfs_fsck is
unable to repair that damage, and I think it needs to.

Version-Release number of selected component (if applicable):
RHEL5

How reproducible:
Easily (now that I know the trick).

Steps to Reproduce:
1. Follow the steps listed in bug #436383 to corrupt a file system
2. Run gfs_fsck on the corrupt file system
  
Actual results:
gfs_fsck's resource group analysis says "(passed)" and no corruption
is detected.

[root@exxon-01 /home/bob]# gfs_fsck /dev/exxon_vg/exxon_lv 
Initializing fsck
Can't seek to last block in file system: 4309132281
Unable to determine the boundaries of the file system.

Expected results:
gfs_fsck should detect and repair the damage gracefully.

Additional info:
I've got a prototype patch that does this.  The RHEL4 version is
attached to bug #436383.  It still needs some testing.

Comment 2 Robert Peterson 2008-04-13 15:37:32 UTC
Created attachment 302272 [details]
Patch to fix the problem

This patch to gfs_fsck detects and repairs the rindex corruption caused
by gfs_grow in bug #436383.  This patch does NOT include any of the other
bugs I found and fixed in gfs_fsck related to rindex repair.  The right
thing to do is open a new bugzilla record for those fixes, which I will
do shortly.  I do have that set of fixes for gfs_fsck written, debugged,
tested and in-hand as well, but it's better to do that with a different
bugzilla record.

Comment 3 Robert Peterson 2008-04-13 16:36:37 UTC
This fix passes my hours-long "gfs_fsck_hellfire" test with flying colors.
I pushed the fix to the RHEL5, STABLE2 and master branches of the cluster
git tree.  Now I need some ack flags from the appropriate parties so I
can mark this modified.


Comment 5 Robert Peterson 2008-04-14 17:01:53 UTC
Tested on roth-01.  Changing status to modified.


Comment 8 errata-xmlrpc 2009-01-20 20:32:45 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0059.html