mongo replication not happening
It looks like what you have done is run rs.initiate() on both the primary and the secondary server.

In this case the outcome is that you have two different replica sets called ittw rather than a single replica set with replication.  The primary knows about both nodes, but the "secondary" you setup is also configured as a primary for a replica set only containing itself.  This definitely won't work.

As per the instructions on Deploying a replica set, you should only run rs.initiate() on the primary, and then use rs.add("hostname:port") to add secondaries to the same replica set.

To fix up your dud secondary to a clean state, you should:


stop the secondary using db.shutdownServer() or appropriate command like service mongodb stop (depending on how you installed MongoDB)
remove the files in the dbpath directory for the secondary
restart the secondary
use the mongo shell to connect to the primary, and rs.add() your secondary


If all is well you should see consistent rs.status() information on the primary and new secondary.