CommVault – Virtual Machine Disks Consolidation Error

In my Pre-Prod environment, noticed that CommVault was not performing VM Snapshots on a particular server.

Checked vCenter and saw that there was a message saying that the Virtual Machine disks required consolidation.

CommVaultDiskConsolidation#1

Right click on the VM and click Consolidate.
It would run for a while and then get an error saying;


An error occurred while consolidating disks: msg.fileio.lock.

CommVaultDiskConsolidation#2


Resolution:
vMotion the storage to another datastore to release the lock. Then vMotion back to the same datastore.

Was then able to do a Disk Consolidation without any issues.