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 1347719

Summary: xfs_repair: "disconnected inode 131, would move to lost+found" after quota tests on V4 xfs
Product: Red Hat Enterprise Linux 7 Reporter: Eryu Guan <eguan>
Component: xfsprogsAssignee: Eric Sandeen <esandeen>
Status: CLOSED ERRATA QA Contact: Eryu Guan <eguan>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.3Keywords: Regression
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: xfsprogs-4.5.0-4.el7 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-11-04 06:24:33 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:

Description Eryu Guan 2016-06-17 13:04:48 UTC
Description of problem:
Many quota related xfstests fail when test with v4 xfs. And they all fail in a similar way. e.g.

*** xfs_repair -n output ***
Phase 1 - find and verify superblock...
Phase 2 - using internal log
        - zero log...
        - scan filesystem freespace and inode maps...
        - found root inode chunk
Phase 3 - for each AG...
        - scan (but don't clear) agi unlinked lists...
        - process known inodes and perform inode discovery...
        - agno = 0
        - agno = 1
        - agno = 2
        - agno = 3
        - process newly discovered inodes...
Phase 4 - check for duplicate blocks...
        - setting up duplicate extent list...
        - check for inodes claiming duplicate blocks...
        - agno = 0
        - agno = 3
        - agno = 1
        - agno = 2
No modify flag set, skipping phase 5
Phase 6 - check inode connectivity...
        - traversing filesystem ...
        - traversal finished ...
        - moving disconnected inodes to lost+found ...
disconnected inode 131, would move to lost+found
Phase 7 - verify link counts...
No modify flag set, skipping filesystem flush and exiting.
*** end xfs_repair output

These tests are xfs/050 xfs/108 xfs/133 xfs/134 xfs/196 xfs/244 xfs/261 xfs/262 xfs/287

Version-Release number of selected component (if applicable):
xfsprogs-4.5.0-2.el7
kernel-3.10.0-439.el7

How reproducible:
always

Steps to Reproduce:
1. MKFS_OPTIONS="-m crc=0" ./check <tests listed above>
2.
3.

Actual results:


Expected results:


Additional info:
Not sure if it's an xfsprogs bug or a kernel bug, but if I downgrade xfsprogs to 3.2.2-2.el7 version, all test pass (kernel unchanged). So filing a bug against xfsprogs.

Upstream kernel and xfsprogs have the same issue, I reported this issue (along with other issues) to xfs list back in March, no response yet.

http://oss.sgi.com/archives/xfs/2016-03/msg00063.html

Comment 2 Eric Sandeen 2016-06-24 21:26:03 UTC
[PATCH] xfs_repair: don't call xfs_sb_quota_from_disk twice

Comment 4 Eryu Guan 2016-06-29 04:32:58 UTC
Verified with xfsprogs-4.5.0-4.el7, all the affected tests pass now

[root@dhcp-66-87-213 xfstests]# MKFS_OPTIONS="-m crc=0" ./check xfs/050 xfs/108 xfs/133 xfs/134 xfs/196 xfs/244 xfs/261 xfs/262 xfs/287
FSTYP         -- xfs (non-debug)
PLATFORM      -- Linux/x86_64 dhcp-66-87-213 3.10.0-450.el7.x86_64
MKFS_OPTIONS  -- -f -m crc=0 /dev/vda6
MOUNT_OPTIONS -- -o context=system_u:object_r:nfs_t:s0 /dev/vda6 /mnt/testarea/scratch

xfs/050  4s
xfs/108  1s
xfs/133  1s
xfs/134  1s
xfs/196  4s
xfs/244  0s
xfs/261  1s
xfs/262 1s ... 1s
xfs/287  1s
Ran: xfs/050 xfs/108 xfs/133 xfs/134 xfs/196 xfs/244 xfs/261 xfs/262 xfs/287
Passed all 9 tests
[root@dhcp-66-87-213 xfstests]# rpm -q xfsprogs
xfsprogs-4.5.0-4.el7.x86_64

Move to VERIFIED.

Comment 6 errata-xmlrpc 2016-11-04 06:24:33 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-2016-2431.html