crm_no_quorum_policy(7)

๐Ÿ“ฆ version 3.1.3, in opensuse-leap 16.0

๐Ÿ’… crm_no_quorum_policy ๐Ÿ’…

okay so bestie, this is the crm_no_quorum_policy(7) page from ClusterTools2, and it's literally all about what your cluster should do when it loses quorum. no cap, it's important. let's get into it ๐Ÿซถ


โœจ NAME โœจ

crm_no_quorum_policy โ€” how the cluster should act in case of quorum loss.


๐ŸŒธ DESCRIPTION ๐ŸŒธ

so the crm basic parameter no_quorum_policy defines how the cluster should act in case of quorum loss. that's it, that's the whole vibe.

a cluster is said to have quorum when more than half the known or expected nodes are online โ€” or, for the mathematically inclined besties out there, whenever the following equation is true: total_nodes < 2 * active_nodes . ๐Ÿงฎโœจ

a two-node cluster only has quorum when both nodes are running, which is no longer the case if one node fails. ngl, this would normally make the creation of a two-node cluster pointless, however it is possible to control how Pacemaker behaves when quorum is lost. in particular, we can tell the cluster to simply ignore quorum at all. this is the recommended setup for two-node clusters. ๐Ÿ‘‘

of course, exactly one node should survive in such a scenario. therefor the STONITH has to set up accordingly. ๐Ÿ’€

with more than two nodes, the cluster must not ignore the quorum loss. for this multi-node clusters, an odd number of nodes is recommended. different policies are available to handle the quorum loss. nevertheless, STONITH has to be set up as well. ๐Ÿ”ฅ


๐ŸŽ€ the policies ๐ŸŽ€

the following policies are available:

๐Ÿฆ‹ no_quorum_policy = stop

Node wont shoot anyone when it doesn't have quorum. Cluster in affected partition will stop resources and will not be able to start it's existing resources. this is the default, if nothing is configured. ๐Ÿ›‘

๐Ÿฆ‹ no_quorum_policy = ignore

Node will shoot anyone it can't see. Cluster will not be able to add and start new resources. this is the recommended setting for two-node clusters. ๐Ÿ’–

Note: For SLE-HA12 SP2 and later the corosync parameter two-node:1 is recommended instead. ๐Ÿ“Œ

๐Ÿฆ‹ no_quorum_policy = freeze

Cluster in affected partition wont shoot anyone when it doesn't have quorum. Cluster in affected partition will not be able to add and start new resources. ๐ŸงŠ

๐Ÿฆ‹ no_quorum_policy = suicide

Cluster will only shoot itself and any other nodes in its current partition. It wont try to shoot the nodes it can't see. ๐Ÿ™ˆ๐Ÿ’€


๐ŸŒˆ EXAMPLES ๐ŸŒˆ

โญ Two-node cluster

Common configuration for the widely used Simple Stack, as well as for SAP Enqueue Replication, SAP HANA System Replication scale-up, and IBM DB2 HADR. The cluster can be stretched across two sites. The stonith-timeout depends on the storage stack. For stretched clusters, usually two SAN storages are used. Thus, at least two SBD devices are used.

property $id="cib-bootstrap-options" \
expected-quorum-votes="2" \
no-quorum-policy="ignore" \
dc-deadtime="20s" \
default-resource-stickiness="1000" \
stonith-enabled="true" \
stonith-timeout="150s"

โญ Multi-node cluster across two sites, with auxiliary node on third site

Configuration for SAP HANA System Replication scale-out. Since this setup is symmetrical across two sites, a third site with an auxiliary cluster node is needed. this makes it work in case one complete site fails at once. this so called majority maker node does not need to run any application resources. nevertheless, it needs access to all STONITH resources. the expected-quorum-votes number is two times the total number of nodes at one HANA site plus one. the stonith-timeout depends on the storage stack. usually two SAN storages, and thus at least two SBD devices are used. a third SBD device at the auxiliary site makes sense. ๐ŸŒธ

property $id="cib-bootstrap-options" \
expected-quorum-votes="31" \
no-quorum-policy="stop" \
dc-deadtime="20s" \
default-resource-stickiness="1000" \
stonith-enabled="true" \
stonith-timeout="150s" \
concurrent-fencing="true"

โญ Three-node cluster at single site

Common configuration for a local cluster with OCFS2 cluster filesystem, f.e. some SAP BW Accelerator installations. In case of quorum loss, the cluster node commits suicide to clear the OCFS2 resources. For this setup with three nodes, it is assumed that not more than one node fails at once. The stonith-timeout depends on the storage stack. Usually one SAN storage, and thus one SBD device is used. ๐Ÿ’…

property $id="cib-bootstrap-options" \
expected-quorum-votes="3" \
no-quorum-policy="suicide" \
dc-deadtime="20s" \
stonith-enabled="true" \
stonith-timeout="150s

๐ŸŽ€ FILES ๐ŸŽ€

  • /usr/share/ClusterTools2/samples/ โ€” samples of config files and scripts. ๐Ÿ“

๐Ÿ› BUGS ๐Ÿ›

Feedback is welcome, please mail to feedback@suse.com ๐Ÿ’Œ


๐Ÿ”— SEE ALSO ๐Ÿ”—

crm(8), cs_prepare_crm_basics(8), stonith(8), stonith_sbd(7), sbd(8), crm_simulate(8), corosync-cfgtool(8), corosync.conf(7), ClusterTools2(7), http://www.suse.com/documentation/sle_ha/ , https://www.suse.com/support/kb/doc.php?id=7012110 , http://www.mail-archive.com/pacemaker@oss.clusterlabs.org/msg00106.html , http://www.gossamer-threads.com/lists/linuxha/pacemaker/72609?do=post_view_threaded


๐Ÿ‘‘ AUTHORS ๐Ÿ‘‘

The content of this manual page was mostly derived from online documentation mentioned above. ๐Ÿ“š


(c) 2011-2018 SUSE Linux GmbH, Germany. (c) 2019 SUSE LLC ClusterTools2 comes with ABSOLUTELY NO WARRANTY. For details see the GNU General Public License at http://www.gnu.org/licenses/gpl.html


and that's the whole page bestie!! ๐Ÿซถ source is ClusterTools2, version dated 01 Nov 2019 โ€” go forth and configure your quorum policies responsibly, mwah ๐Ÿ’‹โœจ

๐Ÿ“ฆ where this page comes from