Starting and Verifying CUBRID HA

Starting CUBRID HA

Execute the cubrid heartbeat start at each node in the CUBRID HA group. Note that the node executing cubrid heartbeat start first will become a master node.

Verifying CUBRID HA Status

Execute cubrid heartbeat status at each node in the CUBRID HA group to verify its configuration status.

[master]$ cubrid heartbeat status

@ cubrid heartbeat list

 HA-Node Info (current master-node-name, state master)

   Node slave-node-name (priority 2, state slave)

   Node master-node-name (priority 1, state master)

 HA-Process Info (master 9289, state master)

   Applylogdb demodb@localhost:/home1/cubrid1/DB/demodb_slave.cub (pid 9423, state registered)

   Copylogdb demodb@slave-node-name:/home1/cubrid1/DB/demodb_slave.cub (pid 9418, state registered)

   Server demodb (pid 9306, state registered_and_active)

 

[master]$

Use the cubrid changemode utility at each node in the CUBRID HA group to verify the status of the server.

Verifying the CUBRID HA Operation

Ensure the change has been correctly reflected to the standby server of the slave node after writing the active server of the master node. Note that a primary key must exist when creating a table.