Recover NSX manager if it fails to boot up with error "UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY."
book
Article ID: 320303
calendar_today
Updated On:
Products
VMware NSX Networking
Issue/Introduction
The purpose of this KB is to provide steps to recover NSX manager node.
Symptoms: NSX manager may report inconsistency in filesystem and fail to boot up. This has been observed post issues with storage infrastructure. Following errors may be observed while rebooting manager node-
/dev/sda3: UNEXPECTED INCONSISTENCY; RUN fsck MANUALLY. fsck exited with status code 4 The root filesystem on /dev/sda3 requires a manual fsck Rebooting automatically due to panic= boot argument
Script Settings
Auto Check-In: Check-In Time: Check-Out Time: Template File:
▶
Environment
VMware NSX-T Data Center
Resolution
Steps-
Connect to the console of the appliance.
Reboot the system.
When the GRUB boot menu appears, press the left SHIFT or ESC key quickly. If you wait too long and the boot sequence does not pause, you must reboot the system again.
Press e to edit the menu.
Choose the top Ubuntu line then enter the user name root and the GRUB password for root (not the same as the appliance's user root). The default password is VMware1 or NSX@VM!WaR10 depending upon version.
Press e to edit the selected option.
Search for the line starting with linux and delete everything to the right of "ro" and replace "ro" with "rw" at the end.
Edit this line to:
Replace ro with rw
Press Ctrl-X to boot.
Run fsck on affected filesystem for e.g. fsck /dev/sda3.
After this the manager may show Login incorrect multiples times and fail to boot up properly. To recover from this do the following-
Connect to the console of the appliance.
Reboot the system.
When the GRUB boot menu appears, press the left SHIFT or ESC key quickly. If you wait too long and the boot sequence does not pause, you must reboot the system again.
Press e to edit the menu.
Choose the top Ubuntu line then enter the user name root and the GRUB password for root (not the same as the appliance's user root). The default password is VMware1.
Press e to edit the selected option.
Search for the line starting with linux and delete everything to the right of "ro" and replace "ro" with "rw" at the end.
Press Ctrl-X to boot.
The appliance should boot to maintenance mode and you would be prompted to enter root password.
Run the fsck /dev/mapper/nsx-tmp command. Press "Yes" to fix all errors encountered by the file system.
Enter "Reboot" command, it should now boot into default mode.
Note: If you see boot issues even after running the above steps, run it again until Step 6 and on Step 7 add 'rw single init=/bin/bash' at the end of the line and run below commands on the next prompt.