Product SiteDocumentation Site

3.7. Querying and Setting Cluster Options

Cluster options can be queried and modified using the crm_attribute tool. To get the current value of cluster-delay, simply use:
# crm_attribute --attr-name cluster-delay --get-value
which is more simply written as
# crm_attribute --get-value -n cluster-delay
If a value is found, you’ll see a result like this:
# crm_attribute --get-value -n cluster-delay
 name=cluster-delay value=60s
However, if no value is found, the tool will display an error:
# crm_attribute --get-value -n clusta-deway`
name=clusta-deway value=(null)
Error performing operation: The object/attribute does not exist
To use a different value, eg. 30, simply run:
# crm_attribute --attr-name cluster-delay --attr-value 30s
To go back to the cluster’s default value you can delete the value, for example with this command:
# crm_attribute --attr-name cluster-delay --delete-attr