xfs_repair -nv command failed with return code 1 after a system panic

Solution Verified - Updated -

Environment

  • Red Hat Enterprise Linux 7
  • XFS filesystems

Issue

After a system panic occurred by [Alt]+[SysRq]+[c], xfs_repair -nv command always failed by "/" filesystem with return code 1, then the following message is output.

Phase 1 - find and verify superblock...
        - block cache size set to 758504 entries
Phase 2 - using internal log
        - scan filesystem freespace and inode maps...
agi unlinked bucket 56 is 329464 in ag 0 (inode=329464)
        - found root inode chunk

<snip>

Phase 6 - check inode connectivity...
        - traversing filesystem ...
        - agno = 0
        - agno = 1
        - agno = 2
        - agno = 3
        - traversal finished ...
        - moving disconnected inodes to lost+found ...
disconnected inode 329464, would move to lost+found
Phase 7 - verify link counts...
would have reset inode 329464 nlinks from 0 to 1
No modify flag set, skipping filesystem flush and exiting.

<snip>

Resolution

This issue has been fixed in kernel-3.10.0-862.el7.

Patch info
xfs: write unmount record for ro mounts
xfs: toggle readonly state around xfs_log_mount_finish

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.