The vpxd-svcs service failed to pre-start with the log in vmon.log
Note: before any modification to vCenter server, please do backup or snapshot.
To resolve the issue
1) Check the PNID of vCenter server with the command:
# /usr/lib/vmware-vmafd/bin/vmafd-cli get-pnid --server-name localhost
Example:
# /usr/lib/vmware-vmafd/bin/vmafd-cli get-pnid --server-name localhost
localhost
In a healthy vCenter server the output could be either FQDN or IP address.
* If vCenter was deployed with FQDN, the PNID is same with FQDN.
* If vCenter was deployed with IP address without DNS resolution, the PNID is the IP address.
In this sample, the PNID output is localhost which neither FQDN nor IP address.
This means that the PNID had been changed.
2) Check the vCenter server deployment with FQDN or IP, run the command:
# grep -i sso /etc/vmware-vpx/vpxd.cfg
Output:
<sso>
<uri>https://xxx.xxx.xxx.xxx/sso-adminserver/sdk/vsphere.local</uri>
<uri>https://xxx.xxx.xxx.xxx/sso-adminserver/sdk/vsphere.local</uri>
</sso>
If the uri is FQDN, it was deployed with FQDN.
If the uri is IP address, it was deployed with IP address.
In this sample the vCenter was deployed with IP address but somehow the PNID was changed to localhost
2) Manually change the PNID to original with the command:
# /usr/lib/vmware-vmafd/bin/vmafd-cli set-pnid --server-name localhost --pnid <FQDN-or-IP>
Example:
# /usr/lib/vmware-vmafd/bin/vmafd-cli set-pnid --server-name localhost --pnid xxx.xxx.xxx.xxx
3) Stop and start all the services
# service-control --stop --all
# service-control --start --all