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

Steps to rollback from CSRS to SCCC

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.20
    • Component/s: None
    • Labels:
      None

      ----------------------------

      Original Description

      Currently we have the documents to upgrade from SCCC to CSRS. However, we don't have a full document on downgrading from CSRS to SCCC.

      Some steps are documented in the downgrade document (downgrade from 3.2 to 3.0) - Prepare CSRS Config Servers for downgrade. However this is not a complete list. It would be nice if we can document the full steps. The steps look like:

      1. Disable the Balancer..
      2. Check the minOpTimeUpdaters value..
      3. Prepare CSRS Config Servers for downgrade..
        • If there is any requirement to rollback to the original servers/MMAPv1, after all the nodes in the cluster are stopped in Step c and before Step d to start the SCCC members, dump the config database from a CSRS member (running on standalone mode) and restore to the SCCC members with --drop option.
      4. Clear per-shard sharding recovery information..
        • Note that if the cluster is running with authentication enabled, it's needed to grant the proper privilege to the administrator user, in order to remove the minOpTimeRecovery document from the admin.system.version collection. Please replace USER with the proper administrator user.
          use admin;
          
          db.createRole({
            role: "downgrade_csrs",
            privileges: [
               { resource: { db: "admin", collection: "system.version"}, actions: [ "remove" ] },
            ],
            roles: [  ]
          });
          
          db.grantRolesToUser("USER", ["downgrade_csrs"]);
          
      5. Restart all the shard mongod instances.
      6. Start the mongos pointing to SCCC
      7. (Optional) The local database can be drop from the SCCC members if exists.

      ----------------------------

      Description

      Scope of changes (files that need work and how much)

      Impact to other docs outside of this product

      MVP (work and date?)

      Resources (e.g. Scope Docs, Invision)

            Assignee:
            isabella.siu@mongodb.com Isabella Siu (Inactive)
            Reporter:
            linda.qin@mongodb.com Linda Qin
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:
              5 years, 27 weeks, 4 days ago