CentOS7系统开机报错:you might want to save “/run/initramfs/rdsosreport.txt“ to a USB stick or /boot

我遇到的场景是VMware的虚拟机被强制下电,开机后报错

具体报错如下

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
CentOS7系统开机报错:you might want to save “/run/initramfs/rdsosreport.txt“ to a USB stick or /boot_第1张图片

报错的大致意思是系统文件出现错误

解决方法:

1.创建快照,以免修复失败,还原重新修复

2.使用xfs_repair命令进行修复

查看LVM分区

ls -l /dev/mapper
... centos-root -> ../dm-0
... centos-swap -> ../dm-1

先修复下root分区
执行命令

xfs_repair /dev/mapper/centos-root或者xfs_repair /dev/mapper/centos-root -L

注: -L 参数,这样可能会丢失部分数据。
CentOS7系统开机报错:you might want to save “/run/initramfs/rdsosreport.txt“ to a USB stick or /boot_第2张图片

修复完成后
CentOS7系统开机报错:you might want to save “/run/initramfs/rdsosreport.txt“ to a USB stick or /boot_第3张图片

最后执行重启命令

reboot

CentOS7系统开机报错:you might want to save “/run/initramfs/rdsosreport.txt“ to a USB stick or /boot_第4张图片

我的这里是xfs_repair /dev/mapper/centos-root -L 重新启动虚拟机修复成功了

头条链接:https://www.toutiao.com/i6930421651507413517/

你可能感兴趣的:(centos,linux,运维,服务器,centos)