Starting and Stopping openGauss

Starting openGauss

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

  2. 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

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

  2. 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
Feedback
编组 3备份
    openGauss 2024-05-07 00:46:52
    cancel