Hi,
I am using PAF too. You could read the 
/usr/lib/ocf/resource.d/heartbeat/pgsqlms file to find what pgsql command is 
called.

For example, pacemaker start ->pg_ctl start, pacemaker monitor->pg_isready.

Thanks
Steven

-----邮件原件-----
发件人: Users [mailto:users-boun...@clusterlabs.org] 代表 Casey & Gina
发送时间: 2018年4月7日 6:46
收件人: Cluster Labs - All topics related to open-source clustering welcomed 
<users@clusterlabs.org>
主题: Re: [ClusterLabs] Trouble starting up PAF cluster for first time

It looks like the main problem was that I needed to add 
pghost="/var/run/postgresql" to the postgresql-10-main resource.  I'm not sure 
why I have to do that, but it makes things work.

For both this and my last E-mail to the list that was also a problem with the 
command being run to start the instance up, I'd like to understand how to 
diagnose what's happening better myself instead of resorting to guesswork.

How can I tell exactly what the command is that Pacemaker ends up calling to 
start PostgreSQL?  I don't see it in corosync.log.  If I could see exactly what 
was being tried, I could try running it by hand and determine the problem 
myself a lot more effectively.

Best wishes,
--
Casey
_______________________________________________
Users mailing list: Users@clusterlabs.org 
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org Getting started: 
http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org
_______________________________________________
Users mailing list: Users@clusterlabs.org
https://lists.clusterlabs.org/mailman/listinfo/users

Project Home: http://www.clusterlabs.org
Getting started: http://www.clusterlabs.org/doc/Cluster_from_Scratch.pdf
Bugs: http://bugs.clusterlabs.org

Reply via email to