Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-4673

Comment on: "manual/tutorial/change-oplog-size.txt"

    • Type: Icon: Task Task
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • Affects Version/s: None
    • Component/s: manual, Server
    • Environment:

      Recently hit an issue with this procedure when it turned out that the directoryPerDB option was enabled when the node was in a replica set, but was not contained in the configuration file (instead it was passed as a command line option via the Windows service). If you fail to include directoryPerDB when starting as a standalone there is no error, and you can complete the procedire, but you will end up creating a new local database etc.

      I would suggest adding a tip or warning, something like the following (with appropriate linkage) below the instruction to start the node as a standalone on a different port (not submitting as a pull request, because I am not sure about how best to frame it, nor how best to link to the configuration option):

      .. tip:: Be careful to ensure that you include all necessary
           options when starting as a standalone instance. In particular,
           the directoryPerDB option must be specified if used when the
           process is part of a Replica Set.   Failure to do so will not
           cause errors, but the procedure will not succeed in resizing
           the oplog.
      

            Assignee:
            kay.kim@mongodb.com Kay Kim (Inactive)
            Reporter:
            adamc Adam Comerford
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved:
              1 year, 25 weeks, 3 days ago