Example:
Examples:
/var/log/vmkernel.log of one or more of the ESXi Host(s) is reporting that the Volume is open:
YYYY-MM-DDTHH:MM:SS.ZZ Wa(180) vmkwarning: cpu18:#### opID=1111)WARNING: VC: 2445: unmounting opened volume ('####') with ref 4 is not allowed.YYYY-MM-DDTHH:MM:SS.ZZ In(182) vmkernel: cpu18:#### opID=1111)FSS: 9868: File clusterAgent.stderr, fhID: 70231, is opened by world: 45645 - clusterAgentYYYY-MM-DDTHH:MM:SS.ZZ In(182) vmkernel: cpu18:#### opID=1111)VC: 2716: Unmount volume #### 0 0 0 0 0 : BusyYYYY-MM-DDTHH:MM:SS.ZZ cpu23:#### opID=7777)WARNING: VC: 2366: unmounting opened volume ('####' 'DatastoreName') with ref 80 is not allowed.
YYYY-MM-DDTHH:MM:SS.ZZ cpu23:#### opID=7777)FSS: 10072: File syslog.log, fhID: ##, is opened by world: 123123123 - vmsyslogd
YYYY-MM-DDTHH:MM:SS.ZZ cpu23:#### opID=7777)FSS: 10072: File vmkwarning.log, fhID: ##, is opened by world: 123123123 - vmsyslogd
YYYY-MM-DDTHH:MM:SS.ZZ cpu23:#### opID=7777)FSS: 10072: File vobd.log, fhID: ##, is opened by world: 123123123 - vmsyslogd
YYYY-MM-DDTHH:MM:SS.ZZ cpu23:#### opID=7777)FSS: 10072: File vmkernel.log, fhID: ##, is opened by world: 123123123 - vmsyslogd
YYYY-MM-DDTHH:MM:SS.ZZ cpu23:#### opID=7777)FSS: 10072: File vpxa.log, fhID: ##, is opened by world: 123123123 - vmsyslogd
YYYY-MM-DDTHH:MM:SS.ZZ cpu23:#### opID=7777)FSS: 10072: File hostd.log, fhID: ##, is opened by world: 123123123 - vmsyslogd
YYYY-MM-DDTHH:MM:SS.ZZ cpu23:#### opID=7777)VC: 2636: Unmount volume #### 0 0 0 0 0 : Busy
The issue occurs if the Datastore being deleted is being actively used/referenced by the VMware ESXi Host. This could be caused by some items like:
This issue occurs if the Datastore is hosting an ISO that is mapped to a virtual machine on a VMware ESXi host on which this Datastore is mounted.
Even if ISO file is deleted from the Datastore, the ISO link to the virtual machine is not broken. If datastore is being tried to delete there are errors 'Device or Resource Busy' seen.
To determine if this is the cause:
To unmap the ISO:
4.Click OK
For more information, see Virtual Machine displays two datastores in Summary tab despite all its files being located on one datastore (2105343).
The VM templates can be moved to another Datastore by converting the template to a VM, then migrating to different Datastore and then converting it back to a VM template.
Or, if the VM template is not required anymore:
This issue occurs when a Virtual Machine resided on the Datastore that is attempting to be removed which had a Snapshot taken, and then was migrated off of the Datastore.
Determine if any Virtual Machines that have previously resided, or had disks reside on, this Datastore are currently running on snapshots.
The datastore cannot be unmounted because the one or more of the ESXi Hosts connected to it, have it configured as location for their ESXi logs
Unmount the ESXi host, select NFS Datastore -> right click -> select "unmount Datastore" -> select check box to check ESXi hosts -> click Unmount
Example:
--> Close the Session to terminate the associated process on the Host
1. Open SSH to the ESXi host and login using the root user
2. Identify the Datastore UUID by running
esxcli storage vmfs extent list
3. Search for a lock by running
lsof | grep DATASTOREUUID
4. If a process is identified, stop the process using /etc/init.d/<proccess> stop, or use the kill command to stop the process via the PID.
Summarized: Before removing a Datastore, ensure that:
esxcli storage filesystem listMount Point Volume Name UUID Mounted Type Size Free---------------------------------------------------- ------------------------------------------ -------------------------------------- ------- ------ ------------ ------------/vmfs/volumes/69b284af-2fee185e-88af-############ OSDATA-69b284af-2fee185e-88af-############ 69b284af-2fee185e-88af-############ true VMFSOS 8321499136 5065670656/vmfs/volumes/22cc9b08-41455a35-ff84-############ BOOTBANK1 22cc9b08-41455a35-ff84-############ true vfat 4293591040 4023123968/vmfs/volumes/c08d8530-ae4224b8-9e80-############ BOOTBANK2 c08d8530-ae4224b8-9e80-############ true vfat 4293591040 4293394432/vmfs/volumes/vsan:52cf8df2d45141d7-############ vsanDatastore vsan:52cf8df2d45141d7-############ true vsan 643376873472 521881020570
vmkvsitools lsof|grep <datastore uuid>
For additional information on removing Datastores see: