Hi, i have removed my FreeNAS NFS Datastore that has been used by two VMs for testing. when removing the disk from the VM's i forgot to tick remove from volume as well. when i tried to remove it i get an error that its been use by other VM. i have spend all day yesterday went through many threads and tried but with no successes. the NFS volume does not exist, mounted or accessible. as far as i can see both VMs does not using it but the error show one is using it, but it might one process still running somewhere. i also check any traces for snapshot but non exist. the only place i can see it is on the UI, and when i run esxcli list and lsof, see below. please let me know if you need more information, appreciate your help in advance
Remove Datastore
Key - haTask-ha-host-vim.host.DatastoreSystem.removeDatastore-3400361159
Description - Removes a datastore from a host
State - Failed - The resource 'ISO' is in use.
Errors - Cannot remove datastore 'ISO' because One or more virtual machines are still registered on it. Correct the problem and retry the operation
[root@esxi:/vmfs/volumes/5baed389-20b43070-cce9-0cc47adb3218] esxcli storage nfs list
Volume Name Host Share Accessible Mounted Read-Only isPE Hardware Acceleration
----------- ----------- ---------------- ---------- ------- --------- ----- ---------------------
ISO 192.168.1.6 /mnt/Tank/vm_nfs false false false false Unknown
[root@esxi:/vmfs/volumes/5d6a70dc-09c68958-b646-0cc47adb3218] lsof | grep '/vmfs/volumes/'
2101928 grep cwd -1 /vmfs/volumes/5d6a70dc-09c68958-b646-0cc47adb3218
2101927 lsof cwd -1 /vmfs/volumes/5d6a70dc-09c68958-b646-0cc47adb3218
2101828 vmx cwd -1 /vmfs/volumes/5baed389-20b43070-cce9-0cc47adb3218/Windows 10 Pro
2101828 vmx FILE 44 /vmfs/volumes/5baed389-20b43070-cce9-0cc47adb3218/Windows 10 Pro/Windows 10 Pro.vmx.lck
2101828 vmx FILE 45 /vmfs/volumes/5baed389-20b43070-cce9-0cc47adb3218/Windows 10 Pro/Windows 10 Pro.vmx
2101828 vmx FILE 46 /vmfs/volumes/5baed389-20b43070-cce9-0cc47adb3218/Windows 10 Pro/Windows 10 Pro.vmx~
2101828 vmx FILE 47 /vmfs/volumes/5baed389-20b43070-cce9-0cc47adb3218/Windows 10 Pro/vmware.log
2101828 vmx FILE 86 /vmfs/volumes/5baed389-20b43070-cce9-0cc47adb3218/Windows 10 Pro/Windows 10 Pro-flat.vmdk
2101495 vmx cwd -1 /vmfs/volumes/5baac5a9-8baef0ac-5482-0cc47adb3218/FreeNAS
2101495 vmx FILE 44 /vmfs/volumes/5baac5a9-8baef0ac-5482-0cc47adb3218/FreeNAS/FreeNAS.vmx.lck
2101495 vmx FILE 45 /vmfs/volumes/5baac5a9-8baef0ac-5482-0cc47adb3218/FreeNAS/FreeNAS.vmx
2101495 vmx FILE 46 /vmfs/volumes/5baac5a9-8baef0ac-5482-0cc47adb3218/FreeNAS/FreeNAS.vmx~
2101495 vmx FILE 47 /vmfs/volumes/5baac5a9-8baef0ac-5482-0cc47adb3218/FreeNAS/vmware.log
2101495 vmx FILE 89 /vmfs/volumes/5baac5a9-8baef0ac-5482-0cc47adb3218/FreeNAS/FreeNAS-flat.vmdk
2100547 sh cwd -1 /vmfs/volumes/5d6a70dc-09c68958-b646-0cc47adb3218
[root@esxi:/vmfs/volumes/5d6a70dc-09c68958-b646-0cc47adb3218] cd /vmfs/volumes/5d6a70dc-09c68958-b646-0cc47adb3218
[root@esxi:/dev] esxcli storage filesystem list
Mount Point Volume Name UUID Mounted Type Size Free
------------------------------------------------- ---------------------- ----------------------------------- ------- ------ ------------ ------------
/vmfs/volumes/feca1b58-957a03cb ISO feca1b58-957a03cb false NFS 0 0
/vmfs/volumes/5d20b300-8537edc8-5177-0cc47adb3218 Ubuntu SRV 18.04.2 LTS 5d20b300-8537edc8-5177-0cc47adb3218 true VMFS-6 249913409536 213852880896
/vmfs/volumes/5baf3e17-b078b9a8-3a6a-0cc47adb3218 HighSierra 5baf3e17-b078b9a8-3a6a-0cc47adb3218 true VMFS-6 255818989568 125448486912
/vmfs/volumes/5baed389-20b43070-cce9-0cc47adb3218 Windows 10 Pro 5baed389-20b43070-cce9-0cc47adb3218 true VMFS-6 255818989568 116735868928
/vmfs/volumes/5bd3ce84-d8240157-9b0d-0cc47adb3218 KaliLinux 5bd3ce84-d8240157-9b0d-0cc47adb3218 true VMFS-6 249913409536 170774233088
/vmfs/volumes/5baac5a9-8baef0ac-5482-0cc47adb3218 datastore1 5baac5a9-8baef0ac-5482-0cc47adb3218 true VMFS-6 241860345856 212335591424
/vmfs/volumes/36229974-759b66bb-b613-311896193f40 36229974-759b66bb-b613-311896193f40 true vfat 261853184 107290624
/vmfs/volumes/d6239b77-b7620209-80e9-c5aeb35810bc d6239b77-b7620209-80e9-c5aeb35810bc true vfat 261853184 107270144
/vmfs/volumes/5baac5a9-a5e59258-eb6a-0cc47adb3218 5baac5a9-a5e59258-eb6a-0cc47adb3218 true vfat 4293591040 4255055872
/vmfs/volumes/5baac59f-ec5153f8-f61b-0cc47adb3218 5baac59f-ec5153f8-f61b-0cc47adb3218 true vfat 299712512 115032064