Cluster configuration in – cibadmin -Q
The Heartbeat configuration file will not be reviewed here, but it has the same basic format as the Pacemaker
conf; but it is in XML format
The ouput breaks down into the following three groups.
The Nodes in the cluster
The Resources in the cluster
The Contraints on the Resources the cluster
configuration of a pacemaker cluster – crm configure show
The following command outputs the cluster configuration. We'll tackle the configuration section by section
1.Node definition
node 1084767154: vhst014973 \
attributes standby=on
node 1084767170: vhst024973 \
attributes standby=off
Cluster Resources
A primiative is a section of the pacemaker configuration which refences built in functionality in PaceMaker.
Primatives are defined using the below format
primitive <id> <class>:<type>:<provider>
The monitor time “interval” indicates how often Pacemaker monitors the resources defined.
Here are four primitves that define some DRBD resources
primitive resDRBD-rxp ocf:linbit:drbd \
params drbd_resource="rxp" \ ##( The resource name should be identical to the resources defined in
the drbd configuration (/etc/drbd.d)
operations $id="resDRBD-rxp-operations" \
op monitor interval="20" role="Master" timeout="20" start-delay="1m" \
op monitor interval="30" role="Slave" timeout="20" start-delay="1m" \
op stop interval="0" timeout="100" \
op start interval="0" timeout="240"
primitive resDRBD-saps01 ocf:linbit:drbd \
params drbd_resource="saps01" \
operations $id="resDRBD-saps01-operations" \
op monitor interval="20" role="Master" timeout="20" start-delay="1m" \
op monitor interval="30" role="Slave" timeout="20" start-delay="1m" \
op stop interval="0" timeout="100" \b
op start interval="0" timeout="240"
primitive resDRBD-saps02 ocf:linbit:drbd \
params drbd_resource="saps02" \
operations $id="resDRBD-saps02-operations" \
op monitor interval="20" role="Master" timeout="20" start-delay="1m" \
op monitor interval="30" role="Slave" timeout="20" start-delay="1m" \
op stop interval="0" timeout="100" \
op start interval="0" timeout="240"
primitive resDRBD-wsp ocf:linbit:drbd \
params drbd_resource="wsp" \
operations $id="resDRBD-wsp-operations" \
op monitor interval="20" role="Master" timeout="20" start-delay="1m" \
op monitor interval="30" role="Slave" timeout="20" start-delay="1m" \
op stop interval="0" timeout="100" \
op start interval="0" timeout="240"