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

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

book

Article ID: 322832

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

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

Symptoms:
  • 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;


Environment

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

Cause

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.

Resolution

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.

Workaround:

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/Net.py /storage/core/Net.py.backup;
 
  1. Add search domain.com to end of the /etc/resolv.conf file using the command below where domain.com your own domain:
echo 'search domain.com' >> /etc/resolv.conf;
 
  1. In the file /usr/lib/applmgmt/backup_restore/py/vmware/appliance/backup_restore/util/Net.py change the following line from:
ipV4Cmd = ['/usr/bin/dig', '+noedns', '+short', pnid, 'a']

to

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

Note:
Ensure that only the +search parameter is added.
Net.py 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.