VMware vCenter 6.0 VCA Boot Error
In my case I had a network outage in my lab which resulted in the VCA, NSX Manager, Platform Services Controller, nearly everything to crash or hang. Upon restart of the VCA and PSC I received the some errors associated with /dev/mapper/log_vg-log partition. Asking me to fix the error manually.
The problem was if I follow the instructions to enable the shell so I can run fsck, I simply get an unknown command error.
Here is what I had to do to get moving again.
- Hit Control-D or Reboot the vCSA using the vSphere Client.
- When the GRUB bootloader appears, press the spacebar to disable autoboot.
- Select “p” and enter the root password
- Type “e” to edit the boot commands.
- Scroll to the second line displaying the kernel boot parameters. You see this line:kernel /vmlinuz-3.0.101-0.35-default
- Type e to edit the boot command.
- Append init=/bin/bash to the kernel boot options.
- Press Enter. The GRUB menu re-appears.
- Type b to start the boot process. The system boots to a temporary BASH shell.
- Set the default Shell to BASH by running this command:
chsh -s /bin/bash root - Reboot the vCSA using the vSphere Client
Ah this looks familiar
This time however we will;
- enter the root password
- at the repair filesystem prompt type the following command
fsck /dev/mapper/log_vg-log
- Control-D to reboot
Its all good again.
Thx for this, this saved my lab from a full rebuild after a power-outage.
Thanks a lot. you saved my day.
Excellent post and like others saved me from a lot of rebuild work.
Epic solution.
Tried all of the following and yours saved the day!
http://cormachogan.com/2015/06/03/fsck-of-vcenter-server-appliance-6-0-partitions/
http://www.virtualizationteam.com/server-virtualization/vcenter-appliance-fsck-failed.html
http://www.opvizor.com/blog/vmware-vcenter-server-appliance-vcsa-filesystem-is-damaged/
You’re the man!
E
Saved my bacon! The chsh -s /bin/bash root workaround to get the ‘repair filesystem’ prompt did the trick!
I got same error and lost 3 hours to try from 23h-2. I going to re install vcenter till i try your blogs. This save my jobs. Thx you.
Hero.
This was definitely a life saver for me! Thank you so much for this write up. Great job!!!
Had same problem with /dev/mapper/core_vg-core this help. Thanks alot. Save me day.