https://login.veeam.com/en/oauth?client_id=nXojRrypJ8&redirect_uri=https%3A%2F%2Fwww.veeam.com%2Fservices%2Fauthentication%2Fredirect_url&response_type=code&scope=profile&state=eyJmaW5hbFJlZGlyZWN0TG9jYXRpb24iOiJodHRwczovL3d3dy52ZWVhbS5jb20va2IzMTQxIiwiaGFzaCI6IjhlMGY1ZjM3LTg5NzQtNGJlZi1iMzRkLWZjZmIzNWJmNzA5NSJ9
1-800-691-1991 | 9am - 8pm ET
EN

Restore a deleted vCenter Server Appliance (VCSA) with High Availability (HA) enabled

Challenge

You need to restore a vCenter Server Appliance (VCSA) with the original name and to the original location. Before the VCSA got corrupted or was deleted, High Availability (HA) was enabled in the VMware cluster.

If HA remains active at the ESXi host level during the restore process, HA can detect the restored VCSA as a VM with problems. HA will try to bring this VM online by powering it on and using vMotion to move it to another host.

This causes the restore process to fail because the VM gets locked when powered on and moved.

Cause

HA is a VMware that monitors VMs. If a VM stops reporting back, HA assumes that something is wrong with the VM and tries to bring it online. If the VM is powered off, HA can consider that the host is having issues and will try to find the VM, move it to another host and power the VM on the host.

When Veeam Backup & Replication starts the restore process, it copies the VM .vmx file to the datastore and registers it on the host. As soon as the VM is restored and registered with the original name, the restored VM becomes the original VM in the vCenter inventory. Then, HA locates this VM and tries to bring it online.

You will see the following errors related to VM file locks:

Error Failed to restore vm. Name: [<EXAMPLE_VM>]
Error DiskLib error: [13].The file is locked or in use -- File open failed: File not open (Veeam.Backup.Common.CCppComponentException)
Error [AP] (f10e) error: DiskLib error: [13].The file is locked or in use -- File open failed: File not open
Error Unable to write VMX file: /vmfs/volumes/<GUID>/<EXAMPLE_VM>/<EXAMPLE_VM>.vmx.
Error Failed to lock the file

This causes the restore process to fail or slows the process for hours so that the process fails due to timeout.

Solution

The following solutions are possible:

  • Connect to the host and disable HA.
  • Restore the VCSA with a different name so that HA will not consider the VCSA as the original one.
  • Use VM Overrides in the cluster settings to disable HA.
KB ID:
3141
Product:
Veeam Backup & Replication
Version:
Any
Published:
2020-04-07
Last Modified:
2020-08-13
Please rate how helpful this article was to you:
5 out of 5 based on 1 ratings
Thank you for helping us improve!
An error occurred during voting. Please try again later.

Couldn't find what you were looking for?

Below you can submit an idea for a new knowledge base article.
Report a typo on this page:

Please select a spelling error or a typo on this page with your mouse and press CTRL + Enter to report this mistake to us. Thank you!

Spelling error in text

Knowledge base content request
By submitting, you agree that your personal data will be managed by Veeam in accordance with the Privacy Policy.

ty icon

Thank you!

We have received your request and our team will reach out to you shortly.

OK

error icon

Oops! Something went wrong.

Please go back try again later.