Just applied ESXi 6.5 Update 2. Now I am finding I am unable to revert to any previous snapshots(or new ones). The vm is shutdown and was shutdown during the prior snapshot processes. I checked the folder and there is no .lck file. I am at a loss as to what file could be locked. I see nothing for that folder when doing lsof either. Any thoughts? Thanks
The error is shown below:
haTask-13-vim.VirtualMachine.revertToCurrentSnapshot-112100968
Failed - Unable to access file since it is locked
An error occurred while reverting to a snapshot: One of the disks in this virtual machine is already in use by a virtual machine or by a snapshot.
you didn't mention if you are on a SAN (VMFS), a NAS, VSAN, or VVOL. The locking mechanisms are different for each. On a NAS, you are looking for hidden files starting with Period (.), that is the easy case, delete the files from a putty session. For SAN it is a lot more of a problem, look for KB10051: https://kb.vmware.com/kb/10051
Yes I have detached and reattached the vm. No change. And I am finding it is also happening on ESXi 6.5 Update 1 servers. I can find no open files. Even fails command line method.
Your image based backup solution doesn't have locks on them does it?
Sorry. Direct attached storage. That should make it much easier to diagnose but I have not found it being the case.
No image based (nor any other type) of backup is in use. There really is no reason this should be locked. I am baffled.
Direct Attached storage means that it is a VMFS datastore where the locking is basically hidden. Have you moved the VM from one host to another at any time? If so, move it back to where it was when it was last powered on and try it from there. It may have locks tied to that original esxi host. The other poster's comment about the backups having a lock could also be valid. Use the vmkfstools command in the KB to verify if there are any locks on all of the various files. The error may tell you the specific file, otherwise you will need to check the vmx and all of the -flat.vmdk files.
Never moved. These vm's are in essence locked to each server. I have 6 total and have not done any vmotion or other features. I have not even implemented autostart up. This is a test lab environment and if I cant restore snapshots Im... Well.. [insert favorite blasphemy here]!!
VMFS 6 and updated the vm compatibility too. Stumped...
Also not using VCenter, only the Web interface. I notice when I Manage the shapshots the thumbnail image goes into refreshing (spinning). I am not sure what its trying to do?
Nobody has any other ideas? I am at a total loss here and snapshots are well... Kinda very important.