14 Replies Latest reply on Oct 11, 2018 12:18 AM by ascheltens22

    Can't delete files or directories on a datastore

    ascheltens22 Novice

      Hi,

       

      I've tried to move VM's from a datastore to another.

      It worked fine.

       

      But some VM left some files and directories behind.

      For example, I've found a vmxf file not modified since 2 years, and it can't be deleted.

       

      With command vkmfstools -D I have this result :

       

      vmkfstools -D /vmfs/volumes

      /559bd310-c01ae484-6591-a0369f6fcdc8/NAGIOS/NAGIOS2.vmxf

      Lock [type 10c00001 offset 57563136 v 945, hb offset 3723264

      gen 627, mode 0, owner 00000000-00000000-0000-000000000000 mtime 873810

      num 0 gblnum 0 gblgen 0 gblbrk 0]

      Addr <4, 99, 19>, gen 53, links 1, type reg, flags 0, uid 0, gid 0, mode 600

      len 3232, nb 1 tbz 0, cow 0, newSinceEpoch 1, zla 2, bs 8192

       

      It's in mode 0 so not locked, and I also can't find any MAC.

       

      the rm command :

       

      rm NAGIOS2.vmxf

      rm: can't remove 'NAGIOS2.vmxf': No such file or directory

       

      I've got another symptom an a directory that apperas empty and that I can't remove :

       

      rmdir logs2

      rmdir: 'logs2': Directory not empty

      ls logs2

      ls: logs2/rhttpproxy.0.gz: No such file or directory

       

      Has someone a solution ?

       

      Regards.