[SERVER-4072] Remove master slave dependency Created: 14/Oct/11  Updated: 29/Feb/12  Resolved: 15/Oct/11

Status: Closed
Project: Core Server
Component/s: Admin
Affects Version/s: 1.8.3
Fix Version/s: None

Type: Question Priority: Minor - P4
Reporter: Leonid Mikityanskiy Assignee: Unassigned
Resolution: Done Votes: 0
Labels: replication
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Linux 2.6.18-238.12.1.el5


Participants:

 Description   

I have two mongodb databases installed on different servers.
One is master another is slave.
I need to remove master / slave dependency (if it possible without bouncing databases).
Thanks.
Leonid M.



 Comments   
Comment by Eliot Horowitz (Inactive) [ 17/Oct/11 ]

Yes

Comment by Leonid Mikityanskiy [ 17/Oct/11 ]

Hi Eliot.
On slave I commented out replSet parameter. And restarted database.
All looks OK.
But original master now shows en error.
Should I do same for it too?
~~~
[mongod@SD2QVQ10VL ~]$ mongo
MongoDB shell version: 1.8.3
connecting to: test
rs1:PRIMARY>
Mon Oct 17 09:21:36 MessagingPort recv() errno:104 Connection reset by peer 127.0.0.1:27017
Mon Oct 17 09:21:36 SocketException: remote: error: 9001 socket exception [1]
Mon Oct 17 09:21:36 DBClientCursor::init call() failed
>
Mon Oct 17 09:21:37 trying reconnect to 127.0.0.1
Mon Oct 17 09:21:37 reconnect 127.0.0.1 ok
rs1:SECONDARY>
rs1:SECONDARY>
rs1:SECONDARY>
rs1:SECONDARY> db.unicorns.find(

{name: 'Dunx'}

);
error:

{ "$err" : "not master and slaveok=false", "code" : 13435 }

rs1:SECONDARY>
~~~
Thanks.
Leonid M.

Comment by Eliot Horowitz (Inactive) [ 15/Oct/11 ]

You mean you want to end up with 2 masters?
To do that you would have to shutdown the slave, and restart it with --master.

Generated at Thu Feb 08 03:04:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.