- Make sure you have sufficient disk space to hold the oplog ( can be several GB )
- Edit
/etc/mongodb.confto addreplSet = rs0 - Restart mongodb
- In the mongo REPL execute
rs.initiate()( this can take some time; log shows activity ) - Try executing a query, your REPL prompt should now be
rs0:PRIMARY>
MongoDB documentation: http://docs.mongodb.org/manual/tutorial/convert-standalone-to-replica-set/