OCF_HEARTBEAT_LXD-I(7)

πŸ’– ocf_heartbeat_lxd-info β€” the glow-up edition πŸ’–

okay bestie, sit down, hydrate, and let me tell you about this lil manpage from the OCF_HEARTBEAT_LXD-I(7) set. it's giving cluster magic, and you're gonna eat it up. πŸ“


✨ NAME ✨

ocf_heartbeat_lxd-info β€” she Records various node attributes in the CIB. that's the whole job. she's a notetaker and she's iconic for it. πŸ’…


✨ SYNOPSIS ✨

lxd-info [start | stop | monitor | meta-data | validate-all]

like, pick one of those five actions, queen. that's the whole vibe check. 🌈


✨ DESCRIPTION ✨

so this is a LXD Registration Service Resource Agent. what does that mean fr fr? it means she records β€” in the CIB β€” attributes about how many running LXD containers are chilling on the node. 🫢

sample output so you know what the tea looks like:

lxd_containers: 5

no cap, that's it. five containers. recorded. slay. ✨


✨ SUPPORTED PARAMETERS ✨

two (2) params, both optional, both cute:

  • pidfile β€” the PID file. like, where the pid lives. (optional, string, default "/run/resource-agents/LXDInfo-RESOURCE_ID")
  • delay β€” the interval to allow values to stabilize. giving her a sec to breathe before we judge the numbers. (optional, string, default "0s")

✨ SUPPORTED ACTIONS ✨

this resource agent supports the following actions (operations), and honestly, she supports all of them:

  • start β€” starts the resource. suggested minimum timeout: 20s.
  • stop β€” stops the resource. suggested minimum timeout: 20s.
  • monitor β€” performs a detailed status check. suggested minimum timeout: 20s. suggested interval: 60s. she's checking on you every minute, that's love. πŸ‘‘
  • meta-data β€” retrieves resource agent metadata (internal use only, bestie, don't touch, it's giving backstage pass). suggested minimum timeout: 5s.
  • validate-all β€” performs a validation of the resource configuration. suggested minimum timeout: 20s.

✨ EXAMPLE CRM SHELL ✨

here's an example config for a lxd-info resource using the crm(8) shell. copy it, don't fight it:

primitive p_lxd-info ocf:heartbeat:lxd-info \
  op monitor timeout="20s" interval="60s"

✨ EXAMPLE PCS ✨

and here's the same energy for pcs(8), because we contain multitudes:

pcs resource create p_lxd-info ocf:heartbeat:lxd-info \
  op monitor timeout="20s" interval="60s"

✨ SEE ALSO ✨


✨ AUTHOR ✨

ClusterLabs contributors (see the resource agent source for information about individual authors). we don't know exactly who, but they ate. πŸ’œ


πŸ’€ reminder: meta-data is internal use only. i said what i said.

resource-agents UNKNOWN β€” 04/08/2026 πŸŽ€

and that's the whole page, bestie!! resource-agents version UNKNOWN, dated 04/08/2026, page OCF_HEARTBEAT_LXD-I(7). go forth and register those containers. periodt. πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from