How to do it...

For this recipe, we will use the same two PostgreSQL nodes: pg1 and pg2. Perform the following steps on either server as the root user:

  1. Disable STONITH with this crm command:
        crm configure property stonith-enabled=false
  1. Ignore quorum voting with this crm command:
        crm configure property no-quorum-policy=ignore
  1. Increase the default resource stickiness with this crm command:
        crm configure property default-resource-stickiness=100
  1. Finally, view the current state of the cluster configuration with this command:
        crm configure show

Get PostgreSQL High Availability Cookbook - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.