XFS: corruption of in-memory
Posted: 2019-08-05 Filed under: system | Tags: corruption, in-memory data, XFS, xfs_check, xfs_do_force_shutdown, xfs_repair Leave a commentWell… one of my partitions, on a SSD, suddenly died. I’ve been building packages in a virtual machine (VB 5.2.28 r130011) of Slackware 14.2 x86_64. All was going fine until my desktop, the host machine, completely froze. Could not go to another runlevel or anything. In the end, I pushed the reset button, and upon boot my /home
partition (sda3
) did not mount.
The message was something like this: xfs_do_force_shutdown(0x8)
and corruption of in-memory data detected
. I did xfs_check
, which resulted in the following error:
ERROR: The filesystem has valuable metadata changes in a log which needs to be replayed. Mount the filesystem to replay the log, and unmount it before re-running xfs_check. If you are unable to mount the filesystem, then use the xfs_repair -L option to destroy the log and attempt a repair. Note that destroying the log may cause corruption — please attempt a mount of the filesystem before doing this.
I searched a bit, and it seems others have similar problem (bug?). I found this solution from Red Hat, and the “last resort” worked for me:
xfs_repair -L /dev/sda3
I was able to mount my /home
partition after that.