PACEMAKER(8)
๐ PACEMAKER(8) โ like, the whole cluster resource manager vibe ๐
Manual name: System Administration Utilities โ yes bestie, this is one of those pages, the big system-admin ones ๐ซถ
โจ NAME โจ
Pacemaker โ she's part of the Pacemaker cluster resource manager, and honestly? She's the whole personality of it ๐
๐ธ SYNOPSIS ๐ธ
crm_simulate <data source> <operation> [options]
That's the shape of it, ok? data source, operation, options. Simple as. ๐
๐ฆ DESCRIPTION ๐ฆ
crm_simulate โ simulate a Pacemaker cluster's response to events. That's the whole gig: you feed it a scenario, it tells you what the cluster would do. Iconic, no cap ๐ฅ
๐ OPTIONS ๐
๐ Help Options:
-h,--helpโ show help options. The classic. The "wait what does this do again" button ๐--help-allโ show all help options. Every last one, go off ๐--help-outputโ show output help--help-operationsโ show operations options--help-syntheticโ show synthetic cluster event options--help-artifactโ show artifact options--help-sourceโ show data source options
๐ Output Options:
--output-as=FORMATโ specify output format as one of:text(default),xml. Pick your fighter ๐--output-to=DESTโ specify file name for output (or-for stdout). Yes, dash means stdout, she's that girl โจ
โ๏ธ Operations:
-R,--runโ process the supplied input and show what actions the cluster will take in response. Forecaster energy ๐ฎ-S,--simulateโ like--run, but also simulate taking those actions and show the resulting new status. Now we're actually doing it ๐ซ-X,--in-placeโ like--simulate, but also store the results back to the input file. Careful bestie, she writes back to your input ๐ญ-A,--show-attrsโ show node attributes-c,--show-failcountsโ show resource fail counts. The receipts ๐-s,--show-scoresโ show allocation scores-U,--show-utilizationโ show utilization information-P,--profile=DIRโ process all the XML files in the named directory to create profiling data-N,--repeat=Nโ with--profile, repeat each testNtimes and print timings. Numbers go brrr โฑ๏ธ
๐พ Synthetic Cluster Events:
-u,--node-up=NODEโ simulate bringing a node online. Rise and shine bb ๐-d,--node-down=NODEโ simulate taking a node offline-f,--node-fail=NODEโ simulate a node failing. We're in the drama arc now ๐-i,--op-inject=OPSPECโ generate a failure for the cluster to react to in the simulation. See`Operation Specification`help for more information.-F,--op-fail=OPSPECโ if the specified task occurs during the simulation, have it fail with return code${rc}. The transition will normally stop at the failed action. Save the result with--save-outputand re-run with--xml-file. See`Operation Specification`help for more information.-t,--set-datetime=DATETIMEโ set date/time (ISO 8601 format, see https://en.wikipedia.org/wiki/ISO_8601)-q,--quorum=QUORUMโ set to'1'(or'true') to indicate cluster has quorum. Yes literally the string, don't come at me ๐ซถ-w,--watchdog=DEVICEโ set to'1'(or'true') to indicate cluster has an active watchdog device-g,--ticket-grant=TICKETโ simulate granting a ticket. Slay, ticket granted ๐๏ธ-r,--ticket-revoke=TICKETโ simulate revoking a ticket-b,--ticket-standby=TICKETโ simulate making a ticket standby-e,--ticket-activate=TICKETโ simulate activating a ticket
๐ Artifact Options:
-I,--save-input=FILEโ save the input configuration to the named file-O,--save-output=FILEโ save the output configuration to the named file-G,--save-graph=FILEโ save the transition graph (XML format) to the named file-D,--save-dotfile=FILEโ save the transition graph (DOT format) to the named file-a,--all-actionsโ display all possible actions in DOT graph (even if not part of transition). Show everything, main character energy ๐
๐ Data Source:
-L,--live-checkโ connect to CIB manager and use the current CIB contents as input. Live, not memorex ๐-x,--xml-file=FILEโ retrieve XML from the named file-p,--xml-pipeโ retrieve XML from stdin
๐ง Application Options:
-$,--versionโ display software version and exit. Yes the option is literally a dollar sign, iykyk ๐ธ-V,--verboseโ increase debug output (may be specified multiple times). Stack her, she loves it โจ-Q,--quietโ display only essential output. Minimalist queen ๐ฟ
๐ OPERATION SPECIFICATION ๐
ok so the OPSPEC in any command line option is of the form:
${resource}_${task}_${interval_in_ms}@${node}=${rc}
like, for example: memcached_monitor_20000@bart.example.com=7 ๐
${rc} is an OCF return code. For more information on these return codes, refer to https://clusterlabs.org/pacemaker/doc/2.1/Pacemaker_Administration/html/agents.html#ocf-return-codes
๐ซ EXAMPLES ๐ซ
Pretend a recurring monitor action found memcached stopped on node fred.example.com and, during recovery, that the memcached stop action failed:
crm_simulate -LS --op-inject
memcached:0_monitor_20000@bart.example.com=7 --op-fail
memcached:0_stop_0@fred.example.com=1 --save-output
/tmp/memcached-test.xml
Now see what the reaction to the stop failed would be:
crm_simulate -S --xml-file /tmp/memcached-test.xml
Literal chef's kiss scenario construction ๐ค
๐ AUTHOR ๐
Written by Andrew Beekhof and the Pacemaker project contributors ๐ซถ
ngl bestie, if you're messing with-X/--in-place, remember she stores the results back to the input file โ back that thing up first, fr fr ๐ญ
okay that's the whole page!! this one's from Pacemaker version 3.0.3+20260728.7052..., dated September 2026, and it lives as the PACEMAKER(8) page under System Administration Utilities โ mwah, go simulate something gorgeous ๐โจ๐
๐ฆ 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