XFS filesystem fails to mount with error "Bad message" due to failure "Torn write (CRC failure) detected"
Issue
- Failed to mount XFS filesystem with error
Bad message
# mount -t xfs /dev/mapper/vgtest /test
mount: mount /dev/mapper/vgtest on /test failed: Bad message
- /var/log/messages shows error below
Dec 6 18:01:28 hostname kernel: XFS (dm-9): Mounting V5 Filesystem
Dec 6 18:01:28 hostname kernel: XFS (dm-9): Torn write (CRC failure) detected at log block 0x1823. Truncating head block from 0x1825.
Dec 6 18:01:28 hostname kernel: XFS (dm-9): failed to locate log tail
Dec 6 18:01:28 hostname kernel: XFS (dm-9): log mount/recovery failed: error -74
Dec 6 18:01:28 hostname kernel: XFS (dm-9): log mount failed
Environment
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 7.3+
- XFS Filesystem with v5 superblocks
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.