VCSA Activating swap-devices in /etc/fstab…failed

In preparation for the VCIX-NV exam I wanted to setup NSX in the homelab and migrate from vSphere’s Standard Switches (vSS) to a single Distributed Switch (vDS). The migration was going smoothly with the following VMkernel adapters being migrated to the vDS without issue: Management, vMotion, iSCSI-A, iSCSI-B. Then the fun began, I migrated the last physical adapter from the iSCSI/NFS vSS to the vDS and forgot to migrate the NFS VMkernel (DOH!). Leaving the NFS VMkernel stranded on the vSS with no physical adapter to communicate with thus cutting off access to VMs on that datastore. The connection issue was quickly resolved by logging into the ESXI Hosts and reconnecting the physical adapter back to the iSCSI/NFS vSS. Then I jumped into the console for the VCSA and noticed it was frozen so I rebooted the VM. When it came back up I was greeted with the following error and troubleshooting began:

Fig-01
Fig-01

I provided the root password and was presented with this error:

Fig-02
Fig-02

When trying to launch BASH using the shell and shell.set –enabled True commands:

Fig-03
Fig-03 (Prior to this issue both SSH and BASH were enabled)

Using VMware’s KB2069041 article was able to gain access to the shell:

Fig-04
Fig-04

With shell access I ran the mount – n -o remount,rw / command which returned:

Fig-05
Fig-05

The error message is recommending to use the e2fsck command:

Fig-06
Fig-06

A WARNING!!! is presented asking if you want to continue:

Fig-07
Fig-07

After pressing ‘y’ the command began fixing errors:

Fig-08
Fig-08
Fig-09
Fig-09

After completing I pressed Control + D to exit maintenance mode and rebooted the VCSA upon reboot was presented with a slightly different error message:

Fig-10
Fig-10

I booted back into the shell using KB2069041 and ran the mount – n -o remount,rw / again which thankfully completed successfully this time. I pressed Control+D to exit and rebooted the VCSA again this time to be greeted with a familiar screen:

Fig-11
Fig-11

Moral of the story:

K1590
Don’t forget to migrate those VMKernels!

 

I hope this post help those who might run into a similar issue where the VCSA file system is mounted in a read-only state.

3 comments On VCSA Activating swap-devices in /etc/fstab…failed

Leave a reply:

Your email address will not be published.

Site Footer

Sliding Sidebar

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.