Hi,
Did you try to do the consolation disk?
Check the datastore where that VM is stored and check the files inside the VM folder. Are there any snapshot files? Like vmname-001.vmdk
Do you have any backup tool that creates snapshots for the backups?
If you create a new snapshot and then delete all, does it work?
Virtual disk consolidation is the process of merging virtual disk files created after taking VM snapshots. You can initiate disk consolidation on demand to avoid performance degradation and other issues.
Try to perform the following actions to fix this error.
services.sh restart
or
/etc/init.d/hostd restart
/etc/init.d/vpxa restart
You can also open the ESXi direct console, go to Troubleshooting Options, and select Restart Management Agents (press Enter to activate the needed option, then press F11 to confirm).
vmfsfilelockinfo -p /vmfs/volumes/vm_datastore/vm_name/vm_name.vmx
cat /var/log/hostd.log |grep -i vm_name
cd /vmfs/volumes/datastore_name/vm_name
for i in `ls`; do vmfsfilelockinfo -p $i ;done|grep ‘is locked in\|Host owning the lock\|Total time taken’ | sed ‘s|Host owning the lock on file is||g’|sed ‘s|Total time|—|g’ | awk ‘{print $1}’ |uniq
/etc/init.d/hostd restart
/etc/init.d/vpxa restart
and finally try the disk consolidation.
Sorry @HailegebriealA, what? Why do you need to restart ESXi host services for a VM consolidation disk or delete snapshots?
Hello jail break
Its Production Environment I can do these. if you have any other suggestions let me know
Have you tried shutting down the vm and take a new snapshot and then delete all snapshots?
@LucianoPatrão i think @HailegebriealA @is suggesting to restart management agents because of the lock
After the latest reply from the author, yes, it makes sense, not before. We should not propose that kind of task if it is not really needed, particularly when discussing production environments.
Ultimately, the responsibility for the tasks is always on the author, but we should always be aware that our recommendations can impact the environment.
Hi,
What tool is doing your backups? The tool seems to create the snapshots and then is not deleting some.
If you have a lock file, you should try this: https://kb.vmware.com/s/article/10051
Then you could try the delete snapshots and consolidation again.
Since this is a production environment, you will always need to have a maintenance window to do this work because of the lock file issue. You may need to reboot the host.