[SERVER-3876] Adding SECONDARY server to replica set Created: 15/Sep/11 Updated: 11/Jul/16 Resolved: 15/Sep/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 1.8.3 |
| Fix Version/s: | None |
| Type: | Question | Priority: | Minor - P4 |
| Reporter: | Leonid Mikityanskiy | Assignee: | Kristina Chodorow (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Linux 2.6.18-238.12.1.el5 #1 SMP Sat May 7 20:18:50 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux |
||
| Backwards Compatibility: | Fully Compatible |
| Participants: |
| Description |
|
I am setting up replica set. ); ); { "_id" : ObjectId("4e723bcffa1ff8e3080494cf"), "name" : "Horny", "dob" : ISODate("1992-03-13T12:47:00Z"), "loves" : [ "carrot", "papaya" ], "weight" : 600, "gender" : "m", "vampires" : 63 }rs2:PRIMARY> , What is wrong in my setup? |
| Comments |
| Comment by Kristina Chodorow (Inactive) [ 15/Sep/11 ] |
|
Cool, you're welcome. |
| Comment by Leonid Mikityanskiy [ 15/Sep/11 ] |
|
Now it is OK. I ran rs.add('SD2QVQ02VL') on primary |
| Comment by Kristina Chodorow (Inactive) [ 15/Sep/11 ] |
|
What server is the shell connected to? You have to be connected to the replica set primary to run rs.add. |
| Comment by Leonid Mikityanskiy [ 15/Sep/11 ] |
|
I did it and Thu Sep 15 15:22:47 uncaught exception: assert failed : no config object retrievable from local.system.replset |
| Comment by Kristina Chodorow (Inactive) [ 15/Sep/11 ] |
|
You need to run rs.add("SD2QVQ01VL:27017");, not rs2. "rs" is a shell global with a bunch of replica set helper functions. "rs2" doesn't exist in the shell. |