Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mariadb 10.1.13 galera cluster : error

mariadb 10.1.x galera cluster setting.

first node 192.168.159.132

/etc/mysql/my.cnf

[galera]
# Mandatory settings
wsrep_on=ON
wsrep_provider=/usr/lib/galera/libgalera_smm.so
wsrep_cluster_address=gcomm://192.168.159.132,192.168.159.135,192.168.159.136
binlog_format=row
default_storage_engine=InnoDB
innodb_autoinc_lock_mode=2

first node 192.168.159.132

$ sudo service mysql bootstrap

* Bootstrapping the cluster mysqld
Starting mysql (via systemctl): mysql.service
Job for mariadb.service failed because the control process exited with error code. See "systemctl status mariadb.service" and "journalctl -xe" for details.

$ systemctl status mariadb.service

[ERROR] WSREP: gcs/src/gcs_core.cpp:gcs_core_open():208: Failed to open backend connection: -110 (Connection timed out)
[ERROR] WSREP: gcs/src/gcs.cpp:gcs_open():1379: Failed to open channel 'my_wsrep_cluster' at 'gcomm://192.168.32.251,192.168.32.252,192.168.32...ection timed out)
[ERROR] WSREP: gcs connect failed: Connection timed out
[ERROR] WSREP: wsrep::connect(gcomm://192.168.32.251,192.168.32.252,192.168.32.253) failed: 7
[ERROR] Aborting
systemd[1]: mariadb.service: Main process exited, code=exited, status=1/FAILURE
systemd[1]: Failed to start MariaDB database server.
systemd[1]: mariadb.service: Unit entered failed state.
systemd[1]: mariadb.service: Failed with result 'exit-code'.

Why "Galera Cluster" not Start?

How To checking "Connection Time Out"?

like image 759
happymanxyz Avatar asked Sep 05 '25 03:09

happymanxyz


2 Answers

There is a Error in your config. After gcom you only use one : like:

wsrep_cluster_address=gcomm://192.168.159.132,192.168.159.135,192.168.159.136
like image 52
Bernd Buffen Avatar answered Sep 07 '25 23:09

Bernd Buffen


their is an error:

use format as below:

wsrep_cluster_address="gcomm://first_ip,second_ip,third_ip"
like image 33
Dhivin Avatar answered Sep 07 '25 23:09

Dhivin