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

Amend "Reconfigure by "Breaking the Mirror"" to include a case when WT is used

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • Server_Docs_20231030
    • mongodb-3.0
    • manual, Server
    • None

    Description

      The current "Breaking the Mirror" steps work only on MMAPv1 because there are no local.* files under dbpath if WT is used, and, if any of the WT data files are removed, the server will not be able to start.

      We should either add another set of steps for WT, such as:

      1. Stop the surviving mongod instances.

      use admin
      db.shutdownServer()
      

      2. Move the data directories (i.e. dbPath) for all the members except db0.example.net, so that all the members except db0.example.net have empty data directories.

      3. Start the db0.example.net mongod instance with no --replSet option set.

      4. Drop the local database:

      use local
      db.dropDatabase()
      

      5. Stop the instance.

      6. Start each member of the replica set normally (with --replSet option set).

      7. Connect to the db0.example.net instance in a mongo shell and run rs.initiate() to initiate the replica set.

      8. Add the other set members using rs.add().

      Or perhaps we should only leave the WT scenario as it is universal and will also work on MMAPv1.

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            dmitry.ryabtsev@mongodb.com Dmitry Ryabtsev
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              1 year, 14 weeks, 1 day ago