Bootstrap Galera Cluster for MySQL

< class="field field-name-body field-type-text-with-summary field-label-hidden view-mode-teaser">

The script is available at github. Only tested with Ubuntu 12.04 and RHEL 6.3.

$ git clone
$ cd dbtools/galera
$ ./
!! Running this Galera bootstrap will wipe out any current MySQL installation that you have on your hosts !!
Continue? (Y/n):
Download Galera packages (Y/n):
What is your OS on your DB nodes [ubuntu|redhat]: (ubuntu)
Galera MySQL tarball ( 
Galera wsrep library ( 
Downloading packages...
Generate install scripts (Y/n):
MySQL install dir (/usr/local):
MySQL data dir (/var/lib/mysql):
InnoDB buffer pools size (1G):
InnoDB log file size (1G):
Where are your Galera hosts () [ip1 ip2 ... ipN]:
Name your Galera Cluster (my_galera_cluster):
SST method [rsync|xtrabackup] (rsync):
Writeset slaves/parallel replication (1):
Generate tarball (Y/n):
SSH user (alex):
SSH pub key (/home/alex/.ssh/
SSH port (22):
Creating tarball...
Deploy Galera (Y/n):
*** Bootstraping
*** Installing Galera wsrep provider
Killing any MySQL server running...
Do you want to secure your Galera cluster (y/N): y
Enter a new MySQL root password: root123
Securing MySQL...
Galera Cluster for MySQL installed...


Subscribe to github