Hi,
I have 3 servers with “Ubuntu 12.04.1 LTS” and I have instaled Percona XtraDB Cluster server from the binaries repositories using apt-get method. It appears that everything is installed correctly, because it runs the mysql server standalone from each node.
The first node (with wsrep_cluster_address=gcomm://) starts without problem. And I can run mysql --defaults-file=/etc/mysql/debian.cnf -e “show status like ‘wsrep%’;” and get the spected output saying that there is a cluster initialized with wsrep_cluster_size=1.
But when I start the second (or third node) the service mysql start finish with [[COLOR=#FF0000]fail] message. When i tried to start mysql with the command : “/etc/init.d/mysql start” or “service mysql start”, i get the message start [COLOR=#FF0000]failed.
“my.cnf” file for the first node is:
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld]
user = mysql
default_storage_engine = InnoDB
port = 3306
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
MyISAM
key_buffer_size = 32M
SAFETY
max_allowed_packet = 16M
max_connect_errors = 1000
DATA STORAGE
datadir = /var/opt/hosting/db
BINARY LOGGING
log_bin = /var/opt/hosting/tmp/mysql-bin-log/log-bin-node01.log
expire_logs_days = 10
INNODB
innodb_flush_method = ALL_O_DIRECT
innodb_log_files_in_group = 2
innodb_log_file_size = 150M
innodb_import_table_from_xtrabackup = 1
innodb_flush_log_at_trx_commit = 1
innodb_file_per_table = 1
innodb_buffer_pool_size = 1G
LOGGING
log-error = /var/opt/hosting/db/node1.err
long_query_time = 2
slow-query-log-file = /var/opt/hosting/log/mysql/mysql-slow-queries.node1.log
GALERA
Path to Galera library
wsrep_provider = /usr/lib/libgalera_smm.so
Cluster connection URL contains the IPs of node#1, node#2 and node#3
wsrep_cluster_address = gcomm://
In order for Galera to work correctly binlog format should be ROW
binlog_format = ROW
This is a recommended tuning variable for performance
innodb_locks_unsafe_for_binlog = 1
This changes how InnoDB autoincrement locks are managed and is a requirement for Galera
innodb_autoinc_lock_mode = 2
Node address
wsrep_node_address = node1_IP
SST method
wsrep_sst_method = xtrabackup
Cluster name
wsrep_cluster_name = my_first_node
Authentication for SST method
wsrep_sst_auth = “sst_user:password”
“my.cnf” file for the 2nd node
[client]
port = 3306
socket = /var/run/mysqld/mysqld.sock
[mysqld]
user = mysql
default_storage_engine = InnoDB
port = 3306
pid-file = /var/run/mysqld/mysqld.pid
socket = /var/run/mysqld/mysqld.sock
MyISAM
key_buffer_size = 32M
SAFETY
max_allowed_packet = 16M
max_connect_errors = 1000
DATA STORAGE
datadir = /var/opt/hosting/db
BINARY LOGGING
log_bin = /var/opt/hosting/tmp/mysql-bin-log/log-bin-node02.log
expire_logs_days = 10
INNODB
innodb_flush_method = ALL_O_DIRECT
innodb_log_files_in_group = 2
innodb_log_file_size = 150M
innodb_import_table_from_xtrabackup = 1
innodb_flush_log_at_trx_commit = 1
innodb_file_per_table = 1
innodb_buffer_pool_size = 1G
LOGGING
log-error = /var/opt/hosting/db/poolm/node2.err
long_query_time = 2
slow-query-log-file = /var/opt/hosting/log/mysql/mysql-slow-queries.node2.log
GALERA
Path to Galera library
wsrep_provider = /usr/lib/libgalera_smm.so
Cluster connection URL contains the IPs of node#1, node#2 and node#3
wsrep_cluster_address = gcomm://node1_IP
In order for Galera to work correctly binlog format should be ROW
binlog_format = ROW
This is a recommended tuning variable for performance
innodb_locks_unsafe_for_binlog = 1
This changes how InnoDB autoincrement locks are managed and is a requirement for Galera
innodb_autoinc_lock_mode = 2
Node address
wsrep_node_address = node2_IP
SST method
wsrep_sst_method = xtrabackup
Cluster name
wsrep_cluster_name = my_first_node
Authentication for SST method
wsrep_sst_auth = “sst_user:password”
I followed the documentation from the Percona XtraDB Cluster : [url]http://www.percona.com/doc/percona-xtradb-cluster/index.html[/url]
During the process of starting up with “/etc/init.d/mysql start” command on “node2”, it looks like the synchronization from this node(node2) with “node1” set more time than the 14seconds which were defined. I think “/etc/init.d/mysql start” command, don’t wait that this synchronization is ended before going out in error.
What do you think about it? Can you help me with this setup, I need it urgently.
Thanks in advance.
PS : PERCONA SERVER VERSION : 5.5.30-30.2-log Percona Server (GPL), Release 30.2, wsrep_23.7.4.r3843