This article describes how to troubleshooting the issue.
Error "Delete virtual machine " cannot complete the operation due to an incorrect request to the server "
"Virtual machine Consolidation Needed status"
" testvm from datastore was initiated from 'VMware vim-java 1.0@10.76.54.1' and completed with status 'Failure'"
Cause: Backup proxy hold disks attached into VM.
Workaround the issue:-
Senario1:-
> Identify the backup proxy server and remove the attached disk (test01vm).
> Caution: Do NOT select Delete files from the datastore.
> Issue has been resolved and consolidation the VM.
Senario2:-
> Login esxi host via ssh and go to datastore on specific vm.
# cd /vmfs/volumes.
> Run the below command to get vmdk is locked to which Esxi host.
[root@host1:/vmfs/volumes/61ff5ab7-abcfea3a-97c3-0025b502a14f/test01vm] ls | while read x; do vmfsfilelockinfo -p $x| grep -i "is locked"
; done
"test01vm-flat.vmdk" is locked in Read-Only mode by host having mac address ['gc:02:17:79:33:bi']
Connect to the ESXi Host where the virtual machine is on with an SSH session
To know what is locking the VM files and release the lock , follow the below :
# lsof | grep -i "test01vm"
The ESXi Shell can be disabled by an administrative user. See the
vSphere Security documentation for more information.
[root@host02:~] lsof | grep -i "test01vm"
5850965 vmx FILE 87 /vmfs/volumes/8jx78-dpsxc6-b482-0025b502a14f/nwt-07/test01vm.vmdk-delta.REDO_UQaWMF
5850965 vmx FILE 104 /vmfs/volumes/6juyx9-97c3-0025b502a14f/test01vm/test01vm0-flat.vmdk
5850965 vmx FILE 113 /dev/deltadisks/8019483d-test01vm.vmdk-delta.REDO_UQaWMF
Permanent fix:-
> To fix the issue, problem proxy server exclude from daily backup jobs.
Note:
Virtual Machine File Lock most common scenarios:
1-Proxy Back Up Virtual Machine (Veeam, Avamar, Unitrends,...etc) is locking one or more of the virtual machine .vmdk files.
2-An ESXi Host is locking the Virtual Machine files abnormally.
Links:-
https://vmkfix.blogspot.com/2023/03/publish-operation-failed-and-host-is.html
https://vmkfix.blogspot.com/2021/05/what-is-hostd-and-vpxa.html
https://vmkfix.blogspot.com/2021/05/unable-to-apply-drs-resource-settings.html
https://vmkfix.blogspot.com/2021/05/how-to-upgrade-esxi-host-through.html
https://vmkfix.blogspot.com/2021/05/how-to-take-backup-of-esxi-host.html
https://vmkfix.blogspot.com/2021/05/how-to-check-psc-details-in-vcsa.html
https://vmkfix.blogspot.com/2021/04/how-too-get-cdp-info-on-command-line-in.html
https://vmkfix.blogspot.com/2021/04/how-to-power-on-vm-from-command-line-in.html
https://vmkfix.blogspot.com/2021/04/collect-esxi-host-information-for.html
https://vmkfix.blogspot.com/2021/04/how-to-check-vlan-details-esxi-host.html
https://vmkfix.blogspot.com/2021/04/how-to-check-remote-ip-details-in-esxi.html
https://vmkfix.blogspot.com/2021/04/how-to-install-esxi-host-step-by-step.html
https://vmkfix.blogspot.com/2021/04/vcenter-update-patches-from-67-u3-to-67.html
https://vmkfix.blogspot.com/2021/09/how-to-change-ssl-certificates-on.html
https://vmkfix.blogspot.com/2021/08/unable-to-login-vmware-vcenter-server.html
https://vmkfix.blogspot.com/2021/07/how-to-check-vsan-health-status-on.html
https://vmkfix.blogspot.com/2023/07/how-to-identify-orphned-vmdk-files.html
https://vmkfix.blogspot.com/2023/06/virtual-disk-cid-mis-match-on-parent.html
https://vmkfix.blogspot.com/2023/05/unable-to-power-on-vm-vmware.html
https://vmkfix.blogspot.com/2023/05/how-to-change-esxi-root-password.html
https://vmkfix.blogspot.com/2023/05/how-to-change-round-robin-iops-limit.html
https://vmkfix.blogspot.com/2023/04/how-to-collect-emc-grabs-from-esxi-host.html
https://vmkfix.blogspot.com/2023/01/ucs-crc-counters-errors.html
https://vmkfix.blogspot.com/2022/06/how-to-update-firmware-on-cisco.html
https://vmkfix.blogspot.com/2021/04/upgrade-cisco-ucs-from-312ba-to-323p-to.html
https://vmkfix.blogspot.com/2023/05/vmware-vcenter-not-login-no-healthy.html
https://vmkfix.blogspot.com/2023/04/disk-unhealthy-on-esxi-host-on-vsan.html
https://vmkfix.blogspot.com/2023/04/how-to-activate-clustered-vmdk-support.html
https://vmkfix.blogspot.com/2023/04/update-network-configuration.html
https://vmkfix.blogspot.com/2023/04/vmware-to-identify-which-drives.html
https://vmkfix.blogspot.com/2023/04/vmware-unmount-datastorevolume-from.html
No comments: