DEV Community

leo
leo

Posted on

Start and stop operation of openGauss

Start openGauss
Log in to the active database node as the operating system user omm.

Start openGauss with the following command.

gs_om -t start
Note: The two-machine startup must be started in the two-machine mode. If the intermediate process is started in the single-machine mode, the two-machine relationship must be repaired to restore the two-machine relationship. Use gs_ctl build to repair it. For the usage of gs_ctl, please refer to "openGauss Tool Reference".

Stop openGauss
Log in to the active database node as the operating system user omm.

Stop openGauss with the following command.

gs_om -t stop
Note: For the operation of starting and stopping nodes and AZ, please refer to the "Server Tool > gs_om" chapter in "openGauss Tool Reference".

example
Start openGauss:

gs_om -t start

Starting cluster.

=========================================
Successfully started.
Stop openGauss:

gs_om -t stop

Stopping cluster.

Successfully stopped cluster.

End stop cluster.
Troubleshooting
If you fail to start openGauss or stop the openGauss service, troubleshoot the error based on the log information in the log file, see Log reference.

If the startup fails due to timeout, you can execute the following command to set the startup timeout period. The default timeout period is 300s.

gs_om -t start --time-out=300

Top comments (0)