GBDI 4.1

Adding a MINOR node to an existing two-node HADR system

To add a MINOR node to an existing GBDI HADR system:

  1. On ALL machines edit the HADR setup config file. Values shown between < and > below must be updated according to the sonarg-setup information (provided previously in GBDI HADR Setup or Upgrading HADR System from GBDI 4.0 to 4.1). All other values are set to defaults and there is normally no need to change them:

    sudo vi /usr/lib/sonarw/hadr_install_defaults.sh

    REPLSET_NAME='rs0'
    REPLICATION_SYNC_INTERVAL=30
    HADR_NODES_ARRAY[0]=<'192.168.1.100:27117'> # main
    HADR_NODES_ARRAY[1]=<'192.168.1.101:27117'> # dr
    #HADR_NODES_ARRAY[2]=<'192.168.1.102:27117'> # minor, uncomment if relevant
    SONAR_HOME=<'/var/lib/sonarw'>
    SONARGD_HOME='/var/lib/sonargd'
    SONARGD_BASEDIR=<'/var/lib/sonargd'>
    CLOUD_BUCKET_NAME=<'cloud-bucket-name'>
  2. Save and exit.

    Note

    Systems that have been upgraded will need to use the 4.1 version of hadr_install_defaults.sh.  The old file should be renamed and the 4.1 version changed from hadr_install_defaults.sh.rpmnew to hadr_install_defaults.sh.

  3. Rename old defaults file:

    Sudo mv /usr/lib/sonarw/hadr_install_defaults.sh  /usr/lib/sonarw/hadr_install_defaults.sh.old
  4. Rename new defaults file:

    sudo mv /usr/lib/sonarw/hadr_install_defaults.sh.rpmnew  /usr/lib/sonarw/hadr_install_defaults.sh
  5. Run the HADR installation scripts as described below.

    1. Run the script on the MAIN: sudo /usr/lib/sonarw/hadr_add_minor.sh main

      Follow the instructions at the end of the script: On the MINOR, create a .ssh directory under the SONAR_HOME; copy the required files from /tmp/sshkeys to the newly created .ssh folder on the MINOR. Also, copy the contents of /etc/sonar/ssl on the MAIN to /etc/sonar/ssl on the MINOR.

    2. Run the script on the DR: sudo /usr/lib/sonarw/hadr_add_minor.sh dr

    3. Run the script on the MINOR sudo /usr/lib/sonarw/hadr_install.sh minor

  6. Verify on DR the results of the hadr script:

    The last command in the previous step "sudo /usr/lib/sonarw/hadr_add_minor.sh dr" needs to complete successfully.

    There will be a new log (on the DR) detailing the rsyncing of data between MAIN and DR: /var/log/sonargd/replication.log.

  7. Verify on MINOR the results of the hadr script:

    The last command in the previous step "sudo /usr/lib/sonarw/hadr_add_minor.sh minor" needs to complete successfully.

    There will be a new log (on the MINOR) detailing the rsyncing of data between MAIN and MINOR: /var/log/sonargd/replication.log.