XFS metadata corruption after creating a new filesystem
Issue
- Shortly after a new filesystem is created, we immediately saw metadata corruption errors during its first mount attempt:
mount: mount /dev/mapper/vg_rhel-lv_data on /mnt failed: Structure needs cleaning
- Subsequent attempts to fix the filesystem metadata with
xfs_repairalso fail:
verified secondary superblock...
writing modified primary superblock
Primary superblock bad after phase 1!
Environment
- Red Hat Enterprise Linux 7
- Multipath enabled for storage LUNs
- HP Storage P408e-p SR Gen10
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.