<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Unable to Delete VMDK File in ESXi Discussions</title>
    <link>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339595#M125216</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://www.vmdude.fr/en/how-to-en/locked-orphans-vmdk-files/" title="http://www.vmdude.fr/en/how-to-en/locked-orphans-vmdk-files/"&gt;http://www.vmdude.fr/en/how-to-en/locked-orphans-vmdk-files/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 08 Oct 2015 19:40:55 GMT</pubDate>
    <dc:creator>mohdhanifk</dc:creator>
    <dc:date>2015-10-08T19:40:55Z</dc:date>
    <item>
      <title>Unable to Delete VMDK File</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339586#M125207</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I recently deleted a VM with a large (1.4TB) VMDK file attached. When I checked the datastore a few weeks later a there was still a "vmname-flat.vmdk" file left over. However when I tried to delete it via the vSphere client I got an error saying "cannot delete file [DATASTORE_NAME] vmname-flat.vmdk". I connected to an ESXi host in the cluster and tried to delete it from there. Running "rm vmname-flat.vmdk" resulted in the error:&lt;/P&gt;&lt;P&gt;"rm: can't remove 'vmname-flat.vmdk': Bad address"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the same time the following event was logged in vmkernel.log:&lt;/P&gt;&lt;P&gt;"2015-08-27T11:09:02.904Z cpu7:18223819)Fil3: 8848: Truncating &amp;lt;FD c157 r32&amp;gt; failed: Invalid address"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried from a few different ESXi hosts, all with the same result. running lsof shows that the file is not locked by any process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I delete this file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 11:19:02 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339586#M125207</guid>
      <dc:creator>airfrog7</dc:creator>
      <dc:date>2015-08-27T11:19:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Delete VMDK File</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339587#M125208</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To resolve this issue, you must locate the virtual machine that has this .vmdk mounted and then unmount it. To do so Search for references to the .vmdk file in the settings files (.vmx files) of the other virtual machine's on the datastore. You can automate the search with a command like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; find /vmfs/volumes/* -name *.vmx -exec grep -Hi &amp;lt;name-of-the-file.vmdk&amp;gt; {} \;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; where &amp;lt;name-of-the-file.vmdk&amp;gt; is the .vmdk you're trying to delete.&lt;/P&gt;&lt;P&gt; After you have located the virtual machine which has mounted the .vmdk, remove it. Select that virtual machine and go to Edit Settings &amp;gt; Hard Disk &amp;gt; Remove. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 11:36:12 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339587#M125208</guid>
      <dc:creator>sakthivelramali</dc:creator>
      <dc:date>2015-08-27T11:36:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Delete VMDK File</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339588#M125209</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;As far as i know there is no way to see what is locking up your files.&lt;/P&gt;&lt;P&gt;We had a simillar issue. Our solutions was to restart every host in our cluster once at a time. After the 7 host out of 9 we were able to delete the files...&amp;nbsp; &lt;/P&gt;&lt;P&gt;This can be done without down time...&amp;nbsp; Try it out.&lt;BR /&gt; &lt;BR /&gt;Use vmware-cmd tool from service console&lt;/P&gt;&lt;P&gt;for example &lt;/P&gt;&lt;P&gt;vmware-cmd /vmfs/volumes/......../vmname/vmname.vmx getstate - current state of your virtual machine&lt;/P&gt;&lt;P&gt;vmware-cmd /vmfs/volumes/......../vmname/vmname.vmx stop(reset) - stop or reset vm&lt;/P&gt;&lt;P&gt;than try to remove files.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 11:38:06 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339588#M125209</guid>
      <dc:creator>akblpatel</dc:creator>
      <dc:date>2015-08-27T11:38:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Delete VMDK File</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339589#M125210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;do you have a backup solution like VDP or Veeam that mounts the vmdks to backup the systems?&lt;/P&gt;&lt;P&gt;if yes, check your proxy vms and look if they have the vmdk mounted...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 11:47:54 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339589#M125210</guid>
      <dc:creator>brunofernandez1</dc:creator>
      <dc:date>2015-08-27T11:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Delete VMDK File</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339590#M125211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IMO the "Bad address" error could be caused by a file system (VMFS) issue. In this case I'd recommend you open a support call with VMware to reslove the issue, rather than risking further issue with other VMs on the same datastore.&lt;/P&gt;&lt;P&gt;Maybe one of the commands in &lt;A href="http://kb.vmware.com/kb/2019003" title="http://kb.vmware.com/kb/2019003"&gt;http://kb.vmware.com/kb/2019003&lt;/A&gt; will help determine what's wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;André&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 11:54:52 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339590#M125211</guid>
      <dc:creator>a_p_</dc:creator>
      <dc:date>2015-08-27T11:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Delete VMDK File</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339591#M125212</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sometimes such undeletable vmdks can be renamed. &lt;BR /&gt;Sometimes deleting the renamed vmdk then magically is possible after a short while.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Make sure that the vmdk-name does not appear in /dev/deltadisks&lt;BR /&gt;I also grep the vmware.log of backup-appliances for the vmdk-name - sometimes those appliances still have vmdks mounted that should be no longer in use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2015 17:49:23 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339591#M125212</guid>
      <dc:creator>continuum</dc:creator>
      <dc:date>2015-08-27T17:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Delete VMDK File</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339592#M125213</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the replies, and sorry for the delay in updating this thread. I have finally had the chance to go through and reboot every ESXi host which has access to that datastore. However, I am still unable to delete the VMDK file. I have renamed the VMDK file and moved it to a different folder, but was still unable to delete it after this. The VMDK is about 1.5TB in size (which is why I am keen to get rid of it). It was only in place temporarily for testing and was never backed up.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Oct 2015 10:14:20 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339592#M125213</guid>
      <dc:creator>airfrog7</dc:creator>
      <dc:date>2015-10-02T10:14:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Delete VMDK File</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339593#M125214</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check the link : &lt;A href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1039362" title="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1039362"&gt;http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1039362&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 19:39:06 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339593#M125214</guid>
      <dc:creator>mohdhanifk</dc:creator>
      <dc:date>2015-10-08T19:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Delete VMDK File</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339594#M125215</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See also&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.mylesgray.com/infrastructure/safely-checkremove-orphaned-vmdk-files-from-esxi/" title="http://www.mylesgray.com/infrastructure/safely-checkremove-orphaned-vmdk-files-from-esxi/"&gt;Safely check/remove orphaned VMDK files from ESXi - Blah, Cloud.&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 19:40:15 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339594#M125215</guid>
      <dc:creator>mohdhanifk</dc:creator>
      <dc:date>2015-10-08T19:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Delete VMDK File</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339595#M125216</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://www.vmdude.fr/en/how-to-en/locked-orphans-vmdk-files/" title="http://www.vmdude.fr/en/how-to-en/locked-orphans-vmdk-files/"&gt;http://www.vmdude.fr/en/how-to-en/locked-orphans-vmdk-files/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Oct 2015 19:40:55 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339595#M125216</guid>
      <dc:creator>mohdhanifk</dc:creator>
      <dc:date>2015-10-08T19:40:55Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Delete VMDK File</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339596#M125217</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may help the below KB&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1039362"&gt;http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;amp;cmd=displayKC&amp;amp;externalId=1039362&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Oct 2015 11:02:49 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339596#M125217</guid>
      <dc:creator>Sreekanth45</dc:creator>
      <dc:date>2015-10-09T11:02:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Delete VMDK File</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339597#M125218</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found a simple workaround, rename the .vmdk to some other extension, say .vmx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then delete the files. Worked in my case.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Jan 2019 17:28:31 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339597#M125218</guid>
      <dc:creator>Parveen1988</dc:creator>
      <dc:date>2019-01-18T17:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Delete VMDK File</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339598#M125219</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If renaming helps that is indeed a good tip.&lt;BR /&gt;But unfortunately the "Bad address" error can be caused by very different cases. There is no single workaround that helps in all cases.&lt;BR /&gt;- delete from other host in the cluster&lt;BR /&gt;- try to release a lock&lt;BR /&gt;- rename it&lt;BR /&gt;- patch heartbeat section&lt;BR /&gt;- sometimes even resizeing it to a single MB can do the trick&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 Jan 2019 03:34:49 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/1339598#M125219</guid>
      <dc:creator>continuum</dc:creator>
      <dc:date>2019-01-24T03:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Delete VMDK File</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/2891937#M280105</link>
      <description>&lt;P&gt;&lt;a href="https://communities.vmware.com/t5/user/viewprofilepage/user-id/2443"&gt;@continuum&lt;/a&gt;&amp;nbsp;This solutions works:&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Thu, 03 Feb 2022 19:47:54 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/2891937#M280105</guid>
      <dc:creator>beegandhi</dc:creator>
      <dc:date>2022-02-03T19:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Delete VMDK File</title>
      <link>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/2914209#M282224</link>
      <description>&lt;P&gt;Did not work et al. I am having the issue with other VM file types.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jun 2022 06:08:29 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/ESXi-Discussions/Unable-to-Delete-VMDK-File/m-p/2914209#M282224</guid>
      <dc:creator>sushobhan</dc:creator>
      <dc:date>2022-06-15T06:08:29Z</dc:date>
    </item>
  </channel>
</rss>

