Error "The operation is not allowed in the current state of datastore" while performing a planned migration
search cancel

Error "The operation is not allowed in the current state of datastore" while performing a planned migration

book

Article ID: 385459

calendar_today

Updated On:

Products

VMware Live Recovery

Issue/Introduction

  • The below error appears while performing a planned migration
  • The failure happens when trying to unregister protected VMs in the source site

 

 

  • vmware-dr.log has the below entry:

2024-12-27T14:18:16.928Z error vmware-dr[01523] [SRM@6876 sub=RemoteTask.task-1006750 opID=31115a48-1f51-43c0-a9c2-038b128b1c0f-failover:17a8:6ea6:30e4-deactivate:d68a tid=task-1006750.FolderCreateVm] The remote task 'vim.Task:4e3c1882-84ec-47c2-b1ab-e45cc17e667c:task-1006750' failed:

--> (vim.fault.InvalidDatastoreState) {

--> faultCause = (vmodl.MethodFault) null,

--> faultMessage = <unset>,

--> datastoreName = "Datastore1"

--> msg = "The operation is not allowed in the current state of the datastore."

--> }

Environment

  • VMware Live Site Recovery 9.x
  • VMware Site Recovery Manager 8.x

Cause

The issue occurs when the source datastore is in maintenance mode

 

Resolution

Exit the affected datastore from maintenance mode.