22 Aug 2012 20:49
Issues with HA cluster for mysqld
Hello, I'm trying to set up a 2-node, active-passive HA cluster for MySQL using heartbeat and Pacemaker. The operating system is Debian Linux 6.0.5 64-bit, and I am using the heartbeat packages installed via apt-get. The servers involved are the SQL nodes of a running MySQL cluster, so the only service I need HA for is the MySQL daemon (mysqld). What I would like to do is have a single virtual IP address which clients use to query MySQL, and have the IP and mysqld fail over to the passive node in the event of a failure on the active node. I have read through a lot of the heartbeat and Pacemaker documentation, and here are the resources I have configured for the cluster: * A custom LSB script for mysqld (compliant with Pacemaker's requirements as outlined in the documentation) * An iLO2-based STONITH device using riloe (both servers are HP Proliant DL380 G5) * A virtual IP address for mysqld using IPaddr2 I believe I have configured everything correctly, but I'm not positive. Anyway, when I start heartbeat and pacemaker (/etc/init.d/heartbeat start), everything seems to be ok. However, the virtual IP never comes up, and the output of "crm_resource -LV" indicates that something is wrong: root <at> ha1:~# crm_resource -LV crm_resource[28988]: 2012/08/22_14:41:23 WARN: unpack_rsc_op: Processing failed op stonith_start_0 on ha1: unknown error (1) stonith (stonith:external/riloe) Started MysqlIP (ocf::heartbeat:IPaddr2) Stopped(Continue reading)
RSS Feed