File creation fails with "Structure needs cleaning", and kernel messages report Free Inode BTree record corruption
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.