<div dir="ltr" style="text-align: left;"><span itemprop="articleBody">To work around this issue:</span></p>
<ol style="text-align: left;">
<li>Power down the backup server, or remove the <span itemprop="articleBody"><code>.vmdk</code></span> from the backup virtual appliance or the other virtual machine the disk is attached to.<span itemprop="articleBody"></span><b> Warning:</b> Do not select Delete option as it will result in data loss.</li>
<li>Create a new snapshot of the affected virtual machine and then Perform a <strong>Delete All</strong> from the snapshot manager to consolidate all snapshots. <b><br /></b></li>
<li>If the delete succeeds, check the folder of the virtual machine to ensure that all the snapshots are consolidated. ;</li>
<li>If the delete fails again with lock messages, determine which host still has a lock on the <span style="font-family: Courier New;"><i>name</i>-flat.vmdk</span> or <span style="font-family: Courier New;"><i>name</i>-delta.vmdk</span> file.</li>
<li>If it continues to fail with lock messages, restart the management agents on the ESX/ESXi host where the virtual machine is running. ;</li>
<li>If you are unable to determine the process or virtual machine holding the lock on the file in the error, consider migrating the running virtual machines of the ESX host that is holding a lock and reboot. ;<a href="http://kb.vmware.com/selfservice/search.do?cmd=displayKC&;docType=kc&;docTypeID=DT_KB_1_1&;externalId=1013193" target="_blank"></a></li>
</ol>
<p>Alternatively, if you are unable to reboot ESX host, you can consider cloning the disk in question and create a new disk.</p>
<p>To clone and attach the new disk back:</p>
<ol>
<li>Power off the virtual machine with the locked disk. </li>
<li>Clone the latest snapshot disk (i.e. <span style="font-family: Courier New;"><i>name</i>-000003.vmdk</span>) from the command line. ; </li>
<li>Once clone is complete, remove the locked disk from the virtual machine using <span itemprop="articleBody"><strong>Remove from virtual machine </strong>option. </span></li>
<li>Attach the cloned <span style="font-family: Courier New;">.vmdk</span> as to the virtual machine and power it up. </li>
</ol>
</div>

