---
name: "ocf_heartbeat_corosync-qnetd"
section: "7"
platform: "linux"
package: "resource-agents"
version: "1:4.16.0-3+deb13u2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/ocf_heartbeat_corosync-qnetd"
---

# ocf\_heartbeat\_corosync-qnetd(7)

Corosync QNet daemon resource agent

## NAME

ocf\_heartbeat\_corosync-qnetd - Corosync QNet daemon resource agent

## SYNOPSIS

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

## 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).

## 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")

## 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.

## EXAMPLE CRM SHELL

The following is an example configuration for a corosync-qnetd resource using the [**crm**(8)](/crm/8.md) 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/8.md)

```
pcs resource create p_corosync-qnetd ocf:heartbeat:corosync-qnetd \
  op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="10s" start-delay="10s"
```

## SEE ALSO

**http://clusterlabs.org/**

## AUTHOR

**ClusterLabs contributors (see the resource agent source for information about individual authors)**
