MogDB
Ecological Tools
Doc Menu

Starting and Stopping MogDB

Starting MogDB

  1. Log in as the OS user omm to the primary node of the database.
  2. Run the following command to start MogDB:

    gs_om -t start

    img 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 gs_ctl.

Stopping MogDB

  1. Log in as the OS user omm to the primary node of the database.
  2. Run the following command to stop MogDB:

    gs_om -t stop

    img NOTE: For details about how to start and stop nodes and availability zones (AZs), see gs_om.

Examples

Start MogDB:

gs_om -t start
Starting cluster.
=========================================
=========================================
Successfully started.

Stop MogDB:

gs_om -t stop
Stopping cluster.
=========================================
Successfully stopped cluster.
=========================================
End stop cluster.

Troubleshooting

If starting or stopping MogDB 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