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

1 篇文章 0 订阅
1 篇文章 0 订阅

现象

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

网上查资料

朋友给了一个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步添加init=/bin/bash前面要加一个空格。如:

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值