File creation fails with "Structure needs cleaning", and kernel messages report Free Inode BTree record corruption

Solution Unverified - Updated -

Issue

File creation fails with the error "Structure needs cleaning", and kernel messages report Free Inode BTree record corruption:

kernel: XFS (dm-0): Free Inode BTree record corruption in AG 5 detected!
kernel: XFS (dm-0): start inode 0x3d740, count 0x20, free 0x20 freemask 0xffffffffffffffff, holemask 0xff00

Environment

  • Red Hat Enterprise Linux (RHEL) 8 and 9
  • Observed on many XFS filesystem sizes and configurations

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