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

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

Details

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 5.5.29-galera
    • 5.5.39-galera
    • None
    • 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).

      Attachments

        Issue Links

          Activity

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

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

            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.

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

            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
            nirbhay_c Nirbhay Choubey (Inactive) added a comment - http://bazaar.launchpad.net/~maria-captains/maria/5.5/revision/3799

            This has been addressed already by MDEV-4509.

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

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Git Integration

                  Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.