logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

ocf_heartbeat_corosync-qnetd - Corosync QNet daemon resource agent

Author

ClusterLabscontributors(seetheresourceagentsourceforinformationaboutindividualauthors) resource-agents 4.16.0-3ubuntu 06/25/2025 OCF_HEARTBEAT_COROSY(7)

Description

OCF Resource script for corosync-qnetd. It manages a corosync-qnetd instance as a HA resource. It is required to copy nss db directory (usually /etc/corosync/qnetd/nssdb) across all nodes (only once - after database is initialized).

Example Crm Shell

The following is an example configuration for a corosync-qnetd resource using the crm(8) shell: primitive p_corosync-qnetd ocf:heartbeat:corosync-qnetd \ op monitor depth="0" timeout="20s" interval="10s" start-delay="10s"

Example Pcs

The following is an example configuration 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"

Name

ocf_heartbeat_corosync-qnetd - Corosync QNet daemon resource agent

See Also

Supported Actions

This resource agent supports the following actions (operations): 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. 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). Suggested minimum timeout: 20s.

Supported Parameters

binary Location of the corosync-qnetd binary (optional, string, default "/usr/bin/corosync-qnetd") qnetd_opts Additional options for corosync-qnetd binary. "-4" for example. (optional, string, no default) qnetd_tool_binary The absolute path to the corosync-qnetd-tool for monitoring with OCF_CHECK_LEVEL greater zero. (optional, string, default "/usr/bin/corosync-qnetd-tool") ip IP address to listen on. By default the daemon listens on all addresses (wildcard). (optional, string, no default) port TCP port to listen on. Default port is 5403. (optional, string, no default) nss_db_dir Location of the corosync-qnetd nss db directory (empty for default - usually /etc/corosync/qnetd/nssdb) (optional, string, no default) pid Location of the corosync-qnetd pid/lock (optional, string, default "/var/run/corosync-qnetd/corosync-qnetd-RESOURCE_ID.pid") ipc_sock Location of the corosync-qnetd ipc socket (optional, string, default "/var/run/corosync-qnetd/corosync-qnetd-RESOURCE_ID.sock") user User running corosync-qnetd (optional, string, default "coroqnetd") group Group running corosync-qnetd (optional, string, default "coroqnetd")

Synopsis

corosync-qnetd [start | stop | status | monitor | meta-data | validate-all]

See Also