Hi!
I have a two node cluster. The resource I want to share consists of an
OpenVZ virtual server installed on a drbd disk. The resources are
named:
ms-drbd101: drbd
gp-ve101: group that consists of:
gp-ve101-fs: Filesystem
gp-ve101-ve: ManageVE
Resources are colocated among themselves and ms and gp are located
with score 100 to one of the servers.
When I boot the server the resources are not started. If I verify I get:
crm_verify -L -V
crm_verify[8739]: 2008/09/05_23:10:13 WARN: native_color: Resource
gp-ve101-fs cannot run anywhere
crm_verify[8739]: 2008/09/05_23:10:13 WARN: native_color: Resource
gp-ve101-ve cannot run anywhere
However, if I stop and start the resources:
crm_resource -r ms-drbd101 --meta -p target_role -v "stopped"
crm_resource -r gp-ve101 --meta -p target_role -v "stopped"
crm_resource -r ms-drbd101 --meta -p target_role -v "#default"
crm_resource -r gp-ve101 --meta -p target_role -v "#default"
all is well in the world. The resources go up and
crm_verify -L -V
returns nothing.
So what I am missing to jump start my resources on boot?
Thanks in advance, cheers!
L
rpm -q heartbeat
heartbeat-2.1.3-3.el5.centos
------------------------------
ha.cf
------------------------------
autojoin none
ucast eth1 192.168.0.11
ucast eth1 192.168.0.12
ucast eth0 10.0.0.11
ucast eth0 10.0.0.12
warntime 5
deadtime 15
initdead 60
keepalive 2
node cluster11
node cluster12
crm respawn
------------------------------
cib.xml
------------------------------
<cib admin_epoch="0" have_quorum="true" ignore_dtd="false"
num_peers="2" cib_feature_revision="2.0" generated="true" epoch="207"
num_updates="1" cib-last-written="Fri Sep 5 03:03:51 2008"
ccm_transition="2" dc_uuid="06127696-19d1-4def-87ca-b0b259eb78b0">
<configuration>
<crm_config>
<cluster_property_set id="cib-bootstrap-options">
<attributes>
<nvpair id="cib-bootstrap-options-dc-version"
name="dc-version" value="2.1.3-node:
552305612591183b1628baa5bc6e903e0f1e26a3"/>
</attributes>
</cluster_property_set>
</crm_config>
<nodes>
<node uname="cluster12" type="normal"
id="06127696-19d1-4def-87ca-b0b259eb78b0">
<instance_attributes id="nodes-06127696-19d1-4def-87ca-b0b259eb78b0">
<attributes>
<nvpair name="standby"
id="standby-06127696-19d1-4def-87ca-b0b259eb78b0" value="off"/>
</attributes>
</instance_attributes>
</node>
<node uname="cluster11" type="normal"
id="e0d8a8cc-e7f2-47e4-a14b-428bba49fc97">
<instance_attributes id="nodes-e0d8a8cc-e7f2-47e4-a14b-428bba49fc97">
<attributes>
<nvpair name="standby"
id="standby-e0d8a8cc-e7f2-47e4-a14b-428bba49fc97" value="off"/>
</attributes>
</instance_attributes>
</node>
</nodes>
<resources>
<master_slave id="ms-drbd101">
<meta_attributes id="ms-drbd101-ma">
<attributes>
<nvpair id="ms-drbd101-ma-1" name="clone_max" value="2"/>
<nvpair id="ms-drbd101-ma-2" name="clone_node_max" value="1"/>
<nvpair id="ms-drbd101-ma-3" name="master_max" value="1"/>
<nvpair id="ms-drbd101-ma-4" name="master_node_max" value="1"/>
<nvpair id="ms-drbd101-ma-5" name="notify" value="yes"/>
<nvpair id="ms-drbd101-ma-6" name="globally_unique" value="false"/>
<nvpair name="target_role" id="ms-drbd101-ma-7" value="#default"/>
</attributes>
</meta_attributes>
<primitive id="drbd101" class="ocf" provider="heartbeat" type="drbd">
<instance_attributes id="drbd101-ia">
<attributes>
<nvpair id="drbd101-ia-1" name="drbd_resource" value="drbd101"/>
</attributes>
</instance_attributes>
<operations>
<op id="drbd101-op-1" name="monitor" interval="59s"
timeout="10s" role="Master"/>
<op id="drbd101-op-2" name="monitor" interval="60s"
timeout="10s" role="Slave"/>
</operations>
</primitive>
</master_slave>
<group id="gp-ve101">
<meta_attributes id="gp-ve101-ma">
<attributes>
<nvpair name="target_role" id="gp-ve101-ma-1" value="#default"/>
</attributes>
</meta_attributes>
<primitive id="gp-ve101-fs" class="ocf" provider="heartbeat"
type="Filesystem">
<instance_attributes id="gp-ve101-fs-ia">
<attributes>
<nvpair id="gp-ve101-fs-ia-1" name="fstype" value="ext3"/>
<nvpair id="gp-ve101-fs-ia-2" name="directory"
value="/vz/ve/101"/>
<nvpair id="gp-ve101-fs-ia-3" name="device"
value="/dev/drbd101"/>
</attributes>
</instance_attributes>
</primitive>
<primitive id="gp-ve101-ve" class="ocf" provider="heartbeat"
type="ManageVE">
<instance_attributes id="gp-ve101-ve-ia">
<attributes>
<nvpair id="gp-ve101-ve-ia-1" name="veid" value="101"/>
</attributes>
</instance_attributes>
</primitive>
</group>
</resources>
<constraints>
<rsc_order id="drbd101_before_gp-ve101" to="ms-drbd101"
to_action="promote" from="gp-ve101" action="start"/>
<rsc_colocation id="gp-vedrbd101" to="ms-drbd101"
to_role="master" from="gp-ve101" score="infinity"/>
<rsc_order id="gp-ve101-fs_before_gp-ve101-ve" to="gp-ve101-fs"
from="gp-ve101-ve"/>
<rsc_colocation id="gp-ve101-ve_on_gp-ve101-fs"
to="gp-ve101-fs" from="gp-ve101-ve" score="infinity"/>
<rsc_location id="pl-ms-drbd101-cluster12" rsc="ms-drbd101">
<rule id="pl-ms-drbd101-cluster12-rl" score="100">
<expression id="pl-ms-drbd101-cluster12-rl-ex"
attribute="#uname" operation="eq" value="cluster12"/>
</rule>
</rsc_location>
<rsc_location id="pl-gp-ve101-cluster12" rsc="gp-ve101">
<rule id="rl-pl-gp-ve101-cluster12" score="100">
<expression id="ex-pl-gp-ve101-cluster12"
attribute="#uname" operation="eq" value="cluster12"/>
</rule>
</rsc_location>
</constraints>
</configuration>
</cib>
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems