DEV Community

tongxi
tongxi

Posted on

openGauss Starting and Stopping openGauss

Starting openGauss
Log in as the OS user omm to the primary node of the database.

Run the following command to start openGauss:

""
gs_om -t start
NOTE: An HA cluster must be started in HA mode. If the cluster is started in standalone mode, you need to restore the HA relationship by running the gs_ctl build command. For details about how to use the gs_ctl tool, see the openGauss Tool Reference.

Stopping openGauss
Log in as the OS user omm to the primary node of the database.

Run the following command to stop openGauss:

""
gs_om -t stop
NOTE: For details about how to start and stop nodes and availability zones (AZs), see “Server Tools > gs_om” in the openGauss Tool Reference.

Examples
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 starting or stopping openGauss fails, troubleshoot the problem based on log information. For details, see Log Reference.

If the startup fails due to timeout, you can run the following command to set the startup timeout interval, which is 300s by default:

""
gs_om -t start --time-out=300

Top comments (0)