Virtual machine after power centos7 not start properly (turn)

 

image.png

Error Figure:

[ 2.430354] sd 0:0:0:0: [sda] Assuming drive cache: write through [ 3.852S62] XFS (dm-0): Metadata corruption detected at xfs_agi_write_verify+8xb5/0:0 [xfs]> xfs _agi block 0xl?7f002 [ 3.852991] XFS (dm-0): Unmount and run xfs_repair [ 3.853004] XFS (dm-0): First 64 bytes of corrupted metadata buffer: [ 3.053019] ffff9bef?5d3a6的:58 41 4? 49 00 00 00 01 00 00 00 01 00 2e fe 00 XAGI........................ [ 3.053039] ffff9bef?5d3a610: 00 00 48 00 00 01 3d 16 00 00 00 02 00 00 00 8d ........ [ 3.0530591 ffff9bef?5d3a620: 00 0a 5b 40 ff ff ff ff ff ff ff ff ff ff ff ff ••[(?...................... [ 3.053079] ffff9bef75d3a630: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff .................... [ 3.853102] XFS (dm-0): Corruption of in-memory data detected. Shutting down filesystem [ 3.853121] XFS (dm-0): Please umount the filesystem and rectify the problem(s) [ 3•0M521] systemd-fstab-generator[444]: Failed to open /sysroot/etc/fstab: Input/output error Generating "/run/in itramfs/rdsosreport.txt" Entering emergency mode. Exit the shell to continue. Type "journaletl” to view system logs. You might want to save "/run/initramfs/rdsosreport.txt" to a USB stick or /boot after mounting them and attach it to a bug report. 

Referring to solve the online method is:

xfs_repair /dev/dm-0

I used above, this method really solved my node01 node, but when we master node to execute the command error:

xfs_repair: cannot open /dev/dm-0: Device or resource busy 

Then I error prompt a closer look and saw the key piece of information:

[ 3.852991] XFS (dm-0): Unmount and run xfs_repair 

I prompted, you need to umount, and then execute the command xfs_repair
So, we need to umount, but does not suggest the need umount something, dm-0 is a soft link centos-root, so

umount /dev/mapper/centos-root
xfs_repair -v -L /dev/mapper/centos-root
reboot

Virtual machines can then re-use



Author: six flying fish
link: https: //www.jianshu.com/p/4b88b8e95690
Source: Jane books
are copyrighted by the author. Commercial reprint please contact the author authorized, non-commercial reprint please indicate the source.

Guess you like

Origin www.cnblogs.com/xiaohanlin/p/12652409.html