Creating the cluster in standby mode

Perform this procedure to create the high-availability cluster in standby mode.
  1. Log in to the primary node as root, or as a user with superuser privileges.
  2. Authenticate the nodes.
    pcs cluster auth Primary-Public-Name Secondary-Public-Name
    When prompted, enter the password of the hacluster account.
  3. Generate and synchronize an initial (empty) cluster definition.
    pcs cluster setup --name serviced-ha \
      Primary-Public-Name Secondary-Public-Name
  4. Start the PCS management agents on both nodes in the cluster.
    The cluster definition is empty, so starting the cluster management agents has no side effects.
    pcs cluster start --all
    The cluster management agents start, on both nodes.
  5. Check the status.
    pcs cluster status
    The expected result is Online, for both nodes.
  6. Put the cluster in standby mode.
    Pacemaker begins monitoring and managing the different resources as they are defined, which can cause problems; standby mode prevents the problems.
    pcs cluster standby --all
  7. Configure cluster services to start when the node starts.
    For more information about cluster startup options, refer to the Pacemaker documentation.
    systemctl enable corosync; systemctl enable pacemaker
  8. Replicate the configuration on the secondary node.
    1. In a separate window, log in to the secondary node as root, or as a user with superuser privileges.
    2. Configure cluster services to start when the node starts.
      systemctl enable corosync; systemctl enable pacemaker