Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Nats changes in Main Primary and Secondary Primary in /etc/nats-server.conf
    In the cluster section, replace old Arbiter DNS/IP address with new Arbiter DNS/IP address of
    "nats://opha-dev5.opmantek.net:6222" "nats://opha-dev6.opmantek.net:6222"

    Code Block
    cluster {
      name: "C1"
      host: "opha-dev4.opmantek.net"
      listen: "0.0.0.0:6222"
      routes: [
        "nats://opha-dev5.opmantek.net:6222" "nats://opha-dev6.opmantek.net:6222"
        "nats://opha-dev7.opmantek.net:6222"
      ]
    }
  2. Nats changes in New Arbiter Poller
    - Replace server name with DNS/IP address of the new Arbiter.
    - Comment out cluster section and edit the routes with the DNS/IP address of Main Primary and Secondary Primary

    Code Block
    server_name: "opha-dev6.opmantek.net"
    
    <Last section>
    cluster {
      name: "C1"
      host: "opha-dev4.opmantek.net"
      listen: "0.0.0.0:6222"
      routes: [
        "nats://opha-dev5.opmantek.net:6222"
        "nats://opha-dev7.opmantek.net:6222"
      ]
    }
  3. Disable the old Arbiter Nats config

    Code Block
    sudo systemctl stop nats-server.service
    sudo systemctl disable nats-server.service
  4. Mongodb arbiter config changes done on the mongosh
    Main Primary : mongosh (https://www.mongodb.com/docs/manual/tutorial/replace-replica-set-member/ )

    Code Block
    mongosh --username opUserRW --password op42flow42 admin --port 27017
    rs1 [direct: primary] admin> cfg = rs.conf()
    rs1 [direct: primary] admin> cfg.members[2].host = "opha-dev6.opmantek.net:27018"
    rs1 [direct: primary] admin> rs.reconfig(cfg)
    rs1 [direct: primary] admin> rs.conf()

    Verify the mongodb cluster config

    Code Block
    mongosh --username opUserRW --password op42flow42 admin --port 27017
    
    rs1 [direct: primary] admin> rs.conf()

    Code Block
     members: [
        {
          _id: 0,
          host: 'opha-dev4.opmantek.net:27017',
          priority: 2,
        },
        {
          _id: 1,
          host: 'opha-dev7.opmantek.net:27017',
          priority: 1,
        },
        {
          _id: 2,
          host: 'opha-dev6.opmantek.net:27018',
          priority: 0,
        }
      ],

    Disable the old mongodArb service

    Code Block
    sudo systemctl stop mongodArb.service
    sudo systemctl disable mongodArb.service

  5. All vms: (Main Pri, Sec Pri, Pollers, Mirrors)

...