PACEMAKER(8)
π PACEMAKER β the pacemaker(8) page, but make it make sense π
okay so real talk: this is the Pacemaker manual page β part of the Pacemaker cluster resource manager β and it's literally just about crm_attribute. Like, that's the whole vibe here: query and update Pacemaker cluster options and node attributes. no cap, that's it. β¨
πΈ SYNOPSIS πΈ
crm_attribute -n <attribute> <command> [options]
π¦ DESCRIPTION π¦
crm_attribute β bestie, this is your girl for querying and updating Pacemaker cluster options and node attributes. that's the whole job description and she does it gorgeously. π«Ά
β¨ OPTIONS β¨
π Help Options:
-h,--helpβ show the help options, babes--help-allβ show all the help options, the whole buffet--help-outputβ show output help--help-selectionsβ show the selecting options--help-commandβ show the command options--help-additionalβ show the additional options
π Output Options:
--output-as=FORMATβ pick your output format, one of:text(that's the default, mwah) orxml--output-to=DESTβ say where the output goes, a file name (or"-"for stdout, iconic)
π§ Selecting attributes:
-a,--allβ with-L/--list-options, this includes advanced and deprecated options in the output. and lowkey, this is always treated as true when--output-as=xmlis specified β no take-backs-i,--id=XML_IDβ (Advanced, ooh) operate on the instance of the specified attribute with this XML ID-n,--name=NAMEβ operate on the attribute or option with this name. for queries this is optional, and if you skip it, all the matching attributes get returned to you. generous queen-P,--pattern=PATTERNβ operate on all attributes matching this pattern (with-v,-D, or-G)-p,--promotion=RESOURCEβ operate on the node attribute used as the promotion score for the specified resource, or for the resource given in theOCF_RESOURCE_INSTANCEenvironment variable if none is specified; this also defaults-l/--lifetimetoreboot(normally invoked from an OCF resource agent, iykyk)-s,--set-name=NAMEβ (Advanced) operate on the instance of the specified attribute that lives within the set with this XML ID
π₯ Commands:
-L,--list-options=TYPEβ list all the available options of the given type. allowed values:cluster-D,--deleteβ delete the attribute/option (with-nor-P). bye bestie π-G,--queryβ query the current value of the attribute/option. see also:-n,-P-v,--update=VALUEβ update the value of the attribute/option (with-nor-P)
π Additional options:
-d,--default=VALUEβ (Advanced) the default value to display if none is found in configuration-l,--lifetime=LIFETIMEβ lifetime of the node attribute. valid values:reboot,forever-N,--node=NODEβ set a node attribute for the named node (instead of a cluster option). see also:-l-t,--type=SECTIONβ which part of the configuration to update/delete/query the option in. valid values:crm_config,rsc_defaults,op_defaults,tickets--scoreβ treat new attribute values as atomic score updates where possible (with--update/-v, when running against a CIB file or updating an attribute outside the status section; enabled by default if--promotion/-pis specified). details below, because there are layers π§
β οΈ okay so listen: this currently happens by default and cannot be disabled, but this default behavior is deprecated and will be removed in a future release (exception: this will remain the default with--promotion/-p). set this flag if this behavior is what you want.
This option takes effect when updating XML attributes. for an attribute named "name", if the new value is "name++" or "name+=X" for some score X, the new value is set as follows:
- if attribute
"name"is not already set to some value in the element being updated, the new value is set as a literal string. - if the new value is
"name++", then the attribute is set to its existing value (parsed as a score) plus 1. - if the new value is
"name+=X"for some score X, then the attribute is set to its existing value plus X, where the existing value and X are parsed and added as scores.
Scores are integer values capped at INFINITY and -INFINITY. refer to Pacemaker Explained for more details on scores, including how they're parsed and added. π
-W,--wait=UNTILβ wait for some event to occur before returning. the values are'no'(wait only for the attribute daemon to acknowledge the request),'local'(wait until the change has propagated to where a local query will return the request value, or the value set by a later request), or'cluster'(wait until the change has propagated to where a query anywhere on the cluster will return the requested value, or the value set by a later request). default is'no'. (with-N, and one of-Dor-u) β³-z,--utilizationβ set an utilization attribute for the node
π Application Options:
-$,--versionβ display the software version and exit-V,--verboseβ increase debug output (may be specified multiple times β go off, stack it)-q,--quietβ print only the value on stdout, minimal, clean, immaculate π
π EXAMPLES π
Add a new node attribute called 'location' with the value of 'office' for host 'myhost':
crm_attribute --node myhost --name location --update office
Query the value of the 'location' node attribute for host 'myhost':
crm_attribute --node myhost --name location --query
Change the value of the 'location' node attribute for host 'myhost':
crm_attribute --node myhost --name location --update backoffice
Delete the 'location' node attribute for host 'myhost':
crm_attribute --node myhost --name location --delete
Query the value of the 'cluster-delay' cluster option:
crm_attribute --type crm_config --name cluster-delay --query
Query the value of the 'cluster-delay' cluster option and print only the value:
crm_attribute --type crm_config --name cluster-delay --query
--quiet
π«Ά AUTHOR π«Ά
Written by Andrew Beekhof and the Pacemaker project contributors. legends, fr fr. π
and that's the page, bestie!! π¦ this lil' beauty is from Pacemaker 3.0.3+20260728.7052..., dated September 2026 β the PACEMAKER(8) system administration utilities manual, serving cluster realness since forever. mwah, go update some attributes ππβ¨
π¦ 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