Consolidate virtual machine disk files Unable to access file since it is locked 1


Jonathan Frappier Virtxpert

I recently ran into an error where an alarm was triggered due to a VM needing to be consolidated, however when I attempted to consolidate the log files It failed with the error “Consolidate virtual machine disk files . Unable to access file since it is locked.”  This occurred with the both the VM powered on and powered off.  VMware KB Article 2017072 suggested this could be caused by backup software snapshots, which in this case was unlikely because the VM is not backed up (throw away test VM if you are worried :) ).  There were several steps in the KB, however I was able to solve this simply with a storage vMotion to a new datastore, then consolidating the disk.

Consolidate virtual machine disk files Unable to access file since it is locked