[Pacemaker] Running remote SSH commands on another server?

Andrew Beekhof andrew at beekhof.net
Thu Feb 6 23:02:36 EST 2014

On 31 Jan 2014, at 2:15 am, Michael Monette <mmonette at 2keys.ca> wrote:

> Hello,
> I am coming up short in my searches, but I don't know exactly what I am searching for, hoping someone could point me in the right direction.
> I have Pacemaker setup in active/passive on my Email server. The systems are in sync using DRBD.
> When there is a failure on node-1, everything fails over to node-2 and vice versa. Everything actually works great. 
> I have the mail servers sitting behind a proxy, which is also the MTA. The problem is, whenever the mailstores failover, there is a persistent connection going from the Proxy -> Mailstore that breaks, and any incoming/outgoing mail cannot be delivered even though the email server is back up. To fix this, I need to SSH into the proxy and restart the proxy services to re-establish that persistent connection. 

You could create a new resource (script + definition in pacemaker) which does the ssh part in it start action (and set up a constraint the forces the new resource to restart when the MTA does).
Or you could bring the proxy into the cluster and have the proxy services managed by pacemaker.

> Is there any way to include this as part of the failover in PaceMaker?
> Something like:
> <**Failure occured on mail-1**>
> mount DRBD resources on mail-2
> Assign the failover-ip to mail-2
> Start the email server on mail-2
> SSH into the proxy and restart the proxy service (From mail-2 using keys)
> I am researching ways within the application itself to fix this problem, but no luck yet. 
> Thanks for any help,
> Mike
> _______________________________________________
> Pacemaker mailing list: Pacemaker at oss.clusterlabs.org
> http://oss.clusterlabs.org/mailman/listinfo/pacemaker
> Project Home: http://www.clusterlabs.org
> Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
> Bugs: http://bugs.clusterlabs.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 841 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.clusterlabs.org/pipermail/pacemaker/attachments/20140207/4be499eb/attachment-0002.sig>

More information about the Pacemaker mailing list