Skip to content

Instantly share code, notes, and snippets.

@andypotanin
Last active August 29, 2015 13:57
Show Gist options
  • Select an option

  • Save andypotanin/9448783 to your computer and use it in GitHub Desktop.

Select an option

Save andypotanin/9448783 to your computer and use it in GitHub Desktop.
#
#
# http://www.clusterdb.com/mysql-cluster/deploying-mysql-cluster-over-multiple-hosts
# http://dev.mysql.com/doc/refman/5.6/en/mysql-cluster.html
# http://www.houseoflinux.com/mysql/how-to-configure-a-mysql-cluster-on-centos-redhat
yum -y groupinstall "High Availability" "Resilient Storage"
yum -y groupinstall "High Availability Management"
yum -y install iscsi-initiator-utils
yum -y install vsftpd
yum -y install pacemaker pcs ccs resource-agents
yum -y install gfs2-utils kmod-gfs drbd82 kmod-drbd82 xfsprogs kmod-xfs
chkconfig ricci on
chkconfig luci on
chkconfig cman on
chkconfig clvmd on
chkconfig rgmanager on
chkconfig modclusterd on
chkconfig pacemaker on
chkconfig NetworkManager off
# create /etc/cluster/cluster.conf file
service cman start
service rgmanager start
service modclusterd start
service ricci start
service luci start
service pacemaker start
# We'll be using Conga to manage these
chkconfig --del httpd
chkconfig --del mysqld
# curl https://10.88.135.112:8084
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment