Symptoms
-After deleting a VM from disk, the VM folder remains and is not deleted as should be.
-Trying to remove the VM folder reports an error:
/usr/lib/vmware/osfs/bin/osfs-rmdir DR-Apps-2
Deleting directory 64ca255d-86c0-e871-6492-e4434b2dada0 in container id 52ecc171a3679e2938b116392ba56640 backed by vsan (force=False)
Failed. Search vmkernel log and osfsd log for opID 'osfsIpc-1578468929.8393154'.
Resolution
Get the VM folder UUID:
/vmfs/volumes/vsan:52ecc171a3679e29-38b116392ba56640 ls -la
lrwxr-xr-x 1 root root 36 Jan 9 07:06 DR-Apps-2 -> 64ca255d-86c0-e871-6492-e4434b2dada0
Remove the folder with UUID using the below command:
/usr/lib/vmware/osfs/bin/objtool delete -u 64ca255d-86c0-e871-6492-e4434b2dada0 -f
Pivotal Ready Architecture, VxRail 460 and 470 Nodes, VxRail Appliance Family, VxRail G Series Nodes, VxRail E Series Nodes, VxRail Gen2 Hardware, VxRail P Series Nodes, VxRail S Series Nodes, VxRail Software, VxRail V Series Nodes