Hi jarek

Do you use pgsql RA with Master/Slave setting ?
I recommend you to stop slave node's pacemaker at first
because pgsql RA removes PGSQL.lock automatically if the node is
master and there is no slaves.

Stop procedure
  1. stop slave node      -> suppose nodeB
  2. stop master node (PGSQL.lock file is removed)  -> suppose nodeA

Start procedure
  3. start the nodeA because it has the newest data.
  4. start the nodeB

If PGSQL.lock exists, the data may be inconsistent.
See http://www.slideshare.net/takmatsuo/2012929-pg-study-16012253  (P36, P37)

Thanks,
Taktoshi MATSUO

2014-05-20 16:37 GMT+09:00 jarek <[email protected]>:
> Hello!
>
>         I have pacemaker/corosync cluster with postgres. Generally it works
> fine, but I don't know how to perform proper shutdown of this cluster so
> it will come back to normal operation after start.
>         For now, after restart I need to remove PGSQL.lock and perform
> crm resource cleanup msPostgresql on slave to make it work again.
>
> best regards
> jarek
>
>
> _______________________________________________
> Linux-HA mailing list
> [email protected]
> http://lists.linux-ha.org/mailman/listinfo/linux-ha
> See also: http://linux-ha.org/ReportingProblems
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to