I recently had an XFS filesystem become corrupt due to a powerfail. (CentOS 7 system). The system wouldn't boot properly.

I booted from a rescue cd and tried `xfs_repair`, it told me to mount the partition to deal with the log.

I mounted the partition, and did an `ls` to verify that yes, it appears to be there. I unmounted the partition and tried `xfs_repair` again and got the same message.

What am I supposed to do in this situation? Is there something wrong with my rescue cd (System Rescue CD, version 4.7.1)? Is there some other procedure I should have used?

I ended up simply restoring the system from backups (it was quick and easy in this case), but I'd like to know what to do in the future.