[root@server01:~] cd /vmfs/volumes/Datastore-Name/
[root@server01:/vmfs/volumes/########-########
[root@server01:/vmfs/volumes/########-########Volume 'Datastore-Name' cannot be unmounted. Reason: Busy
The resource 'Datastore Name: VMFS uuid:' is in use. Cannot unmount volume 'Datastore Name: VMFS uuid: ' because "file system is busy". Correct the problem and retry the operation.
ESXi 7.0.x
ESXi 8.0.x
ESXi 9.0.x
This error indicates that the datastore cannot be unmounted because there are currently active processes or operations utilizing it.
Common reasons include:
1. Virtual Machines are accessing the datastore – A VM might be running or have a virtual disk located on the datastore.
2. Active file system locks – Processes like file management or backup tools could be accessing files on the datastore.
3. Storage-related operations – Operations like storage vMotion, snapshot creation, or other storage maintenance tasks could be preventing the unmount operation.
1. Identify active VMs on the datastore:
Use the `esxcli` command to list VMs using the datastore:
#esxcli vm process list
This will show any running VMs that may have their virtual disks on the datastore.
If you find any VMs using the datastore, power them off or migrate them to a different ESXi or different datastore.
2. Check for active files or open files.
You can use the following command on the specific host where the datastore is mounted to check if there are open files on the datastore UUID #lsof | grep /vmfs/volumes/########-########
This will list processes that have files open on the datastore.
If any World name like "sh" related processes are listed, you will need to identify and terminate them.
As the Symptoms description, the datastore unmount failed due to root user locked "/vmfs/volumes/########-########" directory,
and this issue can be resolved by changing the shell working directory from VMFS root volume to other location:
[root@server01:/vmfs/volumes/########-########] cd /
[root@server01:~] esxcli storage filesystem unmount --volume-label=Datastore-Name
3. Check for ongoing storage operations:
Check for any ongoing storage-related operations, such as storage vMotion or backup tasks, which could prevent unmounting. These operations can be monitored in the vSphere Client.
[root@esxi:~] esxcli storage core device world list -d naa.###############################Device World ID Open Count World Name------------------------------------ -------- ---------- ------------naa.############################### 65575 1 idle0naa.############################### 67003 1 sdrsInjectornaa.############################### 67080 1 storageRM /etc/init.d/hostd restart (replace agent accordingly)
If the issue persists after attempting the troubleshooting steps above, please Contact Broadcom Support for further assistance.