crm(live)configure
Usage:
...............
order <
id
> {kind|<score>}: <rsc>[:<action>] <rsc>[:<action>] ...
[symmetrical
=
<
bool
>]
kind :: Mandatory | Optional | Serialize
crm(live)configure
crm(live)configure
crm(live)configure
crm(live)configure
<?xml version
=
"1.0"
?>
<cib num_updates
=
"4"
dc
-
uuid
=
"node2.soul.com"
update
-
origin
=
"node1.soul.com"
crm_feature_set
=
"3.0.7"
validate
-
with
=
"pacemaker-1.2"
update
-
client
=
"cibadmin"
epoch
=
"14"
admin_epoch
=
"0"
cib
-
last
-
written
=
"Wed Apr 23 13:37:27 2014"
have
-
quorum
=
"1"
>
<configuration>
<crm_config>
<cluster_property_set
id
=
"cib-bootstrap-options"
>
<nvpair
id
=
"cib-bootstrap-options-dc-version"
name
=
"dc-version"
value
=
"1.1.10-14.el6-368c726"
/
>
<nvpair
id
=
"cib-bootstrap-options-cluster-infrastructure"
name
=
"cluster-infrastructure"
value
=
"classic openais (with plugin)"
/
>
<nvpair
id
=
"cib-bootstrap-options-expected-quorum-votes"
name
=
"expected-quorum-votes"
value
=
"2"
/
>
<nvpair name
=
"stonith-enabled"
value
=
"false"
id
=
"cib-bootstrap-options-stonith-enabled"
/
>
<nvpair name
=
"no-quorum-policy"
value
=
"ignore"
id
=
"cib-bootstrap-options-no-quorum-policy"
/
>
<nvpair
id
=
"cib-bootstrap-options-last-lrm-refresh"
name
=
"last-lrm-refresh"
value
=
"1398230446"
/
>
<
/
cluster_property_set>
<
/
crm_config>
<nodes>
<node
id
=
"node2.soul.com"
uname
=
"node2.soul.com"
/
>
<node
id
=
"node1.soul.com"
uname
=
"node1.soul.com"
/
>
<
/
nodes>
<resources>
<group
id
=
"webcluster"
>
<primitive
id
=
"webip"
class
=
"ocf"
provider
=
"heartbeat"
type
=
"IPaddr"
>
<instance_attributes
id
=
"webip-instance_attributes"
>
<nvpair name
=
"ip"
value
=
"192.168.0.222"
id
=
"webip-instance_attributes-ip"
/
>
<
/
instance_attributes>
<operations>
<op name
=
"monitor"
interval
=
"30s"
timeout
=
"30s"
on
-
fail
=
"restart"
id
=
"webip-monitor-30s"
/
>
<
/
operations>
<
/
primitive>
<primitive
id
=
"webstore"
class
=
"ocf"
provider
=
"heartbeat"
type
=
"Filesystem"
>
<instance_attributes
id
=
"webstore-instance_attributes"
>
<nvpair name
=
"device"
value
=
"192.168.0.113:/webstore"
id
=
"webstore-instance_attributes-device"
/
>
<nvpair name
=
"directory"
value
=
"/share"
id
=
"webstore-instance_attributes-directory"
/
>
<nvpair name
=
"fstype"
value
=
"nfs"
id
=
"webstore-instance_attributes-fstype"
/
>
<
/
instance_attributes>
<operations>
<op name
=
"monitor"
interval
=
"40s"
timeout
=
"40s"
id
=
"webstore-monitor-40s"
/
>
<op name
=
"start"
timeout
=
"60s"
interval
=
"0"
id
=
"webstore-start-0"
/
>
<op name
=
"stop"
timeout
=
"60s"
interval
=
"0"
id
=
"webstore-stop-0"
/
>
<
/
operations>
<
/
primitive>
<primitive
id
=
"webserver"
class
=
"lsb"
type
=
"httpd"
>
<operations>
<op name
=
"monitor"
interval
=
"30s"
timeout
=
"30s"
on
-
fail
=
"restart"
id
=
"webserver-monitor-30s"
/
>
<
/
operations>
<
/
primitive>
<primitive
id
=
"webdb"
class
=
"lsb"
type
=
"mysqld"
>
<operations>
<op name
=
"monitor"
interval
=
"30s"
timeout
=
"30s"
on
-
fail
=
"restart"
id
=
"webdb-monitor-30s"
/
>
<
/
operations>
<
/
primitive>
<
/
group>
<
/
resources>
<constraints>
<rsc_order
id
=
"ip_store_http_db"
kind
=
"Mandatory"
>
<resource_set
id
=
"ip_store_http_db-0"
>
<resource_ref
id
=
"webip"
/
>
<resource_ref
id
=
"webstore"
/
>
<resource_ref
id
=
"webserver"
/
>
<resource_ref
id
=
"webdb"
/
>
<
/
resource_set>
<
/
rsc_order>
<
/
constraints>
<
/
configuration>
<
/
cib>