- The unmount operation on a datastore fails if Virtual Machines or Templates remain registered in the vCenter Server inventory while residing on the datastore.
- Below are other reasons that can prevent unmounting an ESXi datastore:
-
- Storage I/O Control (SIOC):
If the SIOC service is enabled on the datastore, the host maintains an active management stream that blocks the unmount.
- Swap File Configurations:
The process is prevented if the "Swapping to host cache" or "Host-local swap" options are active and the datastore is currently storing virtual machine swap files.
- Diagnostic Coredumps:
An active configuration that directs ESXi coredumps to a file on the datastore (rather than a coredump partition) creates a persistent file handle.
- System Logs and Traces:
The host cannot unmount the storage if syslog services or trace files are configured to be stored on that specific datastore.
- vSphere Cluster Services (vCLS):
The existence of vCLS agent VMs on the datastore will prevent a successful unmount, as these are required for cluster health.
- Active File Handles:
Any active I/O, such as an open console session, a running backup, or a mounting ISO file, will result in an "In Use" error.
Note: The error message "Cannot unmount volume <Datastore> because <Reason>" may vary based on the different causes listed above.