table of contents
other versions
- wheezy 1.1.7-1
- jessie-backports 1.1.15-3~bpo8+1
- testing 1.1.16-1
- unstable 1.1.16-1
| PACEMAKER(8) | System Administration Utilities | PACEMAKER(8) |
NAME¶
Pacemaker - Part of the Pacemaker cluster resource managerSYNOPSIS¶
crm_resource (query|command) [options]DESCRIPTION¶
crm_resource - Perform tasks related to cluster resources. Allows resources to be queried (definition and location), modified, and moved around the cluster.OPTIONS¶
- -?, --help
- This text
- -$, --version
- Version information
- -V, --verbose
- Increase debug output
- -Q, --quiet
- Print only the value on stdout
- -r, --resource=value
- Resource ID
Queries:¶
- -L, --list
- List all resources
- -l, --list-raw
- List the IDs of all instantiated resources (no groups/clones/...)
- -O, --list-operations
- List active resource operations. Optionally filtered by resource ( -r) and/or node (-N)
- -o, --list-all-operations
- List all resource operations. Optionally filtered by resource ( -r) and/or node (-N)
- -q, --query-xml
- Query the definition of a resource (template expanded)
- -w, --query-xml-raw
- Query the definition of a resource (raw xml)
- -W, --locate
- Display the current location(s) of a resource
- -A, --stack
- Display the prerequisites and dependents of a resource
- -a, --constraints
- Display the (co)location constraints that apply to a resource
Commands:¶
- -p, --set-parameter=value
- Set the named parameter for a resource. See also -m, --meta
- -g, --get-parameter=value
- Display the named parameter for a resource. See also -m, --meta
- -d, --delete-parameter=value
- Delete the named parameter for a resource. See also -m, --meta
- -M, --move
- Move a resource from its current location, optionally specifying a destination ( -N) and/or a period for which it should take effect ( -u) If -N is not specified, the cluster will force the resource to move by creating a rule for the current location and a score of -INFINITY NOTE: This will prevent the resource from running on this node until the constraint is removed with -U
- -U, --un-move
- Remove all constraints created by a move command
Advanced Commands:¶
- -D, --delete
- Delete a resource from the CIB
- -F, --fail
- Tell the cluster this resource has failed
- -R, --refresh
- (Advanced) Refresh the CIB from the LRM
- -C, --cleanup
- (Advanced) Delete a resource from the LRM
- -P, --reprobe
- (Advanced) Re-check for resources started outside of the CRM
Additional Options:¶
- -N, --node=value
- Host uname
- -t, --resource-type=value
- Resource type (primitive, clone, group, ...)
- -v, --parameter-value=value
- Value to use with -p, -g or -d
- -u, --lifetime=value
- Lifespan of migration constraints
- -m, --meta
- Modify a resource's configuration option rather than one which is passed to the resource agent script. For use with -p, -g, -d
- -z, --utilization
- Modify a resource's utilization attribute. For use with -p, -g, -d
- -s, --set-name=value
- (Advanced) ID of the instance_attributes object to change
- -i, --nvpair=value
- (Advanced) ID of the nvpair object to change/delete
-f,
--force
EXAMPLES¶
List the configured resources:- # crm_resource --list
- # crm_resource --resource myResource --locate
- # crm_resource --resource myResource --move
- # crm_resource --resource myResource --move --node altNode
- # crm_resource --resource myResource --un-move
- # crm_resource --resource myResource --fail
- # crm_resource --resource myResource --set-parameter target-role --meta --parameter-value Stopped
- # crm_resource --resource myResource --set-parameter is-managed --meta --parameter-value false
- # crm_resource --resource myResource --cleanup --node aNode
AUTHOR¶
Written by Andrew BeekhofREPORTING BUGS¶
Report bugs to pacemaker@oss.clusterlabs.org| April 2012 | Pacemaker 1.1.7 |