PACEMAKER(8)
π PACEMAKER (section 8, the System Administration Utilities manual, bestie) π
okay so first things first: Pacemaker is part of the Pacemaker cluster resource manager, and this page is all about the fencing side of it. section 8 manual, system administration utilities, we're in the grown-up section of the man pages and honestly? slay.
β¨ SYNOPSIS β¨
stonith_admin <command> [<options>]
that's it. that's the whole shape of it. a command, then options. you got this π
πΈ DESCRIPTION πΈ
stonith_admin β it gives you access to the Pacemaker fencing API. fencing! the thing that shuts a node down when it's misbehaving. iconic, scary, necessary. no cap. π₯
π OPTIONS π
π«Ά Help Options:
-?,--helpβ show help options--help-allβ show all the help options--help-outputβ show output help--help-definitionβ show device definition help--help-queriesβ show query help--help-fenceβ show fence help--help-additionalβ show additional options
like, there's a help flag for every mood. pick your vibe π
π Output Options:
--output-as=*FORMATβ specify output format as one of:text(default),html,xml--output-to=*DESTβ specify file name for output (or-for stdout)--html-cgiβ add CGI headers (requires--output-as=html)--html-stylesheet=*URIβ link to an external stylesheet (requires--output-as=html)--html-title=*TITLEβ specify a page title (requires--output-as=html)
β¨ the three--html-*ones literally will not work unless you set--output-as=html. don't come for me, that's just the rules π
π¦ Device Definition Commands:
-R,--register=*DEVICEβ register the named fencing device. Requires:--agent. Optional:--option,--env-option.-D,--deregister=*DEVICEβ de-register the named fencing device.-r,--register-level=*TARGETβ register a fencing level for the named target, specified as one ofNAME,@PATTERN, orATTR=VALUE. Requires:--indexand one or more--deviceentries.-d,--deregister-level=*TARGETβ unregister a fencing level for the named target, specified as for--register-level. Requires:--index
π§ Queries:
-l,--list=*HOSTβ list devices that can terminate the specified host. Optional:--timeout-L,--list-registeredβ list all registered devices. Optional:--timeout.-I,--list-installedβ list all installed devices. Optional:--timeout.-s,--list-targets=*DEVICEβ list the targets that can be fenced by the named device. Optional:--timeout.-M,--metadataβ show agent metadata. Requires:--agent. Optional:--timeout.-Q,--query=*DEVICEβ check the named device's status. Optional:--timeout.-H,--history=*NODEβ show last successful fencing operation for named node (or*for all nodes). Optional:--timeout,--cleanup,--quiet(show only the operation's epoch timestamp),--verbose(show all recorded and pending operations),--broadcast(update history from all nodes available).-h,--last=*NODEβ indicate when the named node was last fenced. Optional:--as-node-id.-K,--validateβ validate a fence device configuration. Requires:--agent. Optional:--option,--env-option,--quiet(print no output, only return status).
π₯ Fencing Commands:
-F,--fence=*HOSTβ fence named host. Optional:--timeout,--tolerance,--delay.-U,--unfence=*HOSTβ unfence named host. Optional:--timeout,--tolerance,--delay.-B,--reboot=*HOSTβ reboot named host. Optional:--timeout,--tolerance,--delay.-C,--confirm=*HOSTβ tell cluster that named host is now safely down.
π these are the actually do the thing commands.--fenceand--rebootare not a drill, bestie. main character energy but in a "please read twice" way.
π Additional Options:
-c,--cleanupβ cleanup wherever appropriate. Requires--history.-b,--broadcastβ broadcast wherever appropriate.-a,--agent=*AGENTβ the agent to use (for example,fence_xvm; with--register,--metadata,--validate).-o,--option=*PARAMβ specify a device configuration parameter asNAME=VALUE(may be specified multiple times; with--register,--validate).-e,--env-option=*PARAMβ specify a device configuration parameter with the specified name, using the value of the environment variable of the same name prefixed withOCF_RESKEY_(may be specified multiple times; with--register,--validate).-T,--tag=*TAGβ identify fencing operations in logs with the specified tag; useful when multiple entities might invokestonith_admin(used with most commands).-v,--device=*DEVICEβ device ID (with--register-level, device to associate with a given host and level; may be specified multiple times) (with--validate, name to use to load CIB secrets).-i,--index=*LEVELβ the fencing level (1-9) (with--register-level,--deregister-level).-t,--timeout=*SECONDSβ operation timeout in seconds (default120; used with most commands).-y,--delay=*SECONDSβ apply a fencing delay in seconds. Any static/random delays frompcmk_delay_base/maxwill be added, otherwise all disabled with the value-1(default0; with--fence,--reboot,--unfence).-n,--as-node-idβ (Advanced) the supplied node is the corosync node ID (with--last).--tolerance=*SECONDSβ (Advanced) do nothing if an equivalent--fencerequest succeeded less than this many seconds earlier (with--fence,--unfence,--reboot).
β Application Options:
-$,--versionβ display software version and exit-V,--verboseβ increase debug output (may be specified multiple times)-q,--quietβ be less descriptive in output.
π AUTHOR π
written by Andrew Beekhof and the Pacemaker project contributors. legends, fr fr π«Ά
π REPORTING BUGS π
found a bug? report it here, they actually want to hear it:
https://bugs.clusterlabs.org/enter_bug.cgi?product=Pacemaker
π¦ random aside: some of these flags are marked (Advanced) and honestly that's your sign to read them twice before yeeting them into a production cluster. iykyk π
and that's the page!! this whole thing is from Pacemaker 3.0.3+20260728.7052..., dated September 2026 β yes the version string is that long, she's got a lot going on π mwah, go fence responsibly β¨π
π¦ where this page comes from
- opensuse-leap 16.0: pacemaker-cli 3.0.3+20260728.7052efa194-160000.1.1 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: pacemaker-cli 3.0.3+20260728.7052efa194-160000.1.1 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: pacemaker-cli 3.0.3+20260728.7052efa194-160000.1.1 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
- opensuse-leap 16.0: pacemaker-cli 3.0.3+20260728.7052efa194-160000.1.1 Β· GPL-2.0-only AND GPL-2.0-or-later AND LGPL-2.1-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms