现象

突然发现VC无响应,控制台看结果如图:

vCenter死机,重启出现fsck failed无法启动

网上查资料

朋友给了一个VM官方的解决方案 https://kb.vmware.com/s/article/2081464#q=core_vg-core%20unexpected%20inconsistencs

主要参考其中的

Option 2:

 

  1. Press Control+D or reboot the vCSA using the vSphere Client.
  2. When the GRUB bootloader appears, press Spacebar to disable autoboot.
  3. Select p and enter the root password
  4. Type e to edit the boot commands.
  5. Scroll to the second line displaying the kernel boot parameters. 
    You see this line:
    kernel /vmlinuz-3.0.101-0.35-default
  6. Type e to edit the boot command.
  7. Append init=/bin/bash to the kernel boot options.
  8. Press Enter. The GRUB menu re-appears.
  9. Type b to start the boot process. The system boots to a temporary BASH shell.
  10. Set the default shell to BASH by running this command:
    chsh -s /bin/bash root
  11. Reboot the vCSA using the vSphere Client.
  12. Enter the root password.
  13. At the repair filesystem prompt, type this command:
    fsck /dev/mapper/log_vg-log

    Enabling BASH shell in vCenter Server Appliance 6.0

  14. vCenter Server Appliance 6.0 does not boot to the BASH shell by default.

    To enable the BASH shell:

  15. In the GRUB boot loader press p.
  16. Enter the root credentials when prompted.
  17. Select VMware vCenter Server Appliance and press e.
  18. Select the line that begins with kernel and press e.
  19. Add init=/bin/bash to the end of the line and press Enter. This line should start with <nousb audit=1</font>.
  20. Press b.

解决过程

1.模式按照上述20个步骤操作

2.其中13步替换成我故障的路径进行修复:分别为:fsck /dev/mapper/core_vg-core   和 fsck /dev/mapper/seat_vg-seat  

3.修复成功

注意事项

1.修复过程中各阶段的重启可以用冷启动的方式

2.第7步vCenter死机,重启出现fsck failed无法启动添加init=/bin/bash前面要加一个空格。如:vCenter死机,重启出现fsck failed无法启动

 

相关文章:

  • 2022-12-23
  • 2021-12-09
  • 2021-07-16
  • 2021-12-06
  • 2021-05-20
  • 2021-04-19
  • 2021-08-15
猜你喜欢
  • 2022-12-23
  • 2021-10-16
  • 2021-12-20
  • 2022-12-23
  • 2022-12-23
  • 2022-01-06
  • 2021-12-17
相关资源
相似解决方案