In nvpapi/api_server.log , you may see log messages similar to the log lines below indicating which file systems are in read-only mode:
YYYY-MM-DDT03:11:02.145Z napi.root.node.services.utils.node-mgmt ERROR File system(s) found to be in read-only mode: /dev/sdb1 -> /mnt
The "mount" command shows file systems used by NSX Manager in a readonly mode.
Not able to login into appliance or repetitive login failure message.
NSX Manager appliance console may not proceed past a line stating: kauditd hold queue overflow
Environment
VMware NSX
VMware NSX-T Data Center
Cause
The following are common causes of NSX Manager nodes' partitions going into a read-only state:
File System Corruption: When the file system is corrupted, the Manager appliance OS might mount it as read-only to prevent further damage.
Improper System Shutdown: Abrupt power loss or an unclean system shutdown can lead to a read-only file system.
Hardware Issues: Faulty hard drives or damaged sectors can cause the file system to switch to read-only mode.
Incorrect File System Configuration: Mistakes in the /etc/fstab file or other configuration files can result in a read-only file system.
Resolution
Steps to Resolve
For VMware NSX-T 3.0.2 and higher
Address any underlying storage connectivity issues before proceeding with the below Manager appliance specific steps.
Reboot the manager node. Filesystem checks (fsck) should run at boot time on all partitions.
If the Corfu partitions (/config or /nonconfig) get mounted as read-only and a reboot does not help:
The partitions /config and /nonconfig are used by the NSX database Corfu. Linux recovery tools such as fsck may not repair these partitions.
In such cases, where a reboot has not repaired these two partitions, it is advised to restore the appliances from backup to a point before the outage occurred.
Note: If only a single appliance was impacted, you can remove that single appliance and deploy a new one.
If a reboot does not help, and another partition other than /config and /nonconfig are mounted in read-only, use the steps below to resolve the issue.
Notes:
If possible, take a backup before proceeding.
Performing the following file system repair steps will only fix the OS file system and not repair any corruption which may have occurred to the NSX components.
Any corruption may lead to other issues in the future.
Connect to the console of the manager appliance.
Reboot the system.
When the GRUB boot menu appears, press the left SHIFT or ESC key quickly. Note: If the GRUB menu does not appear, the appliance must be redeployed. Note: If you wait too long and the boot sequence does not pause, you must reboot the system again.
Press e to edit the selected option 'Ubuntu' (Not Advanced Ubuntu).
Enter the user name (root) and the GRUB password (not the same as the appliance user root).
Note: The default password is VMware1 before release 3.2 and NSX@VM!WaR10 for 3.2 and beyond.
Search for the line starting with linux.
At the end of this line, add fsck.mode=force fsck.repair=yes and press F10 to boot with these options. This should bring up the prompt to login with the appliance root user credentials. If not, continue to step h.
Note: It is strongly recommended to redeploy new Manager nodes after recovering them, to replace the affected node(s).
Remove all options after root= and add rw init=/bin/bash after the UUID:
Press Ctrl-X to boot.
When the log messages stop, press Enter. Note: You will see the prompt root@(none):/#
Run the following commands to repair the non-Corfu file systems:
If you need to open a Broadcom support request, be sure to note all troubleshooting steps already performed and the result(s) of each and confirm the underlying storage issue is resolved.