Dell EMC VxRail: After deleting VM from disk, there are VM folders remaining in the data store which could not be deleted manually


   Article Number:     540419                                   Article Version: 2     Article Type:    Break Fix 




VxRail Appliance Family,Pivotal Ready Architecture,VxRail 460 and 470 Nodes,VxRail Analytical Consulting Engine (ACE),VxRail E Series Nodes,VxRail G Series Nodes,VxRail Gen 5,VxRail Gen2 Hardware,VxRail P Series Nodes,VxRail S Series Nodes





-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'.






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