crm_no_quorum_policy(7)
๐ 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. ๐
๐ COPYRIGHT ๐
(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
- opensuse-leap 16.0: ClusterTools2 3.1.3-160000.2.2 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms