Problem solved: centos7 cannot be turned on after abnormal shutdown

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
insert image description here
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

Guess you like

Origin blog.csdn.net/m0_52062236/article/details/131506584