Adding master nodes to their resource pool

This procedure adds the Control Center master nodes to their resource pool, named master. The master nodes are added to the resource pool with their public hostnames, so that you can easily see which node is active when you log in to the Control Center browser interface.
  1. Use the virtual hostname (HA-Virtual-Name) or virtual IP address (HA-Virtual-IP) of the high-availability cluster to start a Bash shell on the Control Center master host as root, or as a user with superuser privileges.
  2. Display the public hostname of the current node.
    uname -n
    The result is either Primary-Public-Name or Secondary-Public-Name.
  3. Add the current node to the master resource pool.

    Replace Node-Hostname with the public hostname of the current node:

    serviced host add Node-Hostname:4979 master
  4. Force a failover.

    Replace Node-Hostname with the public hostname of the current node:

    pcs cluster standby Node-Hostname
  5. Monitor the cluster status.
    watch pcs status
    Do not proceed until all resources report a status of Started.
  6. Use the virtual hostname (HA-Virtual-Name) or virtual IP address (HA-Virtual-IP) of the high-availability cluster to start a Bash shell on the Control Center master host as root, or as a user with superuser privileges.
  7. Display the public hostname of the current node.
    uname -n
  8. Add the current node to the master resource pool.

    Replace Node-Hostname with the public hostname of the current node:

    serviced host add --register Node-Hostname:4979 master
  9. Restore the cluster.

    Replace Standby-Node-Hostname with the public hostname of the node that is in standby mode:

    pcs cluster unstandby Standby-Node-Hostname