Show Table of Contents
D.5. Debugging and Testing Services and Resource Ordering
You can debug and test services and resource ordering with the
rg_test utility. rg_test is a command-line utility that is run from a shell or a terminal (it is not available in Conga or system-config-cluster.) Table D.2, “rg_test Utility Summary” summarizes the actions and syntax for the rg_test utility.
Table D.2. rg_test Utility Summary
| Action | Syntax |
|---|---|
Display the resource rules that rg_test understands. | rg_test rules |
| Test a configuration (and /usr/share/cluster) for errors or redundant resource agents. | rg_test test /etc/cluster/cluster.conf |
| Display the start and stop ordering of a service. |
Display start order:
rg_test noop /etc/cluster/cluster.conf start service
Display stop order:
rg_test noop /etc/cluster/cluster.conf stop service
|
| Explicitly start or stop a service. | Important
Only do this on one node, and always disable the service in rgmanager first.
Start a service:
rg_test test /etc/cluster/cluster.conf start service
Stop a service:
rg_test test /etc/cluster/cluster.conf stop service
|
| Calculate and display the resource tree delta between two cluster.conf files. | rg_test delta
For example:
rg_test delta /etc/cluster/cluster.conf.bak /etc/cluster/cluster.conf
|

Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.