1PACEMAKER(8) System Administration Utilities PACEMAKER(8)
2
3
4
6 Pacemaker - Part of the Pacemaker cluster resource manager
7
9 crm_simulate datasource operation [additional options]
10
12 crm_simulate - Tool for simulating the cluster's response to events
13
15 -?, --help
16 This text
17
18 -$, --version
19 Version information
20
21 -Q, --quiet
22 Display only essentialoutput
23
24 -V, --verbose
25 Increase debug output
26
27 Operations:
28 -R, --run
29 Determine the cluster's response to the given configuration and
30 status
31
32 -S, --simulate Simulate the transition's execution and display the
33 resulting cluster status
34
35 -X, --in-place Simulate the transition's execution and store the result
36 back to the input file
37
38 -s, --show-scores
39 Show allocation scores
40
41 -U, --show-utilization Show utilization information
42
43 -P, --profile=value
44 Run all tests in the named directory to create profiling data
45
46 -N, --repeat=value
47 With --profile, repeat each test N times and print timings
48
49 Synthetic Cluster Events:
50 -u, --node-up=value
51 Bring a node online
52
53 -d, --node-down=value
54 Take a node offline
55
56 -f, --node-fail=value
57 Mark a node as failed
58
59 -i, --op-inject=value
60 Generate a failure for the cluster to react to in the simulation
61
62 Value is of the form ${resource}_${task}_${inter‐
63 val_in_ms}@${node}=${rc}. Eg. memcached_moni‐
64 tor_20000@bart.example.com=7 For more information on OCF return
65 codes, refer to: https://clusterlabs.org/pace‐
66 maker/doc/en-US/Pacemaker/2.0/html/Pacemaker_Administra‐
67 tion/s-ocf-return-codes.html
68
69 -F, --op-fail=value
70 If the specified task occurs during the simulation, have it fail
71 with return code ${rc}
72
73 Value is of the form ${resource}_${task}_${inter‐
74 val_in_ms}@${node}=${rc}. Eg. memcached_stop_0@bart.exam‐
75 ple.com=1
76
77 The transition will normally stop at the failed action.
78 Save the result with --save-output and re-run with --xml-file
79
80 -t, --set-datetime=value
81 Set date/time (ISO 8601 format, see
82 https://en.wikipedia.org/wiki/ISO_8601)
83
84 -q, --quorum=value
85 Specify a value for quorum
86
87 -w, --watchdog=value
88 Assume a watchdog device is active
89
90 -g, --ticket-grant=value
91 Grant a ticket
92
93 -r, --ticket-revoke=value
94 Revoke a ticket
95
96 -b, --ticket-standby=value
97 Make a ticket standby
98
99 -e, --ticket-activate=value
100 Activate a ticket
101
102 Output Options:
103 -I, --save-input=value
104 Save the input configuration to the named file
105
106 -O, --save-output=value
107 Save the output configuration to the named file
108
109 -G, --save-graph=value
110 Save the transition graph (XML format) to the named file
111
112 -D, --save-dotfile=value
113 Save the transition graph (DOT format) to the named file
114
115 -a, --all-actions
116 Display all possible actions in the DOT graph - even ones not
117 part of the transition
118
119 Data Source:
120 -L, --live-check
121 Connect to the CIB mamager and use the current CIB contents as
122 input
123
124 -x, --xml-file=value
125 Retrieve XML from the named file
126
127 -p, --xml-pipe
128 Retrieve XML from stdin
129
131 Pretend a recurring monitor action found memcached stopped on node
132 fred.example.com and, during recovery, that the memcached stop action
133 failed
134
135 # crm_simulate -LS --op-inject memcached:0_moni‐
136 tor_20000@bart.example.com=7 --op-fail mem‐
137 cached:0_stop_0@fred.example.com=1 --save-output /tmp/mem‐
138 cached-test.xml
139
140 Now see what the reaction to the stop failure would be
141
142 # crm_simulate -S --xml-file /tmp/memcached-test.xml
143
145 Written by Andrew Beekhof
146
148 Report bugs to users@clusterlabs.org
149
150
151
152Pacemaker 2.0.3-1.fc32 November 2019 PACEMAKER(8)