crm_attribute
.
Example 4.3. The result of using crm_attribute to specify which kernel pcmk-1 is running
# crm_attribute --type nodes --node-uname pcmk-1 --attr-name kernel --attr-value `uname -r`
<node uname="pcmk-1" type="normal" id="101"> <instance_attributes id="nodes-101"> <nvpair id="kernel-101" name="kernel" value="2.6.16.46-0.4-default"/> </instance_attributes> </node>
crm_attribute
command again:
# crm_attribute --type nodes --node-uname pcmk-1 --attr-name kernel --get-value
--type nodes
the admin tells the cluster that this attribute is persistent. There are also transient attributes which are kept in the status section which are "forgotten" whenever the node rejoins the cluster. The cluster uses this area to store a record of how many times a resource has failed on that node but administrators can also read and write to this section by specifying --type status
.