Comments - MariaDB with Galera on RedHat 7.2 not starting

8 years, 5 months ago Veselin Vasilev

Hi, Thank you for your reply. I got partial success, but still not able to initialize the cluster:

[dbadmin@mariadb-N1 ~]$ sudo service mysql start --wsrep-new-cluster --wsrep_cluster_address=''
Starting mysql (via systemctl):                            [  OK  ]
[dbadmin@mariadb-N1 ~]$ mysql -u root -p --execute="SHOW GLOBAL STATUS WHERE Variable_name IN ('wsrep_ready', 'wsrep_cluster_size', 'wsrep_cluster_status', 'wsrep_connected');"
Enter password:
+----------------------+--------------+
| Variable_name        | Value        |
+----------------------+--------------+
| wsrep_cluster_size   | 0            |
| wsrep_cluster_status | Disconnected |
| wsrep_connected      | OFF          |
| wsrep_ready          | OFF          |
+----------------------+--------------+
[dbadmin@mariadb-N1 ~]$ mysql -u root -p --execute="SET GLOBAL wsrep_cluster_address='gcomm://172.20.1.56,172.20.1.57,172.20.1.58';"
Enter password:
ERROR 2013 (HY000) at line 1: Lost connection to MySQL server during query
[dbadmin@mariadb-N1 ~]$
 
8 years, 5 months ago Nirbhay Choubey

This could be due to the following bug: https://jira.mariadb.org/browse/MDEV-10186. So, alternatively, you could set empty wsrep_cluster_address in config file along with other mandatory options and later update it to add more IPs once the cluster is up.

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.