Hello,
I am trying to use clone to have 1 instance of postgresql to run on 2
nodes. But it does not happen that way. When I start heartbeat on node 1
it will always say the other node as offline, though all the resources
are started.
In node 2 also the same thing, it starts everything on node 2 but the DC
is also set as node 2(it should be 1 right ?). When I run crm_verify -LV
and also in the ha log file I get the problem
pengine[5075]: 2008/12/09_10:27:13 WARN: native_color: Resource
postgresql:1 cannot run anywhere
Can you please help here what the issue is.
This is the cib I have(not the complete, from nodes..):
<nodes>
<node id="86063f0f-bd82-4fdb-9fa7-4aa1d02e09df"
uname="guard-dev9.dmz.bell-labs.com" type="normal"/>
<node id="7d14a9ca-cdc1-4c40-81c7-032487712e5f"
uname="guard-dev3.dmz.bell-labs.com" type="normal"/>
</nodes>
<resources>
<clone id="postgre-clone" globally_unique="false">
<instance_attributes id="inst_att1">
<attributes>
<nvpair id="att1" name="clone_max" value="2"/>
<nvpair id="att2" name="clone_node_max" value="1"/>
</attributes>
</instance_attributes>
<primitive id="postgresql" class="ocf" type="pgsql"
provider="heartbeat">
<instance_attributes id="atrApPostgreSQLDB">
<attributes>
<nvpair id="pgctl01" name="pgctl"
value="/usr/local/lucent/mgmt/pgsql/bin/pg_ctl"/>
<nvpair id="psql01" name="psql"
value="/usr/local/lucent/mgmt/pgsql/bin/psql"/>
<nvpair id="pgdata01" name="pgdata"
value="/usr/local/lucent/mgmt/pgsql/data"/>
<nvpair id="pgdba01" name="pgdba" value="evros"/>
<nvpair id="pgdb01" name="pgdb" value="evrosdb"/>
<nvpair id="logfile01" name="logfile"
value="/usr/local/lucent/mgmt/pgsql/pgsql.log"/>
</attributes>
</instance_attributes>
</primitive>
</clone>
<group id="group_1">
<primitive class="ocf" id="IPaddr_10_1_1_99"
provider="heartbeat" type="IPaddr">
<instance_attributes id="IPaddr_10_1_1_99_inst_attr">
<attributes>
<nvpair id="IPaddr_10_1_1_99_attr_0" name="ip"
value="10.1.1.99"/>
<nvpair id="IPaddr_10_1_1_99_attr_1" name="nic"
value="eth1"/>
<nvpair id="IPaddr_10_1_1_99_attr_2" name="netmask"
value="24"/>
</attributes>
</instance_attributes>
</primitive>
</group>
</resources>
<constraints>
<rsc_location id="run_postgreclone" rsc="postgre-clone">
<rule id="pref_run_postgre" score="100">
<expression id="expr1" attribute="#uname" operation="eq"
value="guard-dev3.dmz.bell-labs.com"/>
<expression id="expr2" attribute="#uname" operation="eq"
value="guard-dev9.dmz.bell-labs.com"/>
</rule>
</rsc_location>
</constraints>
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems