Hello again,
here comes by cib.xml for a clusterip. But the ressource stickiness is not
working for me. When I shoutdown ha-2, the two clone instances stay on ha-1.
Any ideas? Before sending this e-mail I used the following command to
set some location constraints:

crm_resource -M -r ip0:0 -H ha-1

of course you can't do that when ip0:0 is already on ha-1 because
crm_resource goes smart ass on me:

(ha-1) [~] crm_resource -M -r ip0:0 -H ha-1
Error performing operation: ip0:0 is already active on ha-1

However it seems that location constraints or preferences are totally
fine with cloned ressources. So it doesn't seem that I do need the
ressource_stickiness. It doesn't work for me anyway. And that answers my
other question, I guess. And the ressources come back on the right host
after I simulate a power failure. Nice feature. I like it very much.

(ha-1) [~] crm_mon -1 -r

============
Last updated: Thu Feb  7 22:25:12 2008
Current DC: ha-1 (330da1b6-5f99-480a-b071-a144a98e1248)
2 Nodes configured.
1 Resources configured.
============

Node: ha-2 (095256ab-361c-4b1e-9a8b-8bed74c4a7fb): online
Node: ha-1 (330da1b6-5f99-480a-b071-a144a98e1248): online

Full list of resources:

Clone Set: clusterip-clone
    ip0:0       (heartbeat::ocf:IPaddr2):       Started ha-1
    ip0:1       (heartbeat::ocf:IPaddr2):       Started ha-1

<configuration>
        <crm_config>
                <cluster_property_set id="cib-bootstrap-options">
                        <attributes>
                                <nvpair name="ressource_stickiness" value="0" 
id="ressource-stickiness"/>
                        </attributes>
                </cluster_property_set>
        </crm_config>

        <resources>
                <clone id="clusterip-clone">
                        <meta_attributes id="clusterip-clone-ma">
                                <attributes>
                                        <nvpair id="clusterip-clone-1" 
name="globally_unique" value="false"/>
                                        <nvpair id="clusterip-clone-2" 
name="clone_max" value="2"/>
                                        <nvpair id="clusterip-clone-3" 
name="clone_node_max" value="2"/>
                                </attributes>
                        </meta_attributes>

                        <primitive class="ocf" provider="heartbeat" 
type="IPaddr2" id="ip0">
                                <instance_attributes id="ia-ip0">
                                        <attributes>
                                                <nvpair id="ia-ip0-1" name="ip" 
value="157.163.248.193"/>
                                                <nvpair id="ia-ip0-2" 
name="cidr_netmask" value="25"/>
                                                <nvpair id="ia-ip0-3" 
name="nic" value="eth0"/>
                                                <nvpair id="ia-ip0-4" 
name="mac" value="01:02:03:04:05:06"/>
                                                <nvpair id="ia-ip0-5" 
name="clusterip_hash" value="sourceip-sourceport"/>
                                        </attributes>
                                </instance_attributes>
                                <operations>
                                        <op id="ip0-monitor0" name="monitor" 
interval="60s" timeout="120s" start_delay="1m"/>
                                </operations>
                        </primitive>
                </clone>
        </resources>
</configuration>

        Thomas
_______________________________________________
Linux-HA mailing list
[email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to