I had two cases where VM disk consolidation failed.
Error message: An error occurred while consolidating disks: Could not open/create change tracking file.
- Shutdown VM
- Edit VM configuration parameters and delete all lines that enable CBT (change block tracking). This might be not necessary, but I did it.
- Move all *ctk* files away from VM folder
- Consolidate the disks
Error message: Unable to access the file since it is locked. An error occurred while consolidating disks: msg.fileio.lock
Solution: Reboot all hosts in cluster one by one and try to consolidate the VM disks again.
I hope this will help anyone who has same issues with consolidating VM disks.