故障上报

今天 vmware esxi 有一台虚拟机(Ubuntu 20.04.4)强制关闭电源,再次打开电源之后直接进入 (initramfs) 模式,如下效果:

Failure: File system check of the root filesystem failed
The root filesystem on /dev/mapper/ubuntu--vg-ubuntu--lv requires a manual fsck

BusyBox y1.30.1 (Ubuntu 1:1.30.1-4ubuntu6.4) built-in shell (ash)
Enter 'help' for a list of built-in commands.

(initramfs)

解决方案

根据报错信息 /dev/mapper/ubuntu--vg-ubuntu--lv requires a manual fsck,意思是这个挂载点(实际上是 / 根目录)需要 fsck,所以执行 fsck 挂载点 -y 进行修复

(initramfs) fsck /dev/mapper/ubuntu--vg-ubuntu--lv -y

fsck from util-linux 2.342
fsck 1.45.5 (07-Jan-2020)
/dey/maper/ubuntu--vg-ubuntu--lv contains a file system with errors, check forced.
...
...
/dev/mapper/ubuntu--vg-ubuntu--lv: ***** FILE SYSTEM WAS MODIFIED *****
/dev/mapper/ubuntu--vg-ubuntu--lv: 712034/19595264 files (0.1% non-contiguous), 29430073/78379008 blocks

(initramfs) exit

当出现 FILE SYSTEM WAS MODIFIED 则表示fsck成功,执行 exit 重启生效(注:经测试,执行 reboot 无重启效果)

Copyright © https://yan-jian.com 2023 all right reserved更新时间: 2023-12-07 15:42:36

results matching ""

    No results matching ""