root@213818a3f167:/# curl -X POST localhost:27182/api/v1/start --data '
{
"source": "cluster1",
"destination": "cluster0",
"reversible": true,
"enableUserWriteBlocking": false
}'
{"success":false,"error":"InvalidStateTransition","errorDescription":"Invalid state transition, expected Current State IDLE, current State: PAUSED, target State: RUNNING"}root@213818a3f167:/#
root@213818a3f167:/#
i get this messgae.
i want to sync between
DC-DR which i did using souce-cluster 0 and cluster 1 as dest
but if i do the opposite i am not able to do sam eit throws error
and i am trying to stop the prev sync before proceeding.
now i aam getting
docker exec -it mongosync bash
root@ebfd335a950f:/# curl localhost:27182/api/v1/progress -XGET
^X^Z
[1]+ Stopped curl localhost:27182/api/v1/progress -XGET
root@ebfd335a950f:/# curl localhost:27182/api/v1/commit --data '{ }'
{"success":false,"error":"RequestInProgress","errorDescription":"Another request is currently in progress"}root@ebfd335a950f:/#
this happes when my dc is down
i should be able to wrte to dr somwhow which i am not able to do
update,
to enable write in DR,while my dc is down
db.adminCommand(
{
setUserWriteBlockMode: 1,
global: false
}
)
i did the baove command
but when my dc is up again,
how to get the data which i wrote in dr to dc.
can anyone please explain?