[Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-16 Thread Attila Megyeri
Hi All, We have a two-node postgresql 9.1 system configured using streaming replicaiton (active/active with a read-only slave). We want to automate the failover process and I couldn't really find a resource agent that could do the job. All HA solutions for postgresql I have seen are based on a

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-12-12 Thread Takatoshi MATSUO
Hello 2011/12/12 Serge Dubrouski : > > > On Thu, Dec 8, 2011 at 10:34 PM, Takatoshi MATSUO > wrote: >> >> Hi Attila >> >> 2011/12/8 Attila Megyeri : >> > Hi Takatoshi, >> > >> > One strange thing I noticed and could probably be improved. >> > When there is data inconsistency, I have the following

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-12-12 Thread Serge Dubrouski
On Mon, Dec 12, 2011 at 5:32 AM, Takatoshi MATSUO wrote: > Hello > > 2011/12/12 Serge Dubrouski : > > > > > > On Thu, Dec 8, 2011 at 10:34 PM, Takatoshi MATSUO > > wrote: > >> > >> Hi Attila > >> > >> 2011/12/8 Attila Megyeri : > >> > Hi Takatoshi, > >> > > >> > One strange thing I noticed and co

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-12-13 Thread Takatoshi MATSUO
Hello Serge 2011/12/13 Serge Dubrouski : > > > On Mon, Dec 12, 2011 at 5:32 AM, Takatoshi MATSUO > wrote: >> >> Hello >> >> 2011/12/12 Serge Dubrouski : >> > >> > >> > On Thu, Dec 8, 2011 at 10:34 PM, Takatoshi MATSUO >> > wrote: >> >> >> >> Hi Attila >> >> >> >> 2011/12/8 Attila Megyeri : >> >>

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-16 Thread Florian Haas
Hi Attila, On 2011-11-16 10:27, Attila Megyeri wrote: > Hi All, > > > > We have a two-node postgresql 9.1 system configured using streaming > replicaiton(active/active with a read-only slave). > > We want to automate the failover process and I couldn’t really find a > resource agent that coul

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-16 Thread Attila Megyeri
Hi Florian, -Original Message- From: Florian Haas [mailto:flor...@hastexo.com] Sent: 2011. november 16. 11:49 To: The Pacemaker cluster resource manager Subject: Re: [Pacemaker] Postgresql streaming replication failover - RA needed Hi Attila, On 2011-11-16 10:27, Attila Megyeri wrote

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-16 Thread Serge Dubrouski
On Wed, Nov 16, 2011 at 12:55 PM, Attila Megyeri wrote: > Hi Florian, > > -Original Message- > From: Florian Haas [mailto:flor...@hastexo.com] > Sent: 2011. november 16. 11:49 > To: The Pacemaker cluster resource manager > Subject: Re: [Pacemaker] Postgresql streaming

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-16 Thread Takatoshi MATSUO
nager >> Subject: Re: [Pacemaker] Postgresql streaming replication failover - RA >> needed >> >> Hi Attila, >> >> On 2011-11-16 10:27, Attila Megyeri wrote: >> > Hi All, >> > >> > >> > >> > We have a two-node postgresql 9

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-23 Thread Attila Megyeri
t;rsc_location-2-rule-2" $role="master" -inf: defined fail-count-vip-rep \ rule $id="rsc_location-2-rule-3" -inf: not_defined default_ping_set or default_ping_set lt 100 colocation rsc_colocation-1 inf: msPostgresql clnPingCheck colocation rsc_colocation-2 inf:

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-25 Thread Takatoshi MATSUO
Hi Attila 2011/11/24 Attila Megyeri : > Hi Takatoshi, All, > > Thanks for your reply. > I see that you have invested significant effort in the development of the RA. > I spent the last day trying to set up the RA, but without much success. > > My infrastructure is very similar to yours, except fo

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-25 Thread Attila Megyeri
: The Pacemaker cluster resource manager Subject: Re: [Pacemaker] Postgresql streaming replication failover - RA needed Hi Attila 2011/11/24 Attila Megyeri : > Hi Takatoshi, All, > > Thanks for your reply. > I see that you have invested significant effort in the development of the RA.

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-25 Thread Attila Megyeri
m] Sent: 2011. november 25. 8:56 To: The Pacemaker cluster resource manager Subject: Re: [Pacemaker] Postgresql streaming replication failover - RA needed Hi Attila 2011/11/24 Attila Megyeri : > Hi Takatoshi, All, > > Thanks for your reply. > I see that you have invested significant effor

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-25 Thread Yoshiharu Mori
r 25. 9:28 > To: The Pacemaker cluster resource manager > Subject: Re: [Pacemaker] Postgresql streaming replication failover - RA needed > > Hi Takatoshi, > > I have restored the PSQL to run without corosync so I cannot send you the > crm_mon output now. > > What I ca

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-25 Thread Attila Megyeri
Hi Yoshiharu, -Original Message- From: Yoshiharu Mori [mailto:y-m...@sraoss.co.jp] Sent: 2011. november 25. 14:17 To: The Pacemaker cluster resource manager Cc: Attila Megyeri Subject: Re: [Pacemaker] Postgresql streaming replication failover - RA needed Hi Attila > A quick snip

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-26 Thread Attila Megyeri
is running as a hot standby. Any help is appreciated! Regards, Attila -Original Message- From: Yoshiharu Mori [mailto:y-m...@sraoss.co.jp] Sent: 2011. november 25. 14:17 To: The Pacemaker cluster resource manager Cc: Attila Megyeri Subject: Re: [Pacemaker] Postgresql streaming rep

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-26 Thread Takatoshi MATSUO
ion : > 1900 > Nov 26 13:36:33 psql1 pgsql[20176]: INFO: psql2 xlog location : > 1900 > Nov 26 13:36:41 psql1 pgsql[20343]: DEBUG: PostgreSQL is running as a hot > standby. > > > Any help is appreciated! > > Regards, > Attila > > >

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-26 Thread Attila Megyeri
: Takatoshi MATSUO [mailto:matsuo@gmail.com] Sent: 2011. november 26. 18:27 To: The Pacemaker cluster resource manager Subject: Re: [Pacemaker] Postgresql streaming replication failover - RA needed Hi Attila 1. Are there /var/lib/pgsql/xlog_note.0 , xlog_note.1, xlog_note.2 files? These

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-26 Thread Takatoshi MATSUO
gt;> Nov 23 05:43:05 psql1 pgsql[2845]: INFO: psql1 xlog location : >>> 0D00 Nov 23 05:43:05 psql1 pgsql[2845]: INFO: psql2 xlog >>> location : 00000800 >>> >>> As you see, the "my data status" returns an empty string. >> >&g

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-27 Thread Attila Megyeri
Pacemaker cluster resource manager Subject: Re: [Pacemaker] Postgresql streaming replication failover - RA needed Hi Attila 2011/11/27 Attila Megyeri : > Hi Takatoshi, > > Thank you for coming back to me so quickly. > > In the /var/lib/pgsql there are the following files: > > PSQL1:

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-27 Thread Takatoshi MATSUO
>> created that directory and i keep some of the files there. > > It's no ploblem. > If you want to change this path, please specify it using "tmpdir" parameter. > > Regards, > Takatoshi MATSUO > >> >> Thanks, >> Attila >> >&g

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-27 Thread Attila Megyeri
[mailto:matsuo@gmail.com] Sent: 2011. november 27. 11:07 To: The Pacemaker cluster resource manager Subject: Re: [Pacemaker] Postgresql streaming replication failover - RA needed Hi Attila 2011/11/27 Attila Megyeri : > Hi Takatoshi, > > You were right, changing the shell to bash resolved t

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-27 Thread Takatoshi MATSUO
ov 27 16:03:27 psql1 pgsql[12204]: ERROR: My data is inconsistent. > Nov 27 16:03:27 psql1 pgsql[12339]: DEBUG: notify: post for start > Nov 27 16:03:27 psql1 pgsql[12373]: DEBUG: notify: pre for stop > Nov 27 16:03:27 psql1 pgsql[12407]: INFO: PostgreSQL is already stopped. > > > Tha

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-28 Thread Attila Megyeri
2300 Nov 27 16:03:27 psql1 > pgsql[12204]: ERROR: My data is inconsistent. > Nov 27 16:03:27 psql1 pgsql[12339]: DEBUG: notify: post for start Nov > 27 16:03:27 psql1 pgsql[12373]: DEBUG: notify: pre for stop Nov 27 > 16:03:27 psql1 pgsql[12407]: INFO: PostgreSQL is already st

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-11-28 Thread Takatoshi MATSUO
t at all. Don't mention it. Regards, Takatoshi MATSUO > Bests, > > Attil > > -Original Message- > From: Takatoshi MATSUO [mailto:matsuo@gmail.com] > Sent: 2011. november 28. 2:10 > To: The Pacemaker cluster resource manager > Subject: Re: [Pacemaker] Post

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-12-08 Thread Attila Megyeri
ATSUO [mailto:matsuo@gmail.com] Sent: 2011. november 28. 11:10 To: The Pacemaker cluster resource manager Subject: Re: [Pacemaker] Postgresql streaming replication failover - RA needed Hi Attila 2011/11/28 Attila Megyeri : > Hi Takatoshi, > > I understand your point and I agree that the correct b

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-12-08 Thread Takatoshi MATSUO
Hi Attila 2011/12/8 Attila Megyeri : > Hi Takatoshi, > > One strange thing I noticed and could probably be improved. > When there is data inconsistency, I have the following node properties: > > * Node psql2: >+ default_ping_set : 100 >+ master-postgresql:1 :

Re: [Pacemaker] Postgresql streaming replication failover - RA needed

2011-12-11 Thread Serge Dubrouski
On Thu, Dec 8, 2011 at 10:34 PM, Takatoshi MATSUO wrote: > Hi Attila > > 2011/12/8 Attila Megyeri : > > Hi Takatoshi, > > > > One strange thing I noticed and could probably be improved. > > When there is data inconsistency, I have the following node properties: > > > > * Node psql2: > >+ defau