VMware vSphere

 View Only
  • 1.  unable to remove a not empty(?) floder

    Posted Oct 25, 2020 02:30 AM

    Hi,

    There is a folder where the virtual machine was once saved and removed. But I can't remove the floder.

    [root@localhost:/vmfs/volumes/5e1fba9a-aabb012c-6d27-0cc47a1e5e22] rm -rf lede100

    rm: can't remove 'lede100': Directory not empty

    [root@localhost:/vmfs/volumes/5e1fba9a-aabb012c-6d27-0cc47a1e5e22] cd lede100

    [root@localhost:/vmfs/volumes/5e1fba9a-aabb012c-6d27-0cc47a1e5e22/lede100] ls -lahs

    ls: ./vmx-lede100-fcf15d3f42332c025a8c2f59239d8827ea401754-2.vswp: No such file or directory

    total 1152

       128 drwxr-xr-x    1 root     root       76.0K Mar 30  2020 .

      1024 drwsrwsrwt    1 root     root      112.0K Oct 25 07:16 ..

    [root@localhost:/vmfs/volumes/5e1fba9a-aabb012c-6d27-0cc47a1e5e22/lede100] rm *.*

    rm: can't remove 'vmx-lede100-fcf15d3f42332c025a8c2f59239d8827ea401754-2.vswp': No such file or directory

    How can I remove these floders?



  • 2.  RE: unable to remove a not empty(?) floder

    Posted Oct 25, 2020 07:19 AM

    Hey pikuer​,

    What error do you get if you try to delete the folder from the Datastore Browser inside the HTML5 client?



  • 3.  RE: unable to remove a not empty(?) floder

    Posted Oct 25, 2020 09:05 AM
    Delete Datastore File

    Key

    haTask--vim.FileManager.deleteFile-1479902626

    Description

    Delete the source file or folder from the datastore

    State

    Failed - Error caused by file /vmfs/volumes/5e1fba9a-aabb012c-6d27-0cc47a1e5e22/lede100

    Errors



  • 4.  RE: unable to remove a not empty(?) floder

    Posted Oct 25, 2020 08:57 PM

    Hey, hope you are doing fine:

    Can you please check if the folder is empty?

    Run this and share the output:

    [root@localhost:/vmfs/volumes/5e1fba9a-aabb012c-6d27-0cc47a1e5e22] ls -al



  • 5.  RE: unable to remove a not empty(?) floder

    Broadcom Employee
    Posted Oct 26, 2020 05:51 AM

    Hi

    Please check if any of the processes is holding a lock on this folder:

    lsof | grep foldername

    ps aux | grep -i foldername