Open Source RDBMS - Seamless, Scalable, Stable and Free

한국어 | Login |Register

Versions available for this page: CUBRID 8.4.0 |  CUBRID 8.4.1 |  CUBRID 8.4.3 |  CUBRID 9.0.0 | 

cubrid changemode

Description

This utility is used to check and change the server status of CUBRID HA.

Syntax

cubrid changemode [option] <database-name>

  • database-name : Specifies the name of a server to monitor and the node name; separate them by using @.
Option

Option

Default

Description

-m

none

Changes the server status. You can enter one of the followings: standby, maintenance, or active.

-f

 

Configures whether or not to forcibly change the server status. This option must be configured if you want to change the server status from to-be-active to active. If it is not configured, the status will not be changed to active.

Forcibly change may cause replication inconsistency; so it is not recommended.

Status Changeable Map

This table shows changeable modes depending on current status. However, replication inconsistency may occur if the status of the current server is changed from to-be-active to active. Therefore, it is recommended that only a user who is familiar with this condition uses this option.

 

Future Status

active

standby

maintenance

Current Status

standby

X

O

O

to-be-standby

X

X

X

active

O

X

X

to-be-active

O

X

X

maintenance

X

O

O

Note When the server status is to-be-active, forcibly change may cause replication inconsistency. It is not recommended if you are not skilled enough.

Example

The following is an example of changing the testdb01 server status in a localhost node to maintenance.

$ cubrid changemode -m maintenance tdb01@localhost

The server `tdb01@localhost''s current HA running mode is maintenance.

$

The following is an example of retrieving the testdb01 server status in the a localhost node.

$ cubrid changemode tdb01@localhost

The server `tdb01@localhost''s current HA running mode is active.

$