2. MySQL HA Sprint: Get Prepared!
● Please grab a DVD from your table!
● We have 12 in total – please share if needed!
● Follow instructions in README.pdf.
● If your laptop does not have a DVD drive, please see
me for a USB stick.
● For any questions, I'm the guy in the blue shirt who
answers to “Florian”. When in doubt, just holler.
3. Florian Haas
CEO & Principal Consultant, hastexo
http://www.hastexo.com/who/florian
florian@hastexo.com
17. Create a Pacemaker Cluster
● Add the “pacemaker” service to /etc/corosync.d
● Use ver: 1
● Restart corosync
● Start pacemakerd
● Verify both nodes have joined the cluster
(crm_mon)
19. Set up your cluster
● Open the shell with crm configure
● Set no-quorum-policy to ignore
● Disable STONITH
● Kids, don't do this at home!
● Commit the configuration
21. Set up a floating IP address
● Add an IPaddr2 resource
● Name: p_ip_mysql
● IP: 192.168.122.110
● CIDR Netmask: 24
● NIC: eth0
● Commit the configuration
28. Add a DRBD Master/Slave Set
● Create the DRBD primitive p_drbd_mysql
● Use the ocf:linbit:drbd RA
● Add 2 monitor operations (role=Master, role=Slave)
with non-equal intervals
● Wrap it in a master/slave set
● notify=true, clone-max=2, master-max=1
● Commit the configuration
● Watch the cluster promote
34. Add the MySQL resource
● Run mysql_install_db
● Create an ocf:heartbeat:mysql primitive p_mysql
● Set additional_parameters:
--bind-address 192.168.122.110
● Add resource level monitoring
● Add it to the g_mysql group
● Commit, Rejoice!
41. Liked this talk?
● Go to www.hastexo.com/shoutbox
● Log in
(you can just use your OpenID from Wordpress,
Blogger, Yahoo, Google Apps, Google Profile)
● Leave us a message!