Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-4613

Resize Oplog for Slaves in replica set

    • Type: Icon: Question Question
    • Resolution: Done
    • Priority: Icon: Major - P3 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

      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

            Assignee:
            Unassigned Unassigned
            Reporter:
            lynn.hoang@teamaol.com Lynn Hoang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: