vCenter Server Appliance backup over SCP stuck between 40 - 60%
search cancel

vCenter Server Appliance backup over SCP stuck between 40 - 60%


Article ID: 322832


Updated On:


VMware vCenter Server


This article provides steps to resolve the backup issue when using SCP when the PNID of the vCenter Server Appliance is a short-name.

  • VCSA backup using SCP gets stuck between 40 - 60% and fails
  • Restoring the VCSA from such a backup fails with the error:
Metadata and system validation failed
Backup PNID is not resolved on the network please configure the network DNS service accordingly
  • When executing the command below you receive output that is not an FQDN or IP:
/usr/lib/vmware-vmafd/bin/vmafd-cli get-pnid --server-name localhost;


VMware vCenter Server Appliance 6.7.x
VMware vCenter Server Appliance 6.5.x


The backup process relies on the use of an FQDN or IP for the PNID. When a short-name is set for the PNID it is unable to resolve this correctly and the backup process fails.


This is expected behavior as a result of deploying the VCSA using a short-name as the PNID.

For VCSA versions prior to 6.7 U3 it is not possible to change the PNID after deployment. For more info, see Cannot change the vCenter Server or Platform Service Controller 6.x hostname on versions prior to vCenter Server 6.7 Update 3.


To work around this issue, follow the steps below:

  1. Connect to the console of the VCSA using SSH.
  2. Take a backup of the files we will be editing using the command below:
cp /etc/resolv.conf /storage/core/resolv.conf.backup; cp /usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/util/ /storage/core/;
  1. Add search to end of the /etc/resolv.conf file using the command below where your own domain:
echo 'search' >> /etc/resolv.conf;
  1. In the file /usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/util/ change the following line from:
ipV4Cmd = ['/usr/bin/dig', '+noedns', '+short', pnid, 'a']


ipV4Cmd = ['/usr/bin/dig', '+noedns', '+short','+search', pnid, 'a']

Ensure that only the +search parameter is added. is read-only so need to save with :wq!
  1. Restart the VAMI service using the command below:
service-control --stop applmgmt;service-control --start applmgmt;
  1. Retry the VCSA backup via SCP.