The resource 'Datastore Name: <datastoreName> uuid: <VMFS_UUID>' is in use. Cannot unmount volume 'Datastore Name: <datastoreName> VMFS uuid: <VMFS_UUID>' because 'file system is busy'. Correct the problem and retry the operation.VMware vSphere ESXi (all versions)
In a rare instance, where a VM storage is migrated from the datastore to be unmounted, and the VM continues to run on the same host, the VM world remains associated with the datastore's backing LUN:
Verification:
On the LUN backing the datastore, where the VM currently runs:
esxcli storage core device world list -d naa.#############################
Device World ID Open Count World Name
--------- ----------- ---------------- -----------------
...
naa.############################# 521994 1 vmm0:<VmName>
...
On the LUN backing the datastore to be unmounted, the same VM world ID remains referenced:
esxcli storage core device world list -d naa.#############################
Device World ID Open Count World Name
--------- ----------- ---------------- -----------------
...
naa.############################# 521994 1 vmm0:<VmName>
...
(The world ID is an example and will differ for any given VM.)
The VM is confirmed to be running from the new datastore:
esxcli vm process list
...
<VmName>
World ID: 521994
Process ID: 0
VMX Cartel ID: 521977
UUID: ## ## ## ## ## ## ## ##-## ## ## ## ## ## ## ##
Display Name:<VmName>
Config File: /vmfs/volumes/<VMFS UUID>/<VmName>/<VmName>.vmx
There are several possible reasons why a datastore may report "in use/fileystem is busy" when unmount is attempted. For a list of possible causes see: