What if the physical machine cannot be started due to an abnormal power outage?
What if the physical machine cannot be started due to an abnormal power outage? The editor introduces you to a few ways to deal with it.
(1) the error is as follows
(2) enter / run/initramfs to view the detailed error log rdsosreport.txt
It was found that the mount failed when executing the mount / dev/mapper/centos-root / sysroot command
3) execute the mount / dev/mapper/centos-root / sysroot command manually and find the prompt Structureneeds cleaning. Need to clear the structure
(4) when a "mount:Structure needs cleaning" error occurs on the mount hard disk, you can use xfs_repair to repair it.
Solution method
You can use xfs_repair to fix it, but be aware that files in partitions repaired by xfs_repair will be lost, even files that can be properly displayed by du.
Processing steps:
1 、 umount / dev/mapper/centos-root
2. Xfs_repair / dev/mapper/centos-root or xfs_repair / dev/mapper/centos-root-L.
When the execution is successful, the prompt is as follows:
3. Execute: mount / dev/mapper/centos-root / sysroot
It was found that the mount was successful and the Structureneeds cleaning error was no longer prompted.
4. Cancel the mount: umount / dev/mapper/centos-root
5. Shut down the linux virtual machine and restart it, and then the linux virtual machine can start normally.
If you still don't understand, welcome to consult the 24-hour technical service engineer on the official website.