'Delete from disk' and 'Remove from Inventory' are grayed out in the vSphere Client.VMware vCenter Server 8.x
vpx_disabled_methods. "Disabled Methods" via the vSphere API to prevent accidental deletion or migration that could lead to replication inconsistency. If a VM is removed from Zerto, sometimes, the entries remain as stale in the vCenter database, preventing the vSphere Client from performing those specific actions.To restore the methods, follow one of the options listed below.
OPTION 1: Using vSphere Client
Configure -> Disabled Methods.'Enable' option.OPTION 2: Using vCenter MOB
"VirtualMachine:vm-xx".vm-xx is the VM's MOB ID. [email protected]<!-- array start --><entity type="ManagedEntity" xsi:type="ManagedObjectReference">vm-xx</entity><!-- array end -->
<method>Destroy_Task</method><method>UnregisterVM</method>
Invoke Method
OPTION 3: Using vCenter Postgres Database
service-control --stop vpxd
Enter the vCenter Postgres Database:
/opt/vmware/vpostgres/current/bin/psql -d VCDB -U postgres
select id, file_name from vpx_vm where file_name like '%VM_NAME%';
select * from vpx_disabled_methods where entity_mo_id_val = 'vm-ID';
DELETE FROM vpx_disabled_methods WHERE entity_mo_id_val = 'vm-ID';
\q
service-control --start vpxd