SRM Planned Migration fails with the error - Cannot unmount datastore from host
book
Article ID: 312738
calendar_today
Updated On:
Products
VMware Live Recovery
Issue/Introduction
Symptoms:
In VMware vCenter Site Recovery Manager 8.x, you experience the following symptoms:
A recovery job during a planned migration never completes.
You have to check the Recovery report to see the actual errors.
You see an error message similar to:
Cannot unmount datastore from host . The resource is in use
In the Site Manager Logs on the Data Recovery site, you see messages similar to:
hostName = ">", --> host = 'vim.HostSystem:host-56', --> datastoreName = ">", --> datastore = 'vim.Datastore:datastore-67', --> msg = "Cannot unmount datastore '>' from host '>'. The resource '>' is in use.", --> key = "com.vmware.vim.datastore.error.unmountVmfsVolumeFailed", --> arg = (vmodl.KeyAnyValue) [ --> (vmodl.KeyAnyValue) { --> dynamicType = , --> key = "name", --> value = ">", --> }, --> (vmodl.KeyAnyValue) { --> dynamicType = , --> key = "reason", --> value = "storageIORMEnabled", --> } --> ], --> message = , --> } --> ], --> type = , --> name = ">", --> msg = "The resource '>' is in use." --> }, --> hostName = ">", --> host = 'vim.HostSystem:host-59', --> datastoreName = ">", --> datastore = 'vim.Datastore:datastore-67', --> msg = "Cannot unmount datastore '>' from host '>'. The resource '>' is in use.", --> } --> ], --> msg = "Cannot unmount datastore '>' from host '>'. The resource '>' is in use. Cannot unmount datastore '>' from host '>'. The resource '>' is in use. Cannot unmount datastore '>' from host '>'. The resource '>' is in use. Cannot unmount datastore '>' from host '>'. The resource '>' is in use. Cannot unmount datastore '>' from host '>'. The resource '>' is in use. Cannot unmount datastore '>' from host '>'. The resource '>' is in use.", --> }
Environment
VMware Site Recovery Manager 8.x
Cause
This issue occurs when SRM cleans the production site for the failover in a Planned Migration.
Site Recovery Manager 8.x unregisters the virtual machines in the production site and unmounts the VMFS volume.
The datastore cannot be unmounted because SIOC is enabled.
The datastore cannot be unmounted because unprotected VMs exist on datastore.
Note: When you have Storage DRS enabled, Storage IO Control, virtual machines, or templates registered on the VMFS volume, vCenter is not able to unmount the VMFS volume, resulting in an error.
Resolution
To resolve this issue, you must manually unmount the VMFS volume. You must verify the following conditions before you can successfully unmount the datastore:
No virtual machines or templates reside on the datastore.
The datastore is not a part of a Datastore Cluster.
The datastore is not managed by Storage DRS.
Storage I/O Control is disabled for this datastore.
The datastore is not used for vSphere HA Heartbeat.
To remove the datastore:
vMotion the unprotected virtual machines to another datastore.