NVP-vProxy: VM backup or restore operation fails with "Failed to lock Virtual Machine for backup:
Summary: NetWorker VMware Protection (NVP) Virtual Machine (VM) backup or restore operation fails with "Failed to lock Virtual Machine for backup: Another vProxy operation 'File-Level-Recover' is active on VM vm-####." A VM backup or restore operation performed using the NVP vProxy appliance fails with "Failed to lock Virtual Machine" ...
Symptoms
YYYY/MM/DD HH:MM:SS ERROR: [@(#) Build number: 43] Failed to lock Virtual Machine for backup: Another EMC vProxy operation 'File-Level-Recover' is active on VM vm-####
Depending on the operation being performed, for example: backup, FLR, so forth The error may appear slightly different. The consistency is "failed to lock virtual machine" and "another vProxy operation is active on VM."
Cause
Resolution
The ProxyHC utility can be used to clear any leftover attributes or artifacts which may be left over after a failed or interrupted backup or recovery.
Instructions for downloading and setting up ProxyHC can be found here:
NVP-vProxy: How to use health check tool ProxyHC on vProxy appliance
1. Ensure no backups, or recoveries are running in the vCenter.
2. Setup ProxyHC on the vProxy used for the failed backup/recover
3. Run the following command:
ProxyHC disk tasks cleanup
If this operation cannot be used due to other jobs running or if it does not work. The following procedure can be completed to manually clear annotations on a VM.
The "Dell EMC vProxy FLR Session" attribute must be reset (cleared) manually using the vSphere client. Here is a general overview of the procedure:
- Open the vSphere web Client.
- Locate the affected VM in VMware inventory.
- Perform one of the following options to access the annotations:
Figure 1: VM "Edit Custom Attributes" option in vSphere.
b. In the VM Summary tab, select "Edit" the Annotations section.
- Select the
Dell EMC vProxy FLR Sessionattribute and then click the X to delete it.
Dell EMC" attributes. They will be re-created when the next vProxy backup, restore, or cleanup operation is performed.
- Select "OK" in the Edit Annotations window.