Thank you, Rorthais, I read the link and it is very helpful.
There are some issues that I have met when I installed the cluster. 1. “pcs cluster stop” could not stop the cluster in some times. 2. when I upgrade the PAF, I could just replace the pgsqlms file. When I upgrade the postgres, I just replace the /usr/local/pgsql/. 3. If the cluster does not stop normally, the pgcontroldata status is not "SHUTDOWN",then the PAF would not start the postgresql any more, so I normally change the pgsqlms as below after installing the PAF. elsif ( $pgisready_rc == 2 ) { # The instance is not listening. # We check the process status using pg_ctl status and check # if it was propertly shut down using pg_controldata. ocf_log( 'debug', 'pgsql_monitor: instance "%s" is not listening', $OCF_RESOURCE_INSTANCE ); return _confirm_stopped(); ####### remove this line return $OCF_NOT_RUNNING; ####### add this line } -----邮件原件----- 发件人: Jehan-Guillaume de Rorthais [mailto:j...@dalibo.com] 发送时间: 2018年3月6日 17:08 收件人: 范国腾 <fanguot...@highgo.com> 抄送: Cluster Labs - All topics related to open-source clustering welcomed <users@clusterlabs.org> 主题: Re: [ClusterLabs] 答复: 答复: 答复: How to configure to make each slave resource has one VIP Hi guys, Few month ago, I started a new chapter about this exact subject for "PAF - Cluster administration under CentOS" ( see: https://clusterlabs.github.io/PAF/CentOS-7-admin-cookbook.html) Please, find attach my draft. All feedback, fix, comments and intensive tests are welcome! _______________________________________________ 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