crm_master — determine which resource instance to promote to master
crm_master[-V|-Q]-D[-llifetime]
crm_master[-V|-Q]-G[-llifetime]
crm_master[-V|-Q]-vstring[-lstring]
crm_master is called from inside the resource agent
scripts to determine which resource instance should be promoted to master
mode. It should never be used from the command line and is just a helper
utility for the resource agents. RAs use crm_master to
promote a particular instance to master mode or to remove this preference
from it. By assigning a lifetime, determine whether this setting
should survive a reboot of the node (set lifetime to
forever) or whether it should not survive a reboot (set
lifetime to reboot).
A resource agent needs to determine on which resource crm_master should operate. These queries must be handled inside the resource agent script. The actual calls of crm_master follow a syntax similar to those of the crm_attribute command.
--help, -?Print a help message.
--verbose, -VTurn on debug information.
![]() | Note |
|---|---|
Increase the level of verbosity by providing additional instances. | |
--quiet, -QWhen doing an attribute query using -G, print just
the value to stdout. Use this option with -G.
--get-value, -GRetrieve rather than set the preference to be promoted.
--delete-attr, -DDelete rather than set the attribute.
--attr-id string,
-i string
For advanced users only. Identifies the id attribute.
--attr-value string,
-v stringValue to set. This is ignored when used with
-G.
--lifetime string,
-l stringSpecify how long the preference lasts. Possible values are
reboot or forever.