.dvsData directory is not persistent yet on 5.15 LTS with ESXi 6.7
I have a problem with OS and Distributed Switches on vCenter.
When I migrate the vm-network from standard switch to distributed switch show the next error:
Detailed information for cvm_startup_dependency_check: Node x.x.x.x: FAIL: .dvsData directory is not persistent yet Refer to KB 2050 (http://portal.nutanix.com/kb/2050) for details on cvm_startup_dependency_check
The above tests suggests to check if the dvsdata.db directory is present in Esxi host.
When an ESXi host boots it will get the data required to recreate the VDS structure locally by reading /etc/vmware/dvsdata.db and from esx.conf. You can view the dvsdata.db file yourself by doing:(This location is held by the Host ramdisk which is non-persistent)
net-dvs -f /etc/vmware/dvsdata.db
Secondly, the VMFS volume that holds a working directory (place where CVM .vmx is stored) that is connected to a VDS will have the following folder:
drwxr-xr-x 1 root root 420 Feb 8 12:33 .dvsData
If you go to this folder you will see another folder. This folder appears to be some sort of unique identifier, and when comparing the string to the output of “net-dvs” it appears to be the identifier of the dvSwitch that was created.
drwxr-xr-x 1 root root 1.5k Feb 8 12:47 6d 8b 2e 50 3c d3 50 4a-ad dd b5 30 2f b1 0c aa
Within this folder you will find a collection of files:
-rw------- 1 root root 3.0k Feb 9 09:00 106 -rw------- 1 root root 3.0k Feb 9 09:02 136 -rw------- 1 root root 3.0k Feb 9 09:00 138 -rw------- 1 root root 3.0k Feb 9 09:05 152 -rw------- 1 root root 3.0k Feb 9 09:00 153 -rw------- 1 root root 3.0k Feb 9 09:05 156 -rw------- 1 root root 3.0k Feb 9 09:05 159 -rw------- 1 root root 3.0k Feb 9 09:00 160 -rw------- 1 root root 3.0k Feb 9 09:00 161
Only CVM DVS info is persistent on the datastore, host configuration for dvs ports used for vmknics is persisted locally in /etc/vmware/dvsdata.db, which is available after boot. So DVS comes up and vmknic can use DVS to connect to NFS.
Login to the Esxi host as root and navigate to /usr/lib/vmware/bin and run this command
# ./net-dvs
In case the command does not return any error, there is an issue with the local VMFS volume where CVM is located and if this is non-persistent, we may well need to look into the kernel logs referencing this if there are any VMFS corruption issues.
Lets get the snippets for the following: less /var/run/log/vmkernel.log | grep failed
P.S: Please dont worry about the CVM data, its on the SSD and only the bootable ISO is present on the local SATADOM/M.2 drives.
I can see the directory “.dvsData” in all datastora.
1.- AOS version 5.15 LTS
2.- vCenter 6.7.0 Build 16046713
3.- NCC version 3.9.5
Thank you for your support
Hi @JESUS19
Could you please perform the following steps:
Login to the Esxi host as root and navigate to /usr/lib/vmware/bin and run this command
# ./net-dvs
In case the command does not return any error, there is an issue with the local VMFS volume where CVM is located and if this is non-persistent, we may well need to look into the kernel logs referencing this if there are any VMFS corruption issues.
Lets get the snippets for the following: less /var/run/log/vmkernel.log | grep failed
P.S: Please dont worry about the CVM data, its on the SSD and only the bootable ISO is present on the local SATADOM/M.2 drives.