# 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:

![VCSA Error 00](https://cdn.hashnode.com/res/hashnode/image/upload/v1730217948607/2ad31043-eb53-43d7-b650-ff15c4d5e4ed.png align="left")

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

![Fig-02](https://cdn.hashnode.com/res/hashnode/image/upload/v1730218364381/f2a77c4d-132b-41c5-bf1d-e92ffda668cc.png align="left")

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

![Fig-03 - Prior to this issue both SSH and BASH were enabled](https://cdn.hashnode.com/res/hashnode/image/upload/v1730218413200/186e92df-f17b-44c3-be1b-f95241096cb5.png align="left")

Using VMware’s [KB2069041](http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2069041) article was able to gain access to the shell:

![Fig-04](https://cdn.hashnode.com/res/hashnode/image/upload/v1730218550380/41b7cb4d-0a2a-4874-8208-e9a4e599d8ec.png align="left")

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

![Fig-05](https://cdn.hashnode.com/res/hashnode/image/upload/v1730218623937/07894bec-1c21-488d-ac19-acb9f328c241.png align="left")

The error message is recommending to use the `e2fsck` command:

![Fig-06](https://cdn.hashnode.com/res/hashnode/image/upload/v1730218720255/3537ca3e-f3d0-484a-b37a-c06c917041a8.png align="left")

<mark>A WARNING!!! is presented asking if you want to continue:</mark>

![Fig-07](https://cdn.hashnode.com/res/hashnode/image/upload/v1730218771142/e9583676-9330-48ac-8902-92be29c49938.png align="left")

After pressing ‘*y*’ the command began fixing errors:

![Fig-08](https://cdn.hashnode.com/res/hashnode/image/upload/v1730218814821/40edc14b-b076-45c8-8a61-5a80dcfa38d1.png align="left")

![Fig-09](https://cdn.hashnode.com/res/hashnode/image/upload/v1730218845850/5c9fda90-9f6a-4790-924e-c1272a700725.png align="left")

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](https://cdn.hashnode.com/res/hashnode/image/upload/v1730218877928/a7373e92-809b-4129-87ea-69dbf32bc99e.png align="left")

I booted back into the shell using [KB2069041](http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2069041) 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](https://cdn.hashnode.com/res/hashnode/image/upload/v1730218918295/5f3f76df-7c47-4a9d-ba9d-ddf20f4ebdc6.png align="left")

Moral of the story:

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1730218941243/5b0d9a71-43f0-4958-acc7-40e3dbfc5901.png align="left")

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.
