[MDEV-4253] service mysql start --wsrep-cluster-address=gcomm:// does not work Created: 2013-03-07 Updated: 2014-07-15 Resolved: 2014-07-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | None |
| Affects Version/s: | 5.5.29-galera |
| Fix Version/s: | 5.5.39-galera |
| Type: | Bug | Priority: | Major |
| Reporter: | Tomas Gustavsson | Assignee: | Seppo Jaakola |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | galera | ||
| Environment: |
Ubuntu 12.04, MariaDB-Galera 5.5.29 |
||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Description |
|
In galera docs: It says in section "3. wsrep Settings" that you can start the first cluster node with: But it does not work. The wsrep-cluster-address is still taken from my.cnf. Giving it on command line should be good since you do not have to edit my.cnf, and then risk not editing it back to connect to a running cluster (since you don't want to start a second node as master). |
| Comments |
| Comment by Tomas Gustavsson [ 2013-03-07 ] | ||||||||||||||
|
This is probably caused by the same thing as | ||||||||||||||
| Comment by Elena Stepanova [ 2013-03-07 ] | ||||||||||||||
|
mysqld_safe from 5.5.29 accepts and passes through wsrep_cluster_address all right, so apparently the problem is different from | ||||||||||||||
| Comment by Tomas Gustavsson [ 2013-03-08 ] | ||||||||||||||
|
Looking at /usr/bin/mysqld_safe and /etc/init.d/mysql it looks correct. mysqld_safe reads wsrep_cluster_address,but /etc/init.d/mysql does not pass any arguments to mysqld_safe. | ||||||||||||||
| Comment by Elena Stepanova [ 2013-03-08 ] | ||||||||||||||
|
That's right, whatever changes were made to codership's mysql service script, they are not in MariaDB version as of 5.5.29, it just starts mysqld_safe without any parameters. However, I'm looking at the Codership's version from https://launchpad.net/codership-mysql/5.5/5.5.28-23.7/+download/mysql-server-wsrep-5.5.28-23.7-amd64.deb , and it doesn't look very promising either. Here is the whole fragment which deals with wsrep:
I'm not quite sure I understand the idea, it looks like the values have to be set in the environment to get it work? So, to make it actually work in the next version of MariaDB Galera, we need to have proper parameter processing added to the service script, not just copy the logic above. | ||||||||||||||
| Comment by Elena Stepanova [ 2013-05-10 ] | ||||||||||||||
|
See also | ||||||||||||||
| Comment by Tomas Gustavsson [ 2013-05-14 ] | ||||||||||||||
|
Verified that the patch given in | ||||||||||||||
| Comment by Elena Stepanova [ 2013-06-11 ] | ||||||||||||||
|
Hi Seppo, Please close if it's already fixed. Otherwise, I'm raising the priority since it should be fairly easy to fix, and the current behavior doesn't match Galera documentation. | ||||||||||||||
| Comment by Daniel Black [ 2014-03-04 ] | ||||||||||||||
|
Based of the CentOS scripts using --wsrep-new-cluster I've updated https://mariadb.com/kb/en/getting-started-with-mariadb-galera-cluster/ To make a bootstrap option the same as the CentOS scripts. That way service mysql bootstrap will instigate a primary node.
| ||||||||||||||
| Comment by Nirbhay Choubey (Inactive) [ 2014-07-15 ] | ||||||||||||||
|
http://bazaar.launchpad.net/~maria-captains/maria/5.5/revision/3799 | ||||||||||||||
| Comment by Nirbhay Choubey (Inactive) [ 2014-07-15 ] | ||||||||||||||
|
This has been addressed already by |