Re: [Linux-HA] postfix recover failed.

2009-11-10 Thread Dejan Muhamedagic
Hi, On Tue, Nov 10, 2009 at 09:45:52AM +0700, Dinh N. Quoc wrote: Thanks you all for pointing me out and here is my workaround, it seems to be working -- just needs a few lines to check the status of postfix before doing stop command. Are there any better ideas? ---

Re: [Linux-HA] postfix recover failed.

2009-11-10 Thread Dimitri Maziuk
On Tuesday 10 November 2009 03:57:25 Dejan Muhamedagic wrote: Hi, The patch looks fine to me. Looks like /usr/sbin/postfix can't handle this itself. Raoul: Is that actually expected? Why not: if postfix stop fails to stop postfix for whatever reason, it should return a non-zero value. Note

Re: [Linux-HA] postfix recover failed.

2009-11-10 Thread Dejan Muhamedagic
Hi, On Tue, Nov 10, 2009 at 11:54:40AM -0600, Dimitri Maziuk wrote: On Tuesday 10 November 2009 03:57:25 Dejan Muhamedagic wrote: Hi, The patch looks fine to me. Looks like /usr/sbin/postfix can't handle this itself. Raoul: Is that actually expected? Why not: if postfix stop fails to

[Linux-HA] postfix recover failed.

2009-11-09 Thread Dinh N. Quoc
I am trying to setup drbd + pacemaker/openais + postfix. Services started OK, failover..OK.. but when trying to stop postfix service manually(postfix stop command) of kill postfix service, then postfix cluster resource failed completely. I though it has to be recovered from dead status. Pls give

Re: [Linux-HA] postfix recover failed.

2009-11-09 Thread Dejan Muhamedagic
Hi, On Mon, Nov 09, 2009 at 04:43:23PM +0700, Dinh N. Quoc wrote: I am trying to setup drbd + pacemaker/openais + postfix. Services started OK, failover..OK.. but when trying to stop postfix service manually(postfix stop command) of kill postfix service, then postfix cluster resource failed

Re: [Linux-HA] postfix recover failed.

2009-11-09 Thread Dimitri Maziuk
On Monday 09 November 2009 07:00:42 Dejan Muhamedagic wrote: It would, but the stop action failed: Nov 9 11:07:12 Server1 lrmd: [4682]: info: RA output: (Postfix:stop:stderr) 2009/11/09_11:07:12 ERROR: Postfix returned an error while stopping. 1 This error comes from /usr/sbin/postfix.

Re: [Linux-HA] postfix recover failed.

2009-11-09 Thread Tim Serong
On 11/10/2009 at 04:56 AM, Dimitri Maziuk dmaz...@bmrb.wisc.edu wrote: On Monday 09 November 2009 07:00:42 Dejan Muhamedagic wrote: It would, but the stop action failed: Nov 9 11:07:12 Server1 lrmd: [4682]: info: RA output: (Postfix:stop:stderr) 2009/11/09_11:07:12 ERROR: Postfix

Re: [Linux-HA] postfix recover failed.

2009-11-09 Thread Dinh N. Quoc
Thanks you all for pointing me out and here is my workaround, it seems to be working -- just needs a few lines to check the status of postfix before doing stop command. Are there any better ideas? --- Cluster-Resource-Agents-5f09e3bd7e20/heartbeat/postfix 2009-08-14 17:32:33.0 +0700 +++