Create databases to be included in CUBRID HA at each node of the CUBRID HA in the same manner. Modify the options for database creation as needed.
[master]$ cd $CUBRID_DATABASES
[master]$ mkdir demodb
[master]$ cd demodb
[master]$ mkdir log
[master]$ cubrid createdb -L ./log demodb
Creating database with 5000 pages.
CUBRID 2008 R4.0
[master]$
Ensure ha_mode of $CUBRID/conf/cubrid.conf in every CUBRID HA node has the same value.
# Enable CUBRID HA
ha_mode=on
Ensure ha_port_id, ha_node_list, and ha_db_list of $CUBRID/conf/cubrid_ha.conf in every
CUBRID HA node have the same value.
ha_port_id=12345
ha_node_list=cubrid@nodeA:nodeB
ha_db_list=demodb