Registering the master host nodes

Use this procedure to register authentication credentials for the master host nodes.
  1. Log in to a master host node as root, or as a user with superuser privileges.
  2. In a separate window, log in to the other master host node as root, or as a user with superuser privileges.
  3. On both nodes, verify the settings in the serviced configuration file.
    grep -E '^\b*SERVICED' /etc/default/serviced | sort
    The settings must be identical on both hosts.
  4. Start each delegate host that is a member of the ZooKeeper ensemble.
    The ensemble is needed to start the master host instance of Control Center.
    1. Identify the hosts.
      grep -E '^\b*SERVICED_ZK=' /etc/default/serviced
      The result is a list of 3 or 5 hosts, separated by the comma character (,). The master host is always a node in the ZooKeeper ensemble.
    2. Log in to each delegate host in the ensemble as root, or as a user with superuser privileges.
    3. On each delegate host, start Control Center.
      systemctl start serviced
  5. On either node, start the cluster, and then monitor the startup process.
    1. Start the cluster.
      pcs cluster unstandby --all
    2. Monitor the startup process.
      watch pcs status
      Do not proceed until all resources report Started.
    3. Identify the active node in the cluster.
      The information is included in the output of pcs status.
  6. On the active node, display the host ID, and then register the host.
    1. Display the host ID of the active host.
      hostid
    2. Register the active master host.
      Replace Host-ID with the host ID of the active node:
      serviced key reset --register Host-ID
  7. On the active node, fail over to the passive node, and then monitor the process.
    1. Display the status of mirrored storage areas.
      drbd-overview
      Do not proceed until the status of all devices is UpToDate/UpToDate.
    2. Fail over to the passive node.
      Replace Active-Node with the IP address or hostname of the active master host:
      pcs cluster standby Active-Node
    3. Monitor the failover process.
      watch pcs status
      The failover process takes several minutes. Do not proceed until all resources report Started.
    4. Display the status of mirrored storage areas.
      drbd-overview
      Do not proceed until the status of all devices is UpToDate/UpToDate.
  8. On the formerly-passive node, register the host.
    1. Display the host ID of the now-active host.
      hostid
    2. Register the now-active master host.
      Replace Host-ID with the host ID of the now-active node:
      serviced key reset --register Host-ID
  9. On either node, restore the cluster.
    1. Restore the cluster.
      Replace Former-Active-Node with the IP address or hostname of the now-passive master host:
      pcs cluster unstandby Former-Active-Node
    2. Monitor the startup process.
      watch pcs status
      Do not proceed until all resources report Started.
    3. Display the status of mirrored storage areas.
      drbd-overview
      Do not proceed until the status of all devices is UpToDate/UpToDate.