rs.initiate( { "_id":"rep-set1", "members":[ { "_id":0, "host":"primary1:27017" }, { "_id":1, "host":"secondary1_1:27017" }, { "_id":2, "host":"secondary1_2:27017" } ] } );