XFS: corruption of in-memory

Well… 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.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s