I configured a 3 node replica set and uninstalled mongo when my virtual memory limit exceeded then as i was starting my mongo replication I couldn't get these commands to work.
rs.initiate()
rs.reconfig()//with config params
My previous replica set has primary(27017)
,secondary(27018,27019)
After reinstalling I could get secondary to work but my primary is saying
no replica set conf has been found.
I don't understand what actually happened. Either I miss some files or mongo wants me to learn more about it. Please need advice asap.