rs.initiate( { "_id":"rep-set2", "members":[ { "_id":0, "host":"primary2:27017" }, { "_id":1, "host":"secondary2_1:27017" }, { "_id":2, "host":"secondary2_2:27017" } ] } );