MARIADB Galera Startup problem

Source: Internet
Author: User

After setting up the MARIADB galera cluster, how to start the whole cluster after it is stopped, we must start the node, today I try to stop all the cluster machines, and then start a node arbitrarily, found the following error:

170620 21:32:55 [ERROR] wsrep:it may isn't safe to bootstrap the cluster from this node. It was wasn't the last one to leave the cluster and may not be contain all the updates. To force cluster bootstrap with this node, edit the Grastate.dat file manually and set Safe_to_bootstrap to 1.

It means that the node is not the last node to leave the cluster (the last node that was stopped), it may not contain all the updated data, force it to start from that node, manually edit the Grastate.dat file, set the Safe_to_bootstrap=1, and, of course, We do not need to force the start from this node, we will each of the nodes under the Grastate.dat file (the file in the data directory), locate the Safe_to_bootstrap=1 node, and then start on that node.

Like the node I found here is node 3.
[Email protected] data]# more Grastate.dat
# Galera saved state
version:2.1
Uuid:43caaa91-54bf-11e7-9321-c60bd8969b24
seqno:2919
Safe_to_bootstrap:1

The first mariadb startup method in the cluster:

/etc/init.d/mysql start--wsrep-new-cluster

Other data startup methods in the cluster:

/etc/init.d/mysql start

MARIADB Galera Startup problem

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.