Hi, Am Freitag, 19. Juni 2009 05:49 schrieb Bui Manh Nam: > Hi all > Thank you very much, you reply me > > My name is Bui manh Nam, I have a problem as the following: > > Both server140, server148 operation system: centos5.1 > > 1. I have already installed heartbeat on server140 which ip address is > 192.168.29.140, other server148 with the address 192.168.29.148 > > [r...@server148 ~]# rpm -qa |grep heartbeat > > heartbeat-pils-2.1.3-3.el5.centos > > heartbeat-2.1.3-3.el5.centos > > heartbeat-stonith-2.1.3-3.el5.centos > > heartbeat-gui-2.1.3-3.el5.centos > > heartbeat-devel-2.1.3-3.el5.centos > > heartbeat-ldirectord-2.1.3-3.el5.centos > > > VIP: 192.168.29.156 > > on server140: 192.168.29.140 and server148: 192.168.29.148 > > create file eth0:0 > > DEVICE=eth0:0 > > BOOTPROTO=static > > HWADDR=01:02:03:04:05:06 > > IPADDR=192.168.29.156 > > NETMASK=255.255.255.255 > > ONBOOT=yes > > > > #wget -O /etc/yum.repos.d/CentOS-Testing.repo > http://dev.centos.org/centos/5/CentOS-Testing.repo > > #yum --enablerepo c5-testing install iptables-mod-CLUSTERIP > > #modprobe ipt_conntrack > > #modprobe ipt_CLUSTERIP > > #iptables -I INPUT -d 192.168.29.156 -i eth0 -p tcp -j CLUSTERIP --new > --clustermac 01:02:03:04:05:06 --total-nodes 2 --local-node 1 --hashmode > sourceip > > (server140:192.168.29.140) > > # iptables -I INPUT -d 192.168.29.156 -i eth0 -p tcp -j CLUSTERIP --new > --clustermac 01:02:03:04:05:06 --total-nodes 2 --local-node 1 --hashmode > sourceip > > (server148:192.168.29.148) > > #service iptables save > > #yum install lighttpd -y > > ============'========================== > > I have tested > > It run ok on both servers of the subnet 192.168.29.0/24 but when I test in > other subnet, it is not run. I use other server with the IP address is > 192.168.30.107, I can not ping to 192.168.29.156 and the access to
- I don't know centos5.1, but AFAIK, you can use other subnet of the 192.168.x..x LAN - with the correct LAN netmask configured: - try ~/16 instead of ~/24! HTH N. Michalko > http://192.168.29.156/ is impossible. I ping 192.168.29.140 and > 192,168.29.148 ok and http://192.168.29.140/ http://192.168.29.148/ access > web ok. > > please help me! > > I'm hearing from you soon! > > many thanks! > > > I don't understand the following > > cib.xml file > > <nvpair id="cib-bootstrap-options-dc_deadtime" name="dc_deadtime" val > ue="0"/> > > </attributes> > > </cluster_property_set> > > </crm_config> > > <nodes> > > <node uname="server148" type="normal" id="a07fb162-9071-474c-9a9a-ea4b4ef > 526e7"> > > <instance_attributes id="nodes-a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > <attributes> > > <nvpair name="standby" id="standby-a07fb162-9071-474c-9a9a-ea4b4ef5 26e7" > value="off"/> > > </attributes> > > </instance_attributes> > > </node> > > <node uname="server140" type="normal" id="c7f5251a-3bab-489f-a18f-c1a04ff > a1591"> > > <instance_attributes id="nodes-c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > <attributes> > > <nvpair name="standby" id="standby-c7f5251a-3bab-489f-a18f-c1a04ffa 1591" > value="off"/> > > </attributes> > > </instance_attributes> > > </node> > > </nodes> > > <resources> > > <clone id="IP_5"> > > <meta_attributes id="IP_5_meta_attrs"> > > <attributes> > > <nvpair id="IP_5_metaattr_target_role" name="target_role" value="st > opped"/> > > <nvpair id="IP_5_metaattr_clone_max" name="clone_max" value="2"/> > > <nvpair id="IP_5_metaattr_clone_node_max" name="clone_node_max" val > ue="2"/> > > <nvpair id="IP_5_metaattr_resource_stickiness" name="resource_stick iness" > value="0"/> > > </attributes> > > </meta_attributes> > > <primitive id="resource_IP_5" class="ocf" type="IPaddr2" provider="hear > tbeat"> > > <instance_attributes id="resource_IP_5_instance_attrs"> > > <attributes> > > <nvpair id="19cdeb1d-b7c4-4851-99b8-6c62a2a8de39" name="ip" value > ="192.168.29.156"/> > > <nvpair id="cd13c341-e4bc-43f6-90af-00f97e3a5800" name="nic" valu > e="eth0"/> > > <nvpair id="06d597be-7df9-4546-ae5a-2a0ef088afbb" name="cidr_netm ask" > value="255.255.255.0"/> > > <nvpair id="78eb447b-12b0-418d-a5ee-c484c24e959e" name="mac" valu > e="00:01:02:03:04:05:06"/> > > <nvpair id="5b417cd5-5a6f-4ba1-bb35-3db4dc839803" name="clusterip _hash" > value="sourceip-sourceport-destport"/> > > </attributes> > > </instance_attributes> > > <meta_attributes id="resource_IP_5:0_meta_attrs"> > > <attributes> > > <nvpair id="resource_IP_5:0_metaattr_target_role" name="target_ro le" > value="started"/> > > </attributes> > > </meta_attributes> > > </primitive> > > </clone> > > </resources> > > <constraints> > > <rsc_location id="location_" rsc="IP_5"> > > <rule id="prefered_location_" score="0"> > > <expression attribute="#uname" id="b958f92c-839a-4666-8698-e0c96d0471 9b" > operation="eq" value="server148"/> > > </rule> > > </rsc_location> > > <rsc_location id="location_2" rsc="IP_5"> > > <rule id="prefered_location_2" score="0"> > > <expression attribute="#uname" id="540476fc-3a35-4dd8-87dc-3be82adb65 92" > operation="eq" value="server140"/> > > </rule> > > </rsc_location> > > <rsc_colocation id="colocation_" from="IP_5" to="IP_5" score="INFINITY"/> > > <rsc_order id="order_" from="IP_5" type="after" to="IP_5"/> > > </constraints> > > </configuration> > > </cib> > > [r...@server140 ~]# cat /var/lib/heartbeat/crm/cib.xml > > <cib admin_epoch="0" have_quorum="true" ignore_dtd="false" num_peers="2" > cib_fe ature_revision="2.0" generated="true" num_updates="1" > ccm_transition="2" dc_uuid ="a07fb162-9071-474c-9a9a-ea4b4ef526e7" > epoch="1306" cib-last-written="Mon Jun 1 5 12:56:56 2009"> > > <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"/> > > <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enab led" > value="true"/> > > <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-p > olicy" value="stop"/> > > <nvpair name="last-lrm-refresh" id="cib-bootstrap-options-last-lrm-re > fresh" value="1245040474"/> > > <nvpair id="cib-bootstrap-options-default-resource-stickiness" name=" > default-resource-stickiness" value="INFINYTY"/> > > <nvpair id="cib-bootstrap-options-dc_deadtime" name="dc_deadtime" val > ue="0"/> > > </attributes> > > </cluster_property_set> > > </crm_config> > > <nodes> > > <node uname="server148" type="normal" id="a07fb162-9071-474c-9a9a-ea4b4ef > 526e7"> > > <instance_attributes id="nodes-a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > <attributes> > > <nvpair name="standby" id="standby-a07fb162-9071-474c-9a9a-ea4b4ef5 26e7" > value="off"/> > > </attributes> > > </instance_attributes> > > </node> > > <node uname="server140" type="normal" id="c7f5251a-3bab-489f-a18f-c1a04ff > a1591"> > > <instance_attributes id="nodes-c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > <attributes> > > <nvpair name="standby" id="standby-c7f5251a-3bab-489f-a18f-c1a04ffa 1591" > value="off"/> > > </attributes> > > </instance_attributes> > > </node> > > </nodes> > > <resources> > > <clone id="IP_5"> > > <meta_attributes id="IP_5_meta_attrs"> > > <attributes> > > <nvpair id="IP_5_metaattr_target_role" name="target_role" value="st > opped"/> > > <nvpair id="IP_5_metaattr_clone_max" name="clone_max" value="2"/> > > <nvpair id="IP_5_metaattr_clone_node_max" name="clone_node_max" val > ue="2"/> > > <nvpair id="IP_5_metaattr_resource_stickiness" name="resource_stick iness" > value="0"/> > > </attributes> > > </meta_attributes> > > <primitive id="resource_IP_5" class="ocf" type="IPaddr2" provider="hear > tbeat"> > > <instance_attributes id="resource_IP_5_instance_attrs"> > > <attributes> > > <nvpair id="19cdeb1d-b7c4-4851-99b8-6c62a2a8de39" name="ip" value > ="192.168.29.156"/> > > <nvpair id="cd13c341-e4bc-43f6-90af-00f97e3a5800" name="nic" valu > e="eth0"/> > > <nvpair id="06d597be-7df9-4546-ae5a-2a0ef088afbb" name="cidr_netm ask" > value="255.255.255.0"/> > > <nvpair id="78eb447b-12b0-418d-a5ee-c484c24e959e" name="mac" valu > e="00:01:02:03:04:05:06"/> > > <nvpair id="5b417cd5-5a6f-4ba1-bb35-3db4dc839803" name="clusterip _hash" > value="sourceip-sourceport-destport"/> > > </attributes> > > </instance_attributes> > > <meta_attributes id="resource_IP_5:0_meta_attrs"> > > <attributes> > > <nvpair id="resource_IP_5:0_metaattr_target_role" name="target_ro le" > value="started"/> > > </attributes> > > </meta_attributes> > > </primitive> > > </clone> > > </resources> > > <constraints> > > <rsc_location id="location_" rsc="IP_5"> > > <rule id="prefered_location_" score="0"> > > <expression attribute="#uname" id="b958f92c-839a-4666-8698-e0c96d0471 9b" > operation="eq" value="server148"/> > > </rule> > > </rsc_location> > > <rsc_location id="location_2" rsc="IP_5"> > > <rule id="prefered_location_2" score="0"> > > <expression attribute="#uname" id="540476fc-3a35-4dd8-87dc-3be82adb65 92" > operation="eq" value="server140"/> > > </rule> > > </rsc_location> > > <rsc_colocation id="colocation_" from="IP_5" to="IP_5" score="INFINITY"/> > > <rsc_order id="order_" from="IP_5" type="after" to="IP_5"/> > > </constraints> > > </configuration> > > </cib> > > [r...@server140 ~]# cat /var/lib/heartbeat/crm/cib.xml |grep more > > [r...@server140 ~]# cat /var/lib/heartbeat/crm/cib.xml > > <cib admin_epoch="0" have_quorum="true" ignore_dtd="false" num_peers="2" > cib_feature_revision="2.0" generated="true" num_updates="1" > ccm_transition="2" dc_uuid="a07fb162-9071-474c-9a9a-ea4b4ef526e7" > epoch="1306" cib-last-written="Mon Jun 15 12:56:56 2009"> > > <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"/> > > <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" > value="true"/> > > <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy" > value="stop"/> > > <nvpair name="last-lrm-refresh" id="cib-bootstrap-options-last-lrm-refresh" > value="1245040474"/> > > <nvpair id="cib-bootstrap-options-default-resource-stickiness" > name="default-resource-stickiness" value="INFINYTY"/> > > <nvpair id="cib-bootstrap-options-dc_deadtime" name="dc_deadtime" > value="0"/> > > </attributes> > > </cluster_property_set> > > </crm_config> > > <nodes> > > <node uname="server148" type="normal" > id="a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > <instance_attributes id="nodes-a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > <attributes> > > <nvpair name="standby" id="standby-a07fb162-9071-474c-9a9a-ea4b4ef526e7" > value="off"/> > > </attributes> > > </instance_attributes> > > </node> > > <node uname="server140" type="normal" > id="c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > <instance_attributes id="nodes-c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > <attributes> > > <nvpair name="standby" id="standby-c7f5251a-3bab-489f-a18f-c1a04ffa1591" > value="off"/> > > </attributes> > > </instance_attributes> > > </node> > > </nodes> > > <resources> > > <clone id="IP_5"> > > <meta_attributes id="IP_5_meta_attrs"> > > <attributes> > > <nvpair id="IP_5_metaattr_target_role" name="target_role" value="stopped"/> > > <nvpair id="IP_5_metaattr_clone_max" name="clone_max" value="2"/> > > <nvpair id="IP_5_metaattr_clone_node_max" name="clone_node_max" value="2"/> > > <nvpair id="IP_5_metaattr_resource_stickiness" name="resource_stickiness" > value="0"/> > > </attributes> > > </meta_attributes> > > <primitive id="resource_IP_5" class="ocf" type="IPaddr2" > provider="heartbeat"> > > <instance_attributes id="resource_IP_5_instance_attrs"> > > <attributes> > > <nvpair id="19cdeb1d-b7c4-4851-99b8-6c62a2a8de39" name="ip" > value="192.168.29.156"/> > > <nvpair id="cd13c341-e4bc-43f6-90af-00f97e3a5800" name="nic" value="eth0"/> > > <nvpair id="06d597be-7df9-4546-ae5a-2a0ef088afbb" name="cidr_netmask" > value="255.255.255.0"/> > > <nvpair id="78eb447b-12b0-418d-a5ee-c484c24e959e" name="mac" > value="00:01:02:03:04:05:06"/> > > <nvpair id="5b417cd5-5a6f-4ba1-bb35-3db4dc839803" name="clusterip_hash" > value="sourceip-sourceport-destport"/> > > </attributes> > > </instance_attributes> > > <meta_attributes id="resource_IP_5:0_meta_attrs"> > > <attributes> > > <nvpair id="resource_IP_5:0_metaattr_target_role" name="target_role" > value="started"/> > > </attributes> > > </meta_attributes> > > </primitive> > > </clone> > > </resources> > > <constraints> > > <rsc_location id="location_" rsc="IP_5"> > > <rule id="prefered_location_" score="0"> > > <expression attribute="#uname" id="b958f92c-839a-4666-8698-e0c96d04719b" > operation="eq" value="server148"/> > > </rule> > > </rsc_location> > > <rsc_location id="location_2" rsc="IP_5"> > > <rule id="prefered_location_2" score="0"> > > <expression attribute="#uname" id="540476fc-3a35-4dd8-87dc-3be82adb6592" > operation="eq" value="server140"/> > > </rule> > > </rsc_location> > > <rsc_colocation id="colocation_" from="IP_5" to="IP_5" score="INFINITY"/> > > <rsc_order id="order_" from="IP_5" type="after" to="IP_5"/> > > </constraints> > > </configuration> > > </cib> > > [r...@server140 ~]# vi /var/lib/heartbeat/crm/cib.xml > > <node uname="server148" type="normal" > id="a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > <instance_attributes id="nodes-a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > <attributes> > > <nvpair name="standby" id="standby-a07fb162-9071-474c-9a9a-ea4b4ef526e7" > value="off"/> > > </attributes> > > </instance_attributes> > > </node> > > <node uname="server140" type="normal" > id="c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > <instance_attributes id="nodes-c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > <attributes> > > <nvpair name="standby" id="standby-c7f5251a-3bab-489f-a18f-c1a04ffa1591" > value="off"/> > > </attributes> > > </instance_attributes> > > </node> > > </nodes> > > <resources> > > <clone id="IP_5"> > > <meta_attributes id="IP_5_meta_attrs"> > > <attributes> > > <nvpair id="IP_5_metaattr_target_role" name="target_role" value="stopped"/> > > <nvpair id="IP_5_metaattr_clone_max" name="clone_max" value="2"/> > > <nvpair id="IP_5_metaattr_clone_node_max" name="clone_node_max" value="2"/> > > <nvpair id="IP_5_metaattr_resource_stickiness" name="resource_stickiness" > value="0"/> > > </attributes> > > </meta_attributes> > > <primitive id="resource_IP_5" class="ocf" type="IPaddr2" > provider="heartbeat"> > > <instance_attributes id="resource_IP_5_instance_attrs"> > > <attributes> > > <nvpair id="19cdeb1d-b7c4-4851-99b8-6c62a2a8de39" name="ip" > value="192.168.29.156"/> > > <nvpair id="cd13c341-e4bc-43f6-90af-00f97e3a5800" name="nic" value="eth0"/> > > <nvpair id="06d597be-7df9-4546-ae5a-2a0ef088afbb" name="cidr_netmask" > value="255.255.255.0"/> > > <nvpair id="78eb447b-12b0-418d-a5ee-c484c24e959e" name="mac" > value="00:01:02:03:04:05:06"/> > > <nvpair id="5b417cd5-5a6f-4ba1-bb35-3db4dc839803" name="clusterip_hash" > value="sourceip-sourceport-destport"/> > > </attributes> > > </instance_attributes> > > <meta_attributes id="resource_IP_5:0_meta_attrs"> > > <attributes> > > <nvpair id="resource_IP_5:0_metaattr_target_role" name="target_role" > value="started"/> > > </attributes> > > </meta_attributes> > > </primitive> > > </clone> > > </resources> > > <constraints> > > <rsc_location id="location_" rsc="IP_5"> > > <rule id="prefered_location_" score="0"> > > <expression attribute="#uname" id="b958f92c-839a-4666-8698-e0c96d04719b" > operation="eq" value="server148"/> > > </rule> > > </rsc_location> > > <rsc_location id="location_2" rsc="IP_5"> > > <rule id="prefered_location_2" score="0"> > > <expression attribute="#uname" id="540476fc-3a35-4dd8-87dc-3be82adb6592" > operation="eq" value="server140"/> > > </rule> > > </rsc_location> > > <rsc_colocation id="colocation_" from="IP_5" to="IP_5" score="INFINITY"/> > > <rsc_order id="order_" from="IP_5" type="after" to="IP_5"/> > > </constraints> > > </configuration> > > </cib > > <rule id="prefered_location_" score="0"> > > <expression attribute="#uname" id="b958f92c-839a-4666-8698-e0c96d0471 9b" > operation="eq" value="server148"/> > > </rule> > > </rsc_location> > > <rsc_location id="location_2" rsc="IP_5"> > > <rule id="prefered_location_2" score="0"> > > <expression attribute="#uname" id="540476fc-3a35-4dd8-87dc-3be82adb65 92" > operation="eq" value="server140"/> > > </rule> > > </rsc_location> > > <rsc_colocation id="colocation_" from="IP_5" to="IP_5" score="INFINITY"/> > > <rsc_order id="order_" from="IP_5" type="after" to="IP_5"/> > > </constraints> > > </configuration> > > </cib> > > [r...@server140 ~]# cat /var/lib/heartbeat/crm/cib.xml > > <cib admin_epoch="0" have_quorum="true" ignore_dtd="false" num_peers="2" > cib_fe ature_revision="2.0" generated="true" num_updates="1" > ccm_transition="2" dc_uuid ="a07fb162-9071-474c-9a9a-ea4b4ef526e7" > epoch="1306" cib-last-written="Mon Jun 1 5 12:56:56 2009"> > > <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"/> > > <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enab led" > value="true"/> > > <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-p > olicy" value="stop"/> > > <nvpair name="last-lrm-refresh" id="cib-bootstrap-options-last-lrm-re > fresh" value="1245040474"/> > > <nvpair id="cib-bootstrap-options-default-resource-stickiness" name=" > default-resource-stickiness" value="INFINYTY"/> > > <nvpair id="cib-bootstrap-options-dc_deadtime" name="dc_deadtime" val > ue="0"/> > > </attributes> > > </cluster_property_set> > > </crm_config> > > <nodes> > > <node uname="server148" type="normal" id="a07fb162-9071-474c-9a9a-ea4b4ef > 526e7"> > > <instance_attributes id="nodes-a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > <attributes> > > <nvpair name="standby" id="standby-a07fb162-9071-474c-9a9a-ea4b4ef5 26e7" > value="off"/> > > </attributes> > > </instance_attributes> > > </node> > > <node uname="server140" type="normal" id="c7f5251a-3bab-489f-a18f-c1a04ff > a1591"> > > <instance_attributes id="nodes-c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > <attributes> > > <nvpair name="standby" id="standby-c7f5251a-3bab-489f-a18f-c1a04ffa 1591" > value="off"/> > > </attributes> > > </instance_attributes> > > </node> > > </nodes> > > <resources> > > <clone id="IP_5"> > > <meta_attributes id="IP_5_meta_attrs"> > > <attributes> > > <nvpair id="IP_5_metaattr_target_role" name="target_role" value="st > opped"/> > > <nvpair id="IP_5_metaattr_clone_max" name="clone_max" value="2"/> > > <nvpair id="IP_5_metaattr_clone_node_max" name="clone_node_max" val > ue="2"/> > > <nvpair id="IP_5_metaattr_resource_stickiness" name="resource_stick iness" > value="0"/> > > </attributes> > > </meta_attributes> > > <primitive id="resource_IP_5" class="ocf" type="IPaddr2" provider="hear > tbeat"> > > <instance_attributes id="resource_IP_5_instance_attrs"> > > <attributes> > > <nvpair id="19cdeb1d-b7c4-4851-99b8-6c62a2a8de39" name="ip" value > ="192.168.29.156"/> > > <nvpair id="cd13c341-e4bc-43f6-90af-00f97e3a5800" name="nic" valu > e="eth0"/> > > <nvpair id="06d597be-7df9-4546-ae5a-2a0ef088afbb" name="cidr_netm ask" > value="255.255.255.0"/> > > <nvpair id="78eb447b-12b0-418d-a5ee-c484c24e959e" name="mac" valu > e="00:01:02:03:04:05:06"/> > > <nvpair id="5b417cd5-5a6f-4ba1-bb35-3db4dc839803" name="clusterip _hash" > value="sourceip-sourceport-destport"/> > > </attributes> > > </instance_attributes> > > <meta_attributes id="resource_IP_5:0_meta_attrs"> > > <attributes> > > <nvpair id="resource_IP_5:0_metaattr_target_role" name="target_ro le" > value="started"/> > > </attributes> > > </meta_attributes> > > </primitive> > > </clone> > > </resources> > > <constraints> > > <rsc_location id="location_" rsc="IP_5"> > > <rule id="prefered_location_" score="0"> > > <expression attribute="#uname" id="b958f92c-839a-4666-8698-e0c96d0471 9b" > operation="eq" value="server148"/> > > </rule> > > </rsc_location> > > <rsc_location id="location_2" rsc="IP_5"> > > <rule id="prefered_location_2" score="0"> > > <expression attribute="#uname" id="540476fc-3a35-4dd8-87dc-3be82adb65 92" > operation="eq" value="server140"/> > > </rule> > > </rsc_location> > > <rsc_colocation id="colocation_" from="IP_5" to="IP_5" score="INFINITY"/> > > <rsc_order id="order_" from="IP_5" type="after" to="IP_5"/> > > </constraints> > > </configuration> > > </cib> > > [r...@server140 ~]# cat /var/lib/heartbeat/crm/cib.xml |grep more > > [r...@server140 ~]# cat /var/lib/heartbeat/crm/cib.xml > > <cib admin_epoch="0" have_quorum="true" ignore_dtd="false" num_peers="2" > cib_feature_revision="2.0" generated="true" num_updates="1" > ccm_transition="2" dc_uuid="a07fb162-9071-474c-9a9a-ea4b4ef526e7" > epoch="1306" cib-last-written="Mon Jun 15 12:56:56 2009"> > > <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"/> > > <nvpair id="cib-bootstrap-options-stonith-enabled" name="stonith-enabled" > value="true"/> > > <nvpair id="cib-bootstrap-options-no-quorum-policy" name="no-quorum-policy" > value="stop"/> > > <nvpair name="last-lrm-refresh" id="cib-bootstrap-options-last-lrm-refresh" > value="1245040474"/> > > <nvpair id="cib-bootstrap-options-default-resource-stickiness" > name="default-resource-stickiness" value="INFINYTY"/> > > <nvpair id="cib-bootstrap-options-dc_deadtime" name="dc_deadtime" > value="0"/> > > </attributes> > > </cluster_property_set> > > </crm_config> > > <nodes> > > <node uname="server148" type="normal" > id="a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > <instance_attributes id="nodes-a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > <attributes> > > <nvpair name="standby" id="standby-a07fb162-9071-474c-9a9a-ea4b4ef526e7" > value="off"/> > > </attributes> > > </instance_attributes> > > </node> > > <node uname="server140" type="normal" > id="c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > <instance_attributes id="nodes-c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > <attributes> > > <nvpair name="standby" id="standby-c7f5251a-3bab-489f-a18f-c1a04ffa1591" > value="off"/> > > </attributes> > > </instance_attributes> > > </node> > > </nodes> > > <resources> > > <clone id="IP_5"> > > <meta_attributes id="IP_5_meta_attrs"> > > <attributes> > > <nvpair id="IP_5_metaattr_target_role" name="target_role" value="stopped"/> > > <nvpair id="IP_5_metaattr_clone_max" name="clone_max" value="2"/> > > <nvpair id="IP_5_metaattr_clone_node_max" name="clone_node_max" value="2"/> > > <nvpair id="IP_5_metaattr_resource_stickiness" name="resource_stickiness" > value="0"/> > > </attributes> > > </meta_attributes> > > <primitive id="resource_IP_5" class="ocf" type="IPaddr2" > provider="heartbeat"> > > <instance_attributes id="resource_IP_5_instance_attrs"> > > <attributes> > > <nvpair id="19cdeb1d-b7c4-4851-99b8-6c62a2a8de39" name="ip" > value="192.168.29.156"/> > > <nvpair id="cd13c341-e4bc-43f6-90af-00f97e3a5800" name="nic" value="eth0"/> > > <nvpair id="06d597be-7df9-4546-ae5a-2a0ef088afbb" name="cidr_netmask" > value="255.255.255.0"/> > > <nvpair id="78eb447b-12b0-418d-a5ee-c484c24e959e" name="mac" > value="00:01:02:03:04:05:06"/> > > <nvpair id="5b417cd5-5a6f-4ba1-bb35-3db4dc839803" name="clusterip_hash" > value="sourceip-sourceport-destport"/> > > </attributes> > > </instance_attributes> > > <meta_attributes id="resource_IP_5:0_meta_attrs"> > > <attributes> > > <nvpair id="resource_IP_5:0_metaattr_target_role" name="target_role" > value="started"/> > > </attributes> > > </meta_attributes> > > </primitive> > > </clone> > > </resources> > > <constraints> > > <rsc_location id="location_" rsc="IP_5"> > > <rule id="prefered_location_" score="0"> > > <expression attribute="#uname" id="b958f92c-839a-4666-8698-e0c96d04719b" > operation="eq" value="server148"/> > > </rule> > > </rsc_location> > > <rsc_location id="location_2" rsc="IP_5"> > > <rule id="prefered_location_2" score="0"> > > <expression attribute="#uname" id="540476fc-3a35-4dd8-87dc-3be82adb6592" > operation="eq" value="server140"/> > > </rule> > > </rsc_location> > > <rsc_colocation id="colocation_" from="IP_5" to="IP_5" score="INFINITY"/> > > <rsc_order id="order_" from="IP_5" type="after" to="IP_5"/> > > </constraints> > > </configuration> > > </cib> > > [r...@server140 ~]# vi /var/lib/heartbeat/crm/cib.xml > > [r...@server140 ~]# cat /etc/ha.d/ha.cf > > #use_logd on > > #crm yes > > ## Allow to add dynamically a new node to the cluster > > ##autojoin any > > udpport 694 > > bcast eth0 > > auto_failback on > > mcast eth0 225.0.0.1 694 1 0 > > node server140 > > node server148 > > crm on > > [r...@server140 ~]# r...@server140 ~]# cat /etc/ha.d/ha.cf > > auto_failback on > > mcast eth0 225.0.0.1 694 1 0 > > node server140 > > node server148 > > crm on > > Please you help me > > 2009/6/17 Nikita Michalko <[email protected]> > > > Hi Bui Manh, > > > > Am Mittwoch, 17. Juni 2009 12:40 schrieb Bui Manh Nam: > > > thank you very much > > > I don't understand the following > > > cib.xml file > > > > - I don't understand what you didn't understand exactly: the whole > > cib.xml ? Please be more exact/informative ... > > Which OS do you use? Any logs? Which version of HA? If this is < 2.1, > > then I > > strongly advise to upgrade at least to V.2.1.4! > > > > Nikita Michalko > > > > > <nvpair id="cib-bootstrap-options-dc_deadtime" > > > name="dc_deadtime" val > > > ue="0"/> > > > </attributes> > > > </cluster_property_set> > > > </crm_config> > > > <nodes> > > > <node uname="server148" type="normal" > > > id="a07fb162-9071-474c-9a9a-ea4b4ef > > > 526e7"> > > > <instance_attributes > > > id="nodes-a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > > <attributes> > > > <nvpair name="standby" > > > id="standby-a07fb162-9071-474c-9a9a-ea4b4ef5 > > > 26e7" value="off"/> > > > </attributes> > > > </instance_attributes> > > > </node> > > > <node uname="server140" type="normal" > > > id="c7f5251a-3bab-489f-a18f-c1a04ff > > > a1591"> > > > <instance_attributes > > > id="nodes-c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > > <attributes> > > > <nvpair name="standby" > > > id="standby-c7f5251a-3bab-489f-a18f-c1a04ffa > > > 1591" value="off"/> > > > </attributes> > > > </instance_attributes> > > > </node> > > > </nodes> > > > <resources> > > > <clone id="IP_5"> > > > <meta_attributes id="IP_5_meta_attrs"> > > > <attributes> > > > <nvpair id="IP_5_metaattr_target_role" name="target_role" > > > value="st > > > opped"/> > > > <nvpair id="IP_5_metaattr_clone_max" name="clone_max" > > > value="2"/> > > > <nvpair id="IP_5_metaattr_clone_node_max" > > > name="clone_node_max" val > > > ue="2"/> > > > <nvpair id="IP_5_metaattr_resource_stickiness" > > > name="resource_stick > > > iness" value="0"/> > > > </attributes> > > > </meta_attributes> > > > <primitive id="resource_IP_5" class="ocf" type="IPaddr2" > > > provider="hear > > > tbeat"> > > > <instance_attributes id="resource_IP_5_instance_attrs"> > > > <attributes> > > > <nvpair id="19cdeb1d-b7c4-4851-99b8-6c62a2a8de39" > > > > name="ip" > > > > > value > > > ="192.168.29.156"/> > > > <nvpair id="cd13c341-e4bc-43f6-90af-00f97e3a5800" > > > > name="nic" > > > > > valu > > > e="eth0"/> > > > <nvpair id="06d597be-7df9-4546-ae5a-2a0ef088afbb" > > > name="cidr_netm > > > ask" value="255.255.255.0"/> > > > <nvpair id="78eb447b-12b0-418d-a5ee-c484c24e959e" > > > > name="mac" > > > > > valu > > > e="00:01:02:03:04:05:06"/> > > > <nvpair id="5b417cd5-5a6f-4ba1-bb35-3db4dc839803" > > > name="clusterip > > > _hash" value="sourceip-sourceport-destport"/> > > > </attributes> > > > </instance_attributes> > > > <meta_attributes id="resource_IP_5:0_meta_attrs"> > > > <attributes> > > > <nvpair id="resource_IP_5:0_metaattr_target_role" > > > name="target_ro > > > le" value="started"/> > > > </attributes> > > > </meta_attributes> > > > </primitive> > > > </clone> > > > </resources> > > > <constraints> > > > <rsc_location id="location_" rsc="IP_5"> > > > <rule id="prefered_location_" score="0"> > > > <expression attribute="#uname" > > > id="b958f92c-839a-4666-8698-e0c96d0471 > > > 9b" operation="eq" value="server148"/> > > > </rule> > > > </rsc_location> > > > <rsc_location id="location_2" rsc="IP_5"> > > > <rule id="prefered_location_2" score="0"> > > > <expression attribute="#uname" > > > id="540476fc-3a35-4dd8-87dc-3be82adb65 > > > 92" operation="eq" value="server140"/> > > > </rule> > > > </rsc_location> > > > <rsc_colocation id="colocation_" from="IP_5" to="IP_5" > > > score="INFINITY"/> > > > <rsc_order id="order_" from="IP_5" type="after" to="IP_5"/> > > > </constraints> > > > </configuration> > > > </cib> > > > [r...@server140 ~]# cat /var/lib/heartbeat/crm/cib.xml > > > <cib admin_epoch="0" have_quorum="true" ignore_dtd="false" > > > num_peers="2" cib_fe > > > ature_revision="2.0" generated="true" num_updates="1" > > > ccm_transition="2" dc_uuid > > > ="a07fb162-9071-474c-9a9a-ea4b4ef526e7" epoch="1306" > > > > cib-last-written="Mon > > > > > Jun > > > 1 > > > 5 12:56:56 2009"> > > > <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"/> > > > <nvpair id="cib-bootstrap-options-stonith-enabled" > > > name="stonith-enab > > > led" value="true"/> > > > <nvpair id="cib-bootstrap-options-no-quorum-policy" > > > name="no-quorum-p > > > olicy" value="stop"/> > > > <nvpair name="last-lrm-refresh" > > > id="cib-bootstrap-options-last-lrm-re > > > fresh" value="1245040474"/> > > > <nvpair > > > id="cib-bootstrap-options-default-resource-stickiness" name=" > > > default-resource-stickiness" value="INFINYTY"/> > > > <nvpair id="cib-bootstrap-options-dc_deadtime" > > > name="dc_deadtime" val > > > ue="0"/> > > > </attributes> > > > </cluster_property_set> > > > </crm_config> > > > <nodes> > > > <node uname="server148" type="normal" > > > id="a07fb162-9071-474c-9a9a-ea4b4ef > > > 526e7"> > > > <instance_attributes > > > id="nodes-a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > > <attributes> > > > <nvpair name="standby" > > > id="standby-a07fb162-9071-474c-9a9a-ea4b4ef5 > > > 26e7" value="off"/> > > > </attributes> > > > </instance_attributes> > > > </node> > > > <node uname="server140" type="normal" > > > id="c7f5251a-3bab-489f-a18f-c1a04ff > > > a1591"> > > > <instance_attributes > > > id="nodes-c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > > <attributes> > > > <nvpair name="standby" > > > id="standby-c7f5251a-3bab-489f-a18f-c1a04ffa > > > 1591" value="off"/> > > > </attributes> > > > </instance_attributes> > > > </node> > > > </nodes> > > > <resources> > > > <clone id="IP_5"> > > > <meta_attributes id="IP_5_meta_attrs"> > > > <attributes> > > > <nvpair id="IP_5_metaattr_target_role" name="target_role" > > > value="st > > > opped"/> > > > <nvpair id="IP_5_metaattr_clone_max" name="clone_max" > > > value="2"/> > > > <nvpair id="IP_5_metaattr_clone_node_max" > > > name="clone_node_max" val > > > ue="2"/> > > > <nvpair id="IP_5_metaattr_resource_stickiness" > > > name="resource_stick > > > iness" value="0"/> > > > </attributes> > > > </meta_attributes> > > > <primitive id="resource_IP_5" class="ocf" type="IPaddr2" > > > provider="hear > > > tbeat"> > > > <instance_attributes id="resource_IP_5_instance_attrs"> > > > <attributes> > > > <nvpair id="19cdeb1d-b7c4-4851-99b8-6c62a2a8de39" > > > > name="ip" > > > > > value > > > ="192.168.29.156"/> > > > <nvpair id="cd13c341-e4bc-43f6-90af-00f97e3a5800" > > > > name="nic" > > > > > valu > > > e="eth0"/> > > > <nvpair id="06d597be-7df9-4546-ae5a-2a0ef088afbb" > > > name="cidr_netm > > > ask" value="255.255.255.0"/> > > > <nvpair id="78eb447b-12b0-418d-a5ee-c484c24e959e" > > > > name="mac" > > > > > valu > > > e="00:01:02:03:04:05:06"/> > > > <nvpair id="5b417cd5-5a6f-4ba1-bb35-3db4dc839803" > > > name="clusterip > > > _hash" value="sourceip-sourceport-destport"/> > > > </attributes> > > > </instance_attributes> > > > <meta_attributes id="resource_IP_5:0_meta_attrs"> > > > <attributes> > > > <nvpair id="resource_IP_5:0_metaattr_target_role" > > > name="target_ro > > > le" value="started"/> > > > </attributes> > > > </meta_attributes> > > > </primitive> > > > </clone> > > > </resources> > > > <constraints> > > > <rsc_location id="location_" rsc="IP_5"> > > > <rule id="prefered_location_" score="0"> > > > <expression attribute="#uname" > > > id="b958f92c-839a-4666-8698-e0c96d0471 > > > 9b" operation="eq" value="server148"/> > > > </rule> > > > </rsc_location> > > > <rsc_location id="location_2" rsc="IP_5"> > > > <rule id="prefered_location_2" score="0"> > > > <expression attribute="#uname" > > > id="540476fc-3a35-4dd8-87dc-3be82adb65 > > > 92" operation="eq" value="server140"/> > > > </rule> > > > </rsc_location> > > > <rsc_colocation id="colocation_" from="IP_5" to="IP_5" > > > score="INFINITY"/> > > > <rsc_order id="order_" from="IP_5" type="after" to="IP_5"/> > > > </constraints> > > > </configuration> > > > </cib> > > > [r...@server140 ~]# cat /var/lib/heartbeat/crm/cib.xml |grep more > > > [r...@server140 ~]# cat /var/lib/heartbeat/crm/cib.xml > > > <cib admin_epoch="0" have_quorum="true" ignore_dtd="false" > > > num_peers="2" cib_feature_revision="2.0" generated="true" > > > num_updates="1" > > > ccm_transition="2" dc_uuid="a07fb162-9071-474c-9a9a-ea4b4ef526e7" > > > epoch="1306" cib-last-written="Mon Jun 15 12:56:56 2009"> > > > <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"/> > > > <nvpair id="cib-bootstrap-options-stonith-enabled" > > > name="stonith-enabled" value="true"/> > > > <nvpair id="cib-bootstrap-options-no-quorum-policy" > > > name="no-quorum-policy" value="stop"/> > > > <nvpair name="last-lrm-refresh" > > > id="cib-bootstrap-options-last-lrm-refresh" value="1245040474"/> > > > <nvpair > > > id="cib-bootstrap-options-default-resource-stickiness" > > > name="default-resource-stickiness" value="INFINYTY"/> > > > <nvpair id="cib-bootstrap-options-dc_deadtime" > > > name="dc_deadtime" value="0"/> > > > </attributes> > > > </cluster_property_set> > > > </crm_config> > > > <nodes> > > > <node uname="server148" type="normal" > > > id="a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > > <instance_attributes > > > id="nodes-a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > > <attributes> > > > <nvpair name="standby" > > > id="standby-a07fb162-9071-474c-9a9a-ea4b4ef526e7" value="off"/> > > > </attributes> > > > </instance_attributes> > > > </node> > > > <node uname="server140" type="normal" > > > id="c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > > <instance_attributes > > > id="nodes-c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > > <attributes> > > > <nvpair name="standby" > > > id="standby-c7f5251a-3bab-489f-a18f-c1a04ffa1591" value="off"/> > > > </attributes> > > > </instance_attributes> > > > </node> > > > </nodes> > > > <resources> > > > <clone id="IP_5"> > > > <meta_attributes id="IP_5_meta_attrs"> > > > <attributes> > > > <nvpair id="IP_5_metaattr_target_role" name="target_role" > > > value="stopped"/> > > > <nvpair id="IP_5_metaattr_clone_max" name="clone_max" > > > value="2"/> > > > <nvpair id="IP_5_metaattr_clone_node_max" > > > name="clone_node_max" value="2"/> > > > <nvpair id="IP_5_metaattr_resource_stickiness" > > > name="resource_stickiness" value="0"/> > > > </attributes> > > > </meta_attributes> > > > <primitive id="resource_IP_5" class="ocf" type="IPaddr2" > > > provider="heartbeat"> > > > <instance_attributes id="resource_IP_5_instance_attrs"> > > > <attributes> > > > <nvpair id="19cdeb1d-b7c4-4851-99b8-6c62a2a8de39" > > > > name="ip" > > > > > value="192.168.29.156"/> > > > <nvpair id="cd13c341-e4bc-43f6-90af-00f97e3a5800" > > > > name="nic" > > > > > value="eth0"/> > > > <nvpair id="06d597be-7df9-4546-ae5a-2a0ef088afbb" > > > name="cidr_netmask" value="255.255.255.0"/> > > > <nvpair id="78eb447b-12b0-418d-a5ee-c484c24e959e" > > > > name="mac" > > > > > value="00:01:02:03:04:05:06"/> > > > <nvpair id="5b417cd5-5a6f-4ba1-bb35-3db4dc839803" > > > name="clusterip_hash" value="sourceip-sourceport-destport"/> > > > </attributes> > > > </instance_attributes> > > > <meta_attributes id="resource_IP_5:0_meta_attrs"> > > > <attributes> > > > <nvpair id="resource_IP_5:0_metaattr_target_role" > > > name="target_role" value="started"/> > > > </attributes> > > > </meta_attributes> > > > </primitive> > > > </clone> > > > </resources> > > > <constraints> > > > <rsc_location id="location_" rsc="IP_5"> > > > <rule id="prefered_location_" score="0"> > > > <expression attribute="#uname" > > > id="b958f92c-839a-4666-8698-e0c96d04719b" operation="eq" > > > value="server148"/> </rule> > > > </rsc_location> > > > <rsc_location id="location_2" rsc="IP_5"> > > > <rule id="prefered_location_2" score="0"> > > > <expression attribute="#uname" > > > id="540476fc-3a35-4dd8-87dc-3be82adb6592" operation="eq" > > > value="server140"/> </rule> > > > </rsc_location> > > > <rsc_colocation id="colocation_" from="IP_5" to="IP_5" > > > score="INFINITY"/> > > > <rsc_order id="order_" from="IP_5" type="after" to="IP_5"/> > > > </constraints> > > > </configuration> > > > </cib> > > > [r...@server140 ~]# vi /var/lib/heartbeat/crm/cib.xml > > > <node uname="server148" type="normal" > > > id="a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > > <instance_attributes > > > id="nodes-a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > > <attributes> > > > <nvpair name="standby" > > > id="standby-a07fb162-9071-474c-9a9a-ea4b4ef526e7" value="off"/> > > > </attributes> > > > </instance_attributes> > > > </node> > > > <node uname="server140" type="normal" > > > id="c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > > <instance_attributes > > > id="nodes-c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > > <attributes> > > > <nvpair name="standby" > > > id="standby-c7f5251a-3bab-489f-a18f-c1a04ffa1591" value="off"/> > > > </attributes> > > > </instance_attributes> > > > </node> > > > </nodes> > > > <resources> > > > <clone id="IP_5"> > > > <meta_attributes id="IP_5_meta_attrs"> > > > <attributes> > > > <nvpair id="IP_5_metaattr_target_role" name="target_role" > > > value="stopped"/> > > > <nvpair id="IP_5_metaattr_clone_max" name="clone_max" > > > value="2"/> > > > <nvpair id="IP_5_metaattr_clone_node_max" > > > name="clone_node_max" value="2"/> > > > <nvpair id="IP_5_metaattr_resource_stickiness" > > > name="resource_stickiness" value="0"/> > > > </attributes> > > > </meta_attributes> > > > <primitive id="resource_IP_5" class="ocf" type="IPaddr2" > > > provider="heartbeat"> > > > <instance_attributes id="resource_IP_5_instance_attrs"> > > > <attributes> > > > <nvpair id="19cdeb1d-b7c4-4851-99b8-6c62a2a8de39" > > > > name="ip" > > > > > value="192.168.29.156"/> > > > <nvpair id="cd13c341-e4bc-43f6-90af-00f97e3a5800" > > > > name="nic" > > > > > value="eth0"/> > > > <nvpair id="06d597be-7df9-4546-ae5a-2a0ef088afbb" > > > name="cidr_netmask" value="255.255.255.0"/> > > > <nvpair id="78eb447b-12b0-418d-a5ee-c484c24e959e" > > > > name="mac" > > > > > value="00:01:02:03:04:05:06"/> > > > <nvpair id="5b417cd5-5a6f-4ba1-bb35-3db4dc839803" > > > name="clusterip_hash" value="sourceip-sourceport-destport"/> > > > </attributes> > > > </instance_attributes> > > > <meta_attributes id="resource_IP_5:0_meta_attrs"> > > > <attributes> > > > <nvpair id="resource_IP_5:0_metaattr_target_role" > > > name="target_role" value="started"/> > > > </attributes> > > > </meta_attributes> > > > </primitive> > > > </clone> > > > </resources> > > > <constraints> > > > <rsc_location id="location_" rsc="IP_5"> > > > <rule id="prefered_location_" score="0"> > > > <expression attribute="#uname" > > > id="b958f92c-839a-4666-8698-e0c96d04719b" operation="eq" > > > value="server148"/> </rule> > > > </rsc_location> > > > <rsc_location id="location_2" rsc="IP_5"> > > > <rule id="prefered_location_2" score="0"> > > > <expression attribute="#uname" > > > id="540476fc-3a35-4dd8-87dc-3be82adb6592" operation="eq" > > > value="server140"/> </rule> > > > </rsc_location> > > > <rsc_colocation id="colocation_" from="IP_5" to="IP_5" > > > score="INFINITY"/> > > > <rsc_order id="order_" from="IP_5" type="after" to="IP_5"/> > > > </constraints> > > > </configuration> > > > </cib > > > > > > <rule id="prefered_location_" score="0"> > > > <expression attribute="#uname" > > > id="b958f92c-839a-4666-8698-e0c96d0471 > > > 9b" operation="eq" value="server148"/> > > > </rule> > > > </rsc_location> > > > <rsc_location id="location_2" rsc="IP_5"> > > > <rule id="prefered_location_2" score="0"> > > > <expression attribute="#uname" > > > id="540476fc-3a35-4dd8-87dc-3be82adb65 > > > 92" operation="eq" value="server140"/> > > > </rule> > > > </rsc_location> > > > <rsc_colocation id="colocation_" from="IP_5" to="IP_5" > > > score="INFINITY"/> > > > <rsc_order id="order_" from="IP_5" type="after" to="IP_5"/> > > > </constraints> > > > </configuration> > > > </cib> > > > [r...@server140 ~]# cat /var/lib/heartbeat/crm/cib.xml > > > <cib admin_epoch="0" have_quorum="true" ignore_dtd="false" > > > num_peers="2" cib_fe > > > ature_revision="2.0" generated="true" num_updates="1" > > > ccm_transition="2" dc_uuid > > > ="a07fb162-9071-474c-9a9a-ea4b4ef526e7" epoch="1306" > > > > cib-last-written="Mon > > > > > Jun > > > 1 > > > 5 12:56:56 2009"> > > > <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"/> > > > <nvpair id="cib-bootstrap-options-stonith-enabled" > > > name="stonith-enab > > > led" value="true"/> > > > <nvpair id="cib-bootstrap-options-no-quorum-policy" > > > name="no-quorum-p > > > olicy" value="stop"/> > > > <nvpair name="last-lrm-refresh" > > > id="cib-bootstrap-options-last-lrm-re > > > fresh" value="1245040474"/> > > > <nvpair > > > id="cib-bootstrap-options-default-resource-stickiness" name=" > > > default-resource-stickiness" value="INFINYTY"/> > > > <nvpair id="cib-bootstrap-options-dc_deadtime" > > > name="dc_deadtime" val > > > ue="0"/> > > > </attributes> > > > </cluster_property_set> > > > </crm_config> > > > <nodes> > > > <node uname="server148" type="normal" > > > id="a07fb162-9071-474c-9a9a-ea4b4ef > > > 526e7"> > > > <instance_attributes > > > id="nodes-a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > > <attributes> > > > <nvpair name="standby" > > > id="standby-a07fb162-9071-474c-9a9a-ea4b4ef5 > > > 26e7" value="off"/> > > > </attributes> > > > </instance_attributes> > > > </node> > > > <node uname="server140" type="normal" > > > id="c7f5251a-3bab-489f-a18f-c1a04ff > > > a1591"> > > > <instance_attributes > > > id="nodes-c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > > <attributes> > > > <nvpair name="standby" > > > id="standby-c7f5251a-3bab-489f-a18f-c1a04ffa > > > 1591" value="off"/> > > > </attributes> > > > </instance_attributes> > > > </node> > > > </nodes> > > > <resources> > > > <clone id="IP_5"> > > > <meta_attributes id="IP_5_meta_attrs"> > > > <attributes> > > > <nvpair id="IP_5_metaattr_target_role" name="target_role" > > > value="st > > > opped"/> > > > <nvpair id="IP_5_metaattr_clone_max" name="clone_max" > > > value="2"/> > > > <nvpair id="IP_5_metaattr_clone_node_max" > > > name="clone_node_max" val > > > ue="2"/> > > > <nvpair id="IP_5_metaattr_resource_stickiness" > > > name="resource_stick > > > iness" value="0"/> > > > </attributes> > > > </meta_attributes> > > > <primitive id="resource_IP_5" class="ocf" type="IPaddr2" > > > provider="hear > > > tbeat"> > > > <instance_attributes id="resource_IP_5_instance_attrs"> > > > <attributes> > > > <nvpair id="19cdeb1d-b7c4-4851-99b8-6c62a2a8de39" > > > > name="ip" > > > > > value > > > ="192.168.29.156"/> > > > <nvpair id="cd13c341-e4bc-43f6-90af-00f97e3a5800" > > > > name="nic" > > > > > valu > > > e="eth0"/> > > > <nvpair id="06d597be-7df9-4546-ae5a-2a0ef088afbb" > > > name="cidr_netm > > > ask" value="255.255.255.0"/> > > > <nvpair id="78eb447b-12b0-418d-a5ee-c484c24e959e" > > > > name="mac" > > > > > valu > > > e="00:01:02:03:04:05:06"/> > > > <nvpair id="5b417cd5-5a6f-4ba1-bb35-3db4dc839803" > > > name="clusterip > > > _hash" value="sourceip-sourceport-destport"/> > > > </attributes> > > > </instance_attributes> > > > <meta_attributes id="resource_IP_5:0_meta_attrs"> > > > <attributes> > > > <nvpair id="resource_IP_5:0_metaattr_target_role" > > > name="target_ro > > > le" value="started"/> > > > </attributes> > > > </meta_attributes> > > > </primitive> > > > </clone> > > > </resources> > > > <constraints> > > > <rsc_location id="location_" rsc="IP_5"> > > > <rule id="prefered_location_" score="0"> > > > <expression attribute="#uname" > > > id="b958f92c-839a-4666-8698-e0c96d0471 > > > 9b" operation="eq" value="server148"/> > > > </rule> > > > </rsc_location> > > > <rsc_location id="location_2" rsc="IP_5"> > > > <rule id="prefered_location_2" score="0"> > > > <expression attribute="#uname" > > > id="540476fc-3a35-4dd8-87dc-3be82adb65 > > > 92" operation="eq" value="server140"/> > > > </rule> > > > </rsc_location> > > > <rsc_colocation id="colocation_" from="IP_5" to="IP_5" > > > score="INFINITY"/> > > > <rsc_order id="order_" from="IP_5" type="after" to="IP_5"/> > > > </constraints> > > > </configuration> > > > </cib> > > > [r...@server140 ~]# cat /var/lib/heartbeat/crm/cib.xml |grep more > > > [r...@server140 ~]# cat /var/lib/heartbeat/crm/cib.xml > > > <cib admin_epoch="0" have_quorum="true" ignore_dtd="false" > > > num_peers="2" cib_feature_revision="2.0" generated="true" > > > num_updates="1" > > > ccm_transition="2" dc_uuid="a07fb162-9071-474c-9a9a-ea4b4ef526e7" > > > epoch="1306" cib-last-written="Mon Jun 15 12:56:56 2009"> > > > <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"/> > > > <nvpair id="cib-bootstrap-options-stonith-enabled" > > > name="stonith-enabled" value="true"/> > > > <nvpair id="cib-bootstrap-options-no-quorum-policy" > > > name="no-quorum-policy" value="stop"/> > > > <nvpair name="last-lrm-refresh" > > > id="cib-bootstrap-options-last-lrm-refresh" value="1245040474"/> > > > <nvpair > > > id="cib-bootstrap-options-default-resource-stickiness" > > > name="default-resource-stickiness" value="INFINYTY"/> > > > <nvpair id="cib-bootstrap-options-dc_deadtime" > > > name="dc_deadtime" value="0"/> > > > </attributes> > > > </cluster_property_set> > > > </crm_config> > > > <nodes> > > > <node uname="server148" type="normal" > > > id="a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > > <instance_attributes > > > id="nodes-a07fb162-9071-474c-9a9a-ea4b4ef526e7"> > > > <attributes> > > > <nvpair name="standby" > > > id="standby-a07fb162-9071-474c-9a9a-ea4b4ef526e7" value="off"/> > > > </attributes> > > > </instance_attributes> > > > </node> > > > <node uname="server140" type="normal" > > > id="c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > > <instance_attributes > > > id="nodes-c7f5251a-3bab-489f-a18f-c1a04ffa1591"> > > > <attributes> > > > <nvpair name="standby" > > > id="standby-c7f5251a-3bab-489f-a18f-c1a04ffa1591" value="off"/> > > > </attributes> > > > </instance_attributes> > > > </node> > > > </nodes> > > > <resources> > > > <clone id="IP_5"> > > > <meta_attributes id="IP_5_meta_attrs"> > > > <attributes> > > > <nvpair id="IP_5_metaattr_target_role" name="target_role" > > > value="stopped"/> > > > <nvpair id="IP_5_metaattr_clone_max" name="clone_max" > > > value="2"/> > > > <nvpair id="IP_5_metaattr_clone_node_max" > > > name="clone_node_max" value="2"/> > > > <nvpair id="IP_5_metaattr_resource_stickiness" > > > name="resource_stickiness" value="0"/> > > > </attributes> > > > </meta_attributes> > > > <primitive id="resource_IP_5" class="ocf" type="IPaddr2" > > > provider="heartbeat"> > > > <instance_attributes id="resource_IP_5_instance_attrs"> > > > <attributes> > > > <nvpair id="19cdeb1d-b7c4-4851-99b8-6c62a2a8de39" > > > > name="ip" > > > > > value="192.168.29.156"/> > > > <nvpair id="cd13c341-e4bc-43f6-90af-00f97e3a5800" > > > > name="nic" > > > > > value="eth0"/> > > > <nvpair id="06d597be-7df9-4546-ae5a-2a0ef088afbb" > > > name="cidr_netmask" value="255.255.255.0"/> > > > <nvpair id="78eb447b-12b0-418d-a5ee-c484c24e959e" > > > > name="mac" > > > > > value="00:01:02:03:04:05:06"/> > > > <nvpair id="5b417cd5-5a6f-4ba1-bb35-3db4dc839803" > > > name="clusterip_hash" value="sourceip-sourceport-destport"/> > > > </attributes> > > > </instance_attributes> > > > <meta_attributes id="resource_IP_5:0_meta_attrs"> > > > <attributes> > > > <nvpair id="resource_IP_5:0_metaattr_target_role" > > > name="target_role" value="started"/> > > > </attributes> > > > </meta_attributes> > > > </primitive> > > > </clone> > > > </resources> > > > <constraints> > > > <rsc_location id="location_" rsc="IP_5"> > > > <rule id="prefered_location_" score="0"> > > > <expression attribute="#uname" > > > id="b958f92c-839a-4666-8698-e0c96d04719b" operation="eq" > > > value="server148"/> </rule> > > > </rsc_location> > > > <rsc_location id="location_2" rsc="IP_5"> > > > <rule id="prefered_location_2" score="0"> > > > <expression attribute="#uname" > > > id="540476fc-3a35-4dd8-87dc-3be82adb6592" operation="eq" > > > value="server140"/> </rule> > > > </rsc_location> > > > <rsc_colocation id="colocation_" from="IP_5" to="IP_5" > > > score="INFINITY"/> > > > <rsc_order id="order_" from="IP_5" type="after" to="IP_5"/> > > > </constraints> > > > </configuration> > > > </cib> > > > [r...@server140 ~]# vi /var/lib/heartbeat/crm/cib.xml > > > [r...@server140 ~]# cat /etc/ha.d/ha.cf > > > #use_logd on > > > #crm yes > > > ## Allow to add dynamically a new node to the cluster > > > ##autojoin any > > > udpport 694 > > > bcast eth0 > > > auto_failback on > > > mcast eth0 225.0.0.1 694 1 0 > > > node server140 > > > node server148 > > > crm on > > > [r...@server140 ~]# r...@server140 ~]# cat /etc/ha.d/ha.cf > > > auto_failback on > > > mcast eth0 225.0.0.1 694 1 0 > > > node server140 > > > node server148 > > > crm on <o...@server140> > > > > > > Please you help me > > > > > > nikita Michalko <[email protected]> > > > > > > > Hi bui manh, > > > > > > > > Am Mittwoch, 17. Juni 2009 05:31 schrieb [email protected]: > > > > > Hi all > > > > > my name is bui manh nam, i have a problem as the following: > > > > > I have already installed heartbeat* on server140 which ip address > > > > > is 192.168.29.140, other server148 with the address 192.168.29.148 > > > > > VIP: 192.168.29.156 > > > > > on server140: 192.168.29.140 > > > > > create file eth0:0 > > > > > > > > > > DEVICE=eth0:0 > > > > > BOOTPROTO=static > > > > > HWADDR=01:02:03:04:05:06 > > > > > IPADDR=192.168.29.156 > > > > > NETMASK=255.255.255.0 > > > > > ONBOOT=yes > > > > > > > > - you don't need to configure file eth0:0, that does heartbeat for > > > > you automatically, if correct configured ;-) > > > > > > > > > #wget -O /etc/yum.repos.d/CentOS-Testing.repo > > > > > http://dev.centos.org/centos/5/CentOS-Testing.repo #yum > > > > > --enablerepo c5-testing install iptables-mod-CLUSTERIP > > > > > #modprobe ipt_conntrack > > > > > #modprobe ipt_CLUSTERIP > > > > > #iptables -A INPUT -p tcp -d 192.168.29.156 -j CLUSTERIP --new > > > > > --hashmode sourceip --clustermac 01:02:03:04:05:06 --total-nodes 2 > > > > > --local-node 2 --hashmode sourceip #service iptables save > > > > > #yum install lighttpd -y > > > > > ============'========================== > > > > > I have tested > > > > > it run ok on both servers of the subnet 192.168.29.0/24but when I > > > > test > > > > > > in > > > > > > > > > other subnet, it is not run. I use other server with the IP address > > > > is > > > > > > > 192.168.30.107, I can not ping to 192.168.29.156 and the access to > > > > > http://192.168.29.156/ is impossible. I ping 192.168.29.140 and > > > > > 192,168.29.148 ok and http://192.168.29.140/ > > > > > http://192.168.29.148/access web ok. please help me! > > > > > I'm hearing from you soon! > > > > > many thanks! > > > > > > > > - it would help: version HA, configuration (at least cib.xml and > > > > ha.cf > > > > ) > > > > > > ... > > > > > > > > > > > > Regards > > > > > > > > Nikita Michalko > > > > > > > > _______________________________________________ > > > > Linux-HA mailing list > > > > [email protected] > > > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > > > See also: http://linux-ha.org/ReportingProblems > > > > _______________________________________________ > > Linux-HA mailing list > > [email protected] > > http://lists.linux-ha.org/mailman/listinfo/linux-ha > > See also: http://linux-ha.org/ReportingProblems _______________________________________________ Linux-HA mailing list [email protected] http://lists.linux-ha.org/mailman/listinfo/linux-ha See also: http://linux-ha.org/ReportingProblems
