Re: Postgres PAF setup

From: Adrien Nayrat <adrien(dot)nayrat(at)anayrat(dot)info>
To: Andrew Edenburn <andrew(dot)edenburn(at)gm(dot)com>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>, "users(at)clusterlabs(dot)org" <users(at)clusterlabs(dot)org>
Subject: Re: Postgres PAF setup
Date: 2018-04-24 08:15:56
Message-ID: 21a601ab-d103-d17e-7d2d-ad7d960d5bd1@anayrat.info
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 04/23/2018 08:09 PM, Andrew Edenburn wrote:
> I am having issues with my PAF setup.  I am new to Postgres and have setup the
> cluster as seen below. 
>
> I am getting this error when trying to start my cluster resources.
>
>  
>
> Master/Slave Set: pgsql-ha [pgsqld]
>
>      pgsqld     (ocf::heartbeat:pgsqlms):       FAILED dcmilphlum224 (unmanaged)
>
>      pgsqld     (ocf::heartbeat:pgsqlms):       FAILED dcmilphlum223 (unmanaged)
>
> pgsql-master-ip        (ocf::heartbeat:IPaddr2):       Started dcmilphlum223
>
>  
>
> Failed Actions:
>
> * pgsqld_stop_0 on dcmilphlum224 'unknown error' (1): call=239, status=complete,
> exitreason='Unexpected state for instance "pgsqld" (returned 1)',
>
>     last-rc-change='Mon Apr 23 13:11:17 2018', queued=0ms, exec=95ms
>
> * pgsqld_stop_0 on dcmilphlum223 'unknown error' (1): call=248, status=complete,
> exitreason='Unexpected state for instance "pgsqld" (returned 1)',
>
>     last-rc-change='Mon Apr 23 13:11:17 2018', queued=0ms, exec=89ms
>
>  
>
> cleanup and clear is not fixing any issues and I am not seeing anything in the
> logs.  Any help would be greatly appreciated.
>
>  

Hello Andrew,

Could you enable debug logs in Pacemaker?

With Centos you have to edit PCMK_debug variable in /etc/sysconfig/pacemaker :

PCMK_debug=crmd,pengine,lrmd

This should give you more information in logs. Monitor action in PAF should
report why the cluster doesn't start :
https://github.com/ClusterLabs/PAF/blob/master/script/pgsqlms#L1525

Regards,

--
Adrien NAYRAT

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alexander Farber 2018-04-24 08:32:55 Re: Adding AVG to a JOIN
Previous Message Adrian Klaver 2018-04-24 04:10:35 Re: Strange error in Windows 10 Pro