start cluster cluster_name
This command starts the cluster named
cluster_name, as shown in this
example:
mcm> start cluster mycluster;
+------------------------------+
| Command result |
+------------------------------+
| Cluster started successfully |
+------------------------------+
1 row in set (45.37 sec)
In order for the command to succeed, the cluster named in the
command must already exist; otherwise the command fails with the
error Cluster cluster_name
not defined, as shown here:
mcm>list sites;+--------+------+-------+------------------------------+ | Site | Port | Local | Hosts | +--------+------+-------+------------------------------+ | mysite | 1862 | Local | tonfisk,flundra,grindval,haj | +--------+------+-------+------------------------------+ 1 row in set (1.72 sec) mcm>list clusters mysite;+-----------+-----------+ | Cluster | Package | +-----------+-----------+ | mycluster | mypackage | +-----------+-----------+ 1 row in set (1.70 sec) mcm>start cluster yourcluster;ERROR 5001 (00MGR): Cluster yourcluster not defined
In addition, the cluster must not already be running, as shown here:
mcm>show status --cluster mycluster;+-----------+-------------------+ | Cluster | Status | +-----------+-------------------+ | mycluster | fully operational | +-----------+-------------------+ 1 row in set (0.92 sec) mcm>start cluster mycluster;ERROR 5005 (00MGR): Cluster mycluster is running
