XFS filesystem resource configured in pacemaker cluster fails to start with error: "mount(2) system call failed: Structure needs cleaning"

Solution Verified - Updated -

Issue

  • The start operation of the cluster resource ocf:heartbeat:Filesystem with fstype=xfs fails with below error messages:

    ERROR: Couldn't mount device [/dev/<device>] as /<mount path>
    [stderr mount: /<mount patch>: mount(2) system call failed: Structure needs cleaning.]
    
  • Following XFS filesystem corruption messages being observed.

    kernel: XFS (dm-7): xfs_do_force_shutdown(0x8) called from line 1042 of file fs/xfs/xfs_trans.c. Return address = 00000000090faf19
    kernel: XFS (dm-7): Corruption of in-memory data detected.  Shutting down filesystem
    kernel: XFS (dm-7): Please unmount the filesystem and rectify the problem(s)
    kernel: XFS (dm-7): Failed to recover intents
    kernel: XFS (dm-7): log mount finish failed
    

Environment

  • Red Hat Enterprise Linux 9
  • Red Hat Enterprise Linux 8
  • Red Hat Enterprise Linux 7
  • High Availability Add On or Resilient Storage Add On
  • Pacemaker

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content