-
Type:
Question
-
Resolution: Done
-
Priority:
Major - P3
-
None
-
Affects Version/s: 1.8.2
-
Component/s: Storage
-
Environment:OS: Linux eprod-d25.websys.aol.com 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
Mongodb: mongodb-linux-x86_64-1.8.2
-
None
-
None
-
None
-
None
-
None
-
None
-
None
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