OCF_HEARTBEAT_COROSY(7)
π ocf_heartbeat_corosync-qnetd π
okay so bestie, you're looking at the manual page for OCF_HEARTBEAT_COROSY(7) β yes that's the trunc-y one, the real star of the show is ocf_heartbeat_corosync-qnetd and I promise this is gonna be so much easier than it looks π«Ά
β¨ NAME β¨
ocf_heartbeat_corosync-qnetd β the Corosync QNet daemon resource agent. that's it, that's the whole vibe π
πΈ SYNOPSIS πΈ
corosync-qnetd [start | stop | status | monitor | meta-data |
validate-all]
π¦ DESCRIPTION π¦
So this is the OCF Resource script for corosync-qnetd, and honestly it's giving very much "let me manage your daemon for you" energy β¨ It manages a corosync-qnetd instance as a HA resource. Iconic, we love a resource agent that knows its job.
β οΈ okay bestie this is the important bit, do NOT skip it: you have to copy the nss db directory (usually /etc/corosync/qnetd/nssdb) across all nodes. Only once though β after database is initialized. Not before, not every time. Once. We're being so serious about this. π«‘
π SUPPORTED PARAMETERS π
like twelve of them, all adorable, all optional, let's go:
binaryβ where thecorosync-qnetdbinary lives. (optional, string, default"/usr/bin/corosync-qnetd") πqnetd_optsβ extra options you wanna throw at thecorosync-qnetdbinary."-4"for example, if that's your vibe. (optional, string, no default)qnetd_tool_binaryβ the absolute path tocorosync-qnetd-tool, which it uses for monitoring whenOCF_CHECK_LEVELis greater than zero. (optional, string, default"/usr/bin/corosync-qnetd-tool") πipβ the IP address to listen on. by default the daemon just listens on all addresses (wildcard), which is lowkey the main character energy of networking. (optional, string, no default)portβ which TCP port to listen on. default port is5403. remember that number, it's cute. (optional, string, no default)nss_db_dirβ location of thecorosync-qnetdnss db directory. leave it empty for the default β usually/etc/corosync/qnetd/nssdb. (optional, string, no default)pidβ location of thecorosync-qnetdpid/lock. (optional, string, default"/var/run/corosync-qnetd/corosync-qnetd-RESOURCE_ID.pid") πipc_sockβ location of thecorosync-qnetdipc socket. (optional, string, default"/var/run/corosync-qnetd/corosync-qnetd-RESOURCE_ID.sock") πΈuserβ the user runningcorosync-qnetd. (optional, string, default"coroqnetd")groupβ the group runningcorosync-qnetd. (optional, string, default"coroqnetd") π«Ά
β SUPPORTED ACTIONS β
This resource agent supports the following actions (operations) β yes there's a whole little family of them:
startβ starts the resource. Suggested minimum timeout:20s. πstopβ stops the resource. Suggested minimum timeout:20s.statusβ performs a status check. Suggested minimum timeout:20s.monitorβ performs a detailed status check, she's thorough. Suggested minimum timeout:20s. Suggested interval:10s. πvalidate-allβ performs a validation of the resource configuration. Suggested minimum timeout:20s.meta-dataβ retrieves resource agent metadata. internal use only bestie, don't touch. Suggested minimum timeout:20s.
π§ EXAMPLE CRM SHELL π§
Here's a lil example config for a corosync-qnetd resource using the crm(8) shell β copy it, it's right there:
primitive p_corosync-qnetd ocf:heartbeat:corosync-qnetd \
op monitor depth="0" timeout="20s" interval="10s" start-delay="10s"
π₯ EXAMPLE PCS π₯
and here's the same energy for a corosync-qnetd resource using pcs(8):
pcs resource create p_corosync-qnetd ocf:heartbeat:corosync-qnetd \
op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="10s" start-delay="10s"
π bestie notice thedepthvsOCF_CHECK_LEVELsituation β they are not the same key, so don't go swapping them, iykyk.
π SEE ALSO π
http://clusterlabs.org/β go look, it's iconic π
π AUTHOR π
ClusterLabs contributors (see the resource agent source for information about individual authors). shoutout to the whole squad fr fr π
mwah, that's the page π this lil beauty comes from resource-agents and its version is literally UNKNOWN (no cap, that's what it says) and it's dated 10/01/2026 β so take that timestamp, screenshot it, frame it, and go slay your cluster setup bestie ππβ¨
π¦ where this page comes from
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms