Debugging Your Configuration Changes

Before loading the changes back into the cluster, it is recommended to view your changes with ptest. The ptest can show a diagram of actions which would be induced by the changes to be committed. You need the graphiz package to display the diagrams. The following example is a transcript, adding a monitor operation:

# crm
crm(live)# configure 
crm(live)configure# show fence-node2 
primitive fence-node2 stonith:apcsmart \
        params hostlist="node2"
crm(live)configure# monitor fence-node2 120m:60s
crm(live)configure# show changed
primitive fence-node2 stonith:apcsmart \
        params hostlist="node2" \
        op monitor interval="120m" timeout="60s"
crm(live)configure# ptest
crm(live)configure# commit