Initiate replica set Lab

I am trying to run the first mongo instance on port 27001 with the “m103-repl” as replica set name. But when I connect to the mongo shell, it shows as below:

MongoDB Enterprise m103-example:OTHER>

Can anyone please help?

Yes it will show OTHER for a brief period
It would have changed to primary after you issued rs.initiate()

1 Like