Preface: The host is stuck, the computer power is turned off directly, the centos7 in the virtual machine has an error, and it cannot be turned on. The
key point is to cancel the mount. Many articles have mentioned it xfs_repair /dev/dm-0
, but it does not apply to the situation I encountered.
# ls /dev/mapper
umount /dev/mapper/centos-root
xfs_repair -v -L /dev/mapper/centos-root
reboot
reference link
https://www.jianshu.com/p/4b88b8e95690