I have a mongodb that is configured for 100GB of Oplog. I want to shrink it down to 40GB.
root 20855 1 21 2011 ? 33-13:02:13 /db/mongodb/mongodb_current/bin/mongod --quiet --fork --replSet repset_a --oplogSize 100000 --config /db/mongodb/etc/mongodb.conf
Just want to confirm the followings are that the correct way to shrink Oplog (local* files) for the SECONDARY/SLAVE of a replica set:
(1). Shutdown Slave of replica set
(2). Change to --oplogSize 40000
(3). Restart the Slave