Re: [Pacemaker] DRBD Master/Slave in a 3 node cluster

2013-09-30 Thread James Oakley
On Monday, September 30, 2013 2:25:00 PM, emmanuel segura wrote: > Sorry maybe this is not the problem, but for avoid the split-brain > you need to configure fencing(stonith). The last time I set up STONITH, I ended up with an instant deathmatch on an otherwise stable cluster, and not a single mes

Re: [Pacemaker] custom resource-agent

2013-09-30 Thread David Lang
Peter, one trick you may want to try using is to set ipv4.ip_nonlocal_bind=1 in sysctl.conf, this will let you start mySQL and bind it to the VIP, even if the VIP isn't live on the box yet. so when you want to do a failover, you can have pacemaker stop MySQL on the old box, start it on the new

Re: [Pacemaker] custom resource-agent

2013-09-30 Thread David Lang
On Mon, 30 Sep 2013, David Lang wrote: On Mon, 30 Sep 2013, Michael Schwartzkopff wrote: Am Montag, 30. September 2013, 21:12:56 schrieb Peter Romfeld: I am working in AWS i cant just use a VIP i need to use a floating secondary IP which i reassign through script, i want to let pacemaker hand

Re: [Pacemaker] custom resource-agent

2013-09-30 Thread David Lang
On Mon, 30 Sep 2013, Michael Schwartzkopff wrote: Am Montag, 30. September 2013, 21:12:56 schrieb Peter Romfeld: I am working in AWS i cant just use a VIP i need to use a floating secondary IP which i reassign through script, i want to let pacemaker handle the reassignment... Please explain t

[Pacemaker] DRBD Master/Slave in a 3 node cluster

2013-09-30 Thread James Oakley
I am having some trouble with DRBD Master/Slave resources in a 3-node cluster. I am using the Pacemaker packages from ha-clustering:Stable on openSUSE 12.3. I was going to try the packages from Unstable to see if they work better, but it seems the openais package is missing there. So I have 3 no

Re: [Pacemaker] custom resource-agent

2013-09-30 Thread Peter Romfeld
i am able to use IPaddr2 when running a external script explained here: http://aws.amazon.com/articles/2127188135977316 I can adjust it to check port 3306 but i still want to use pacemaker to handle it, since thats pacemakers job :) I want to bind mysql to the VIP and in this case i cant use the ex

Re: [Pacemaker] custom resource-agent

2013-09-30 Thread Michael Schwartzkopff
Am Montag, 30. September 2013, 21:12:56 schrieb Peter Romfeld: > I am working in AWS i cant just use a VIP i need to use a floating > secondary IP which i reassign through script, i want to let pacemaker > handle the reassignment... Please explain the difference of a VIP and a "secondary IP" in yo

Re: [Pacemaker] custom resource-agent

2013-09-30 Thread Peter Romfeld
I am working in AWS i cant just use a VIP i need to use a floating secondary IP which i reassign through script, i want to let pacemaker handle the reassignment... Thanks for reply! On Mon, Sep 30, 2013 at 9:05 PM, Michael Schwartzkopff wrote: > ** > > Am Montag, 30. September 2013, 20:54:03 s

Re: [Pacemaker] custom resource-agent

2013-09-30 Thread Michael Schwartzkopff
Am Montag, 30. September 2013, 20:54:03 schrieb Peter Romfeld: > Hi, > > I am running a mysql-cluster in aws with pacemaker/drbd. I would like to > run a script at failover to reassign the secondary IP for VIP. Why don't you just use a IPaddr2 resource? -- Dr. Michael Schwartzkopff Guardinistr.

[Pacemaker] custom resource-agent

2013-09-30 Thread Peter Romfeld
Hi, I am running a mysql-cluster in aws with pacemaker/drbd. I would like to run a script at failover to reassign the secondary IP for VIP. something like: primitive fvip ocf:heartbeat:AWSFIP \ params fvip="172.32.32.11" region="ap-southeast-1" colocation mysql_on_drbd inf: fvip mysql ms_drbd_my

Re: [Pacemaker] Private node IPs, public VIP and routing

2013-09-30 Thread Michael Schwartzkopff
Am Montag, 30. September 2013, 13:11:28 schrieb Dennis Jacobfeuerborn: > Hi, > I am in the process of setting up a redundant NFS storage system and I'm > wondering how to best manage the systems/IPs. > The goal is that the nodes each get an IP in a management VLAN and the > primary nodes gets a pub

[Pacemaker] Private node IPs, public VIP and routing

2013-09-30 Thread Dennis Jacobfeuerborn
Hi, I am in the process of setting up a redundant NFS storage system and I'm wondering how to best manage the systems/IPs. The goal is that the nodes each get an IP in a management VLAN and the primary nodes gets a public VIP in a public facing VLAN in order to not have to allocate three public