Uploaded image for project: 'MariaDB Server'
  1. MariaDB Server
  2. MDEV-4253

service mysql start --wsrep-cluster-address=gcomm:// does not work

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.5.29-galera
    • Fix Version/s: 5.5.39-galera
    • Component/s: None
    • Labels:
    • Environment:
      Ubuntu 12.04, MariaDB-Galera 5.5.29

      Description

      In galera docs:
      http://www.codership.com/wiki/doku.php?id=mysql_galera_configuration

      It says in section "3. wsrep Settings" that you can start the first cluster node with:
      service mysql start --wsrep-cluster-address=gcomm://

      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).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

              Hide
              primetomas Tomas Gustavsson added a comment -

              Verified that the patch given in MDEV-4509 works good for me.

              Show
              primetomas Tomas Gustavsson added a comment - Verified that the patch given in MDEV-4509 works good for me.
              Hide
              elenst Elena Stepanova added a comment -

              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.
              Please reassign if it doesn't belong to you.
              See also MDEV-4509.

              Show
              elenst Elena Stepanova added a comment - 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. Please reassign if it doesn't belong to you. See also MDEV-4509 .
              Hide
              danblack Daniel Black added a comment -

              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.

              --- mysql       2014-03-04 01:10:47.000000000 +0000
              +++ mysql-new   2014-03-04 01:17:18.000000000 +0000
              @@ -178,7 +178,10 @@
                        exit 3
                      fi
                      ;;
              -
              +  'bootstrap')
              +       log_daemon_msg "Bootstrap MariaDB database server" "mysqld"
              +        $0 start "${@:2}" --wsrep-new-cluster
              +        ;;
                 *)
                      echo "Usage: $SELF start|stop|restart|reload|force-reload|status"
                      exit 1
              
              Show
              danblack Daniel Black added a comment - 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. --- mysql 2014-03-04 01:10:47.000000000 +0000 +++ mysql-new 2014-03-04 01:17:18.000000000 +0000 @@ -178,7 +178,10 @@ exit 3 fi ;; - + 'bootstrap') + log_daemon_msg "Bootstrap MariaDB database server" "mysqld" + $0 start "${@:2}" --wsrep-new-cluster + ;; *) echo "Usage: $SELF start|stop|restart|reload|force-reload|status" exit 1
              Show
              nirbhay_c Nirbhay Choubey added a comment - http://bazaar.launchpad.net/~maria-captains/maria/5.5/revision/3799
              Hide
              nirbhay_c Nirbhay Choubey added a comment -

              This has been addressed already by MDEV-4509.

              Show
              nirbhay_c Nirbhay Choubey added a comment - This has been addressed already by MDEV-4509 .

                People

                • Assignee:
                  seppo Seppo Jaakola
                  Reporter:
                  primetomas Tomas Gustavsson
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: