Bright:HA setup

From Define Wiki
Revision as of 10:46, 27 February 2014 by Michael (talk | contribs) (Created page with "== Preparation for HA == Once installation of the first head node has been completed, the cluster may be converted to a HA cluster. In order to do this two steps must be com...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Preparation for HA

Once installation of the first head node has been completed, the cluster may be converted to a HA cluster.

In order to do this two steps must be completed:

  • Obtain a new HA licence and activating it
  • running the cmha-setup

cmha-setup

There are three steps to set up HA:

Preparation

  • Power off all other nodes in the cluster to reduce the chance of problems
cmsh-setup
setup
configure
  • A licence check is done to determine that a valid HA licence is applied
  • Set up the shared interface name and IP addresses are set. 0.0.0.0 can be used for DHCP.
  • Set the hostname of the passive head node
  • The failover network is set up
  • Other Interfaces of the passive node are configured


Cloneing

The passive head node is installed using a clone of the active head node.

  1. Boot the Passive node using pxe
  2. Select "Start Rescue Environment"
  3. Run the following command
/cm/cm-clone-install ---failover
  1. Enter the network interface to use
  2. Enter the root password
  3. Confirm the set up
  4. Cloning will then begin
  5. Once the cloning has finished return the the active head node and select "finalize"
  6. Reboot the passive node
  7. Check the status of the nodes:
[root@bright61 ~]# cmha status
Node Status: running in active master mode

Failover status:
bright61* -> master2
    backupping   [ OK ]
    mysql        [ OK ]
    ping         [ OK ]
    status       [ OK ]
master2 -> bright61*
   backupping    [ OK ]
   mysql         [ OK ]
   ping          [ OK ]
   status        [ OK ]


Shared Storage