zoukankan      html  css  js  c++  java
  • 虚拟机断电后centos7无法正常启动(转)

    image.png

    报错如图:

    [ 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.
    

    参照网上的解决方法是:

    xfs_repair /dev/dm-0
    

    我用上面这个方法确实解决了我的node01节点,但是我们的master节点执行这个命令的时候报错:

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

    然后我又仔细看报错提示,看到了关键一条信息:

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

    系统提示我,需要先umount,再执行 xfs_repair 命令
    所以,需要先umount,但是没有提示需要umount 什么东西,dm-0 是centos-root 的软连接,所以

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

    虚拟机又可以重新使用了



    作者:六眼飛鱼
    链接:https://www.jianshu.com/p/4b88b8e95690
    来源:简书
    著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。
  • 相关阅读:
    AppDelegate减负之常用三方封装
    AppDelegate减负之常用三方封装
    基于AFN封装的带缓存的网络请求
    iOS-创建自己的日志系统
    UIImage 图片处理:截图,缩放,设定大小,存储
    /bin/sh^M: bad interpreter:解决办法
    mac上获取手机的uuid
    iOS PureLayout使用
    iOS集成友盟推送
    完全理解Python的 '==' 和 'is'
  • 原文地址:https://www.cnblogs.com/xiaohanlin/p/12652409.html
Copyright © 2011-2022 走看看