Hi,

On Thu, Nov 08, 2007 at 11:34:53AM +0200, Szasz Tamas wrote:
> Hi.
> 
> Thank you for reply.
> 
> The version of HB is: 2.1.2-3 (heartbeat-2.1.2-3.el4.centos.i386.rpm), 
> here is the xml file:
> 
> <cib admin_epoch="0" generated="true" have_quorum="true" 
> ignore_dtd="false" num_peers="2" cib_feature_revision="1.3" 
> ccm_transition="4" dc_uuid="1f98fc30-4309-412a-a822-47fd02ba097c" 
> epoch="16" num_updates="1" cib-last-written="Tue Nov  6 21:20:47 2007">
>   <configuration>
>     <crm_config>
>       <cluster_property_set id="cib-bootstrap-options">
>         <attributes>
>           <nvpair id="cib-bootstrap-options-symmetric-cluster" 
> name="symmetric-cluster" value="true"/>
>           <nvpair id="cib-bootstrap-options-no-quorum-policy" 
> name="no-quorum-policy" value="stop"/>
>           <nvpair 
> id="cib-bootstrap-options-default-resource-stickiness" 
> name="default-resource-stickiness" value="0"/>
>           <nvpair 
> id="cib-bootstrap-options-default-resource-failure-stickiness" 
> name="default-resource-failure-stickiness" value="0"/>
>           <nvpair id="cib-bootstrap-options-stonith-enabled" 
> name="stonith-enabled" value="false"/>
>           <nvpair id="cib-bootstrap-options-stonith-action" 
> name="stonith-action" value="reboot"/>
>           <nvpair id="cib-bootstrap-options-stop-orphan-resources" 
> name="stop-orphan-resources" value="true"/>
>           <nvpair id="cib-bootstrap-options-stop-orphan-actions" 
> name="stop-orphan-actions" value="true"/>
>           <nvpair id="cib-bootstrap-options-remove-after-stop" 
> name="remove-after-stop" value="false"/>
>           <nvpair id="cib-bootstrap-options-short-resource-names" 
> name="short-resource-names" value="true"/>
>           <nvpair id="cib-bootstrap-options-transition-idle-timeout" 
> name="transition-idle-timeout" value="5min"/>
>           <nvpair id="cib-bootstrap-options-default-action-timeout" 
> name="default-action-timeout" value="15s"/>
>           <nvpair id="cib-bootstrap-options-is-managed-default" 
> name="is-managed-default" value="true"/>
>         </attributes>
>       </cluster_property_set>
>     </crm_config>
>     <nodes>
>       <node id="6a0de656-9c3a-4bd7-a530-0f4ec24ca668" 
> uname="ybkx007453" type="normal"/>
>       <node id="1f98fc30-4309-412a-a822-47fd02ba097c" 
> uname="ybkx007451" type="normal"/>
>     </nodes>
>     <resources>
>       <group id="group_1">
>         <primitive class="ocf" provider="heartbeat" type="IPaddr" 
> id="ip_management">
>           <operations>
>             <op id="ip_management_mon" interval="5s" name="monitor" 
> timeout="5s"/>
>           </operations>
>           <instance_attributes id="ip_management_inst_attr">
>             <attributes>
>               <nvpair name="ip" id="ip_management_attr_0" 
> value="192.168.254.16"/>
>             </attributes>
>           </instance_attributes>
>         </primitive>
>         <primitive class="ocf" id="ip_voice" provider="heartbeat" 
> type="IPaddr">
>           <operations>
>             <op id="ip_voice_mon" interval="5s" name="monitor" 
> timeout="5s"/>
>           </operations>
>           <instance_attributes id="ip_voice_inst_attr">
>             <attributes>
>               <nvpair id="ip_voice_attr_0" name="ip" value="10.254.10.14"/>
>             </attributes>
>           </instance_attributes>
>         </primitive>
>         <primitive class="ocf" id="ip_interconn" provider="heartbeat" 
> type="IPaddr">
>           <operations>
>             <op id="ip_interconn_mon" interval="5s" name="monitor" 
> timeout="5s"/>
>           </operations>
>           <instance_attributes id="ip_interconn_inst_attr">
>             <attributes>
>               <nvpair id="ip_interconn_attr_0" name="ip" 
> value="10.53.63.14"/>
>             </attributes>
>           </instance_attributes>
>         </primitive>
>         <primitive class="heartbeat" id="drbddisk_4" 
> provider="heartbeat" type="drbddisk">
>            <operations>
>             <op id="drbddisk_4_mon" interval="120s" name="monitor" 
> timeout="60s"/>
>           </operations>
>           <instance_attributes id="drbddisk_4_inst_attr">
>             <attributes>
>               <nvpair id="drbddisk_4_attr_1" name="1" value="data"/>
>             </attributes>
>           </instance_attributes>
>         </primitive>
>         <primitive class="ocf" id="Filesystem_5" provider="heartbeat" 
> type="Filesystem">
>           <operations>
>             <op id="Filesystem_5_mon" interval="120s" name="monitor" 
> timeout="60s"/>
>           </operations>
>           <instance_attributes id="Filesystem_5_inst_attr">
>             <attributes>
>               <nvpair id="Filesystem_5_attr_0" name="device" 
> value="/dev/drbd0"/>
>               <nvpair id="Filesystem_5_attr_1" name="directory" 
> value="/mnt/data"/>
>               <nvpair id="Filesystem_5_attr_2" name="fstype" value="ext2"/>
>               <nvpair id="Filesystem_5_attr_3" name="options" 
> value="defaults"/>
>             </attributes>
>           </instance_attributes>
>         </primitive>
>         <primitive class="heartbeat" id="mysqld_6" provider="heartbeat" 
> type="mysqld">
>           <operations>
>             <op id="mysqld_6_mon" interval="120s" name="monitor" 
> timeout="60s"/>
>           </operations>
>         </primitive>
>         <primitive class="heartbeat" id="ser_7" provider="heartbeat" 
> type="ser">
>           <operations>
>             <op id="ser_7_mon" interval="120s" name="monitor" 
> timeout="60s"/>
>           </operations>
>         </primitive>
>       </group>
>     </resources>
>     <constraints>
>       <rsc_location id="rsc_location_group_1" rsc="group_1">
>         <rule id="prefered_location_group_1" score="100">
>           <expression attribute="#uname" 
> id="prefered_location_group_1_expr" operation="eq" value="YBKX007453"/>
>         </rule>
>       </rsc_location>
>     </constraints>
>   </configuration>
> </cib>
> 
> After I change the cluster ip addres with this command:
> 
> cibadmin -R -o resources -X '<primitive class="ocf" id="ip_management" 
> provider="heartbeat" type="IPaddr">
> <operations>
> <op id="ip_management_mon" interval="5s" name="monitor" timeout="5s"/>
> </operations>
> <instance_attributes id="ip_management_inst_attr">
> <attributes>
> <nvpair id="ip_management_attr_0" name="ip" value="192.168.254.17"/>
> </attributes>
> </instance_attributes>
> </primitive>'
> 
> The ifconfig command show this:
> 
> [EMAIL PROTECTED] ~]# ifconfig
> eth0      Link encap:Ethernet  HWaddr 00:15:E9:3D:A8:DC
>          inet addr:192.168.254.13  Bcast:192.168.254.255  
> Mask:255.255.255.0
>          inet6 addr: fe80::215:e9ff:fe3d:a8dc/64 Scope:Link
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:435055 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:382862 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:1000
>          RX bytes:57872366 (55.1 MiB)  TX bytes:137402862 (131.0 MiB)
>          Interrupt:5 Base address:0xe000
> 
> eth0:1    Link encap:Ethernet  HWaddr 00:15:E9:3D:A8:DC
>          inet addr:192.168.254.16  Bcast:192.168.254.255  
> Mask:255.255.255.0
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          Interrupt:5 Base address:0xe000
> 
> eth0:2    Link encap:Ethernet  HWaddr 00:15:E9:3D:A8:DC
>          inet addr:192.168.254.17  Bcast:192.168.254.255  
> Mask:255.255.255.0
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          Interrupt:5 Base address:0xe000
> 
> eth1      Link encap:Ethernet  HWaddr 00:15:E9:3D:A8:BE
>          inet addr:10.254.10.13  Bcast:10.254.255.255  Mask:255.255.0.0
>          inet6 addr: fe80::215:e9ff:fe3d:a8be/64 Scope:Link
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          RX packets:550557 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:92738 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:1000
>          RX bytes:141380011 (134.8 MiB)  TX bytes:4351295 (4.1 MiB)
>          Interrupt:11 Base address:0x4400
> 
> eth1:0    Link encap:Ethernet  HWaddr 00:15:E9:3D:A8:BE
>          inet addr:10.254.10.14  Bcast:10.254.255.255  Mask:255.255.0.0
>          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
>          Interrupt:11 Base address:0x4400
> 
> eth2      Link encap:Ethernet  HWaddr 00:30:05:0D:1B:52
>          inet addr:10.53.63.13  Bcast:10.53.63.15  Mask:255.255.255.248
>          inet6 addr: fe80::230:5ff:fe0d:1b52/64 Scope:Link
>          UP BROADCAST MULTICAST  MTU:1500  Metric:1
>          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
>          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
>          collisions:0 txqueuelen:1000
>          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)
> 
> eth2:0    Link encap:Ethernet  HWaddr 00:30:05:0D:1B:52
>          inet addr:10.53.63.14  Bcast:10.53.63.15  Mask:255.255.255.248
>          UP BROADCAST MULTICAST  MTU:1500  Metric:1
> 
> 
> In the cib file the ip addres resource has been changed properly(the old 
> addres has been removed).

The old resource has not been stopped before the change took
place. Looks like a bug. Could you open a bugzilla and include
the log files? Please use hb_report if you can.

Thanks,

Dejan

> 
> >Can you provide some sample xml output for the problem situation(s)? Do
> >you have new entries with new unique IDs, or multiple IP attributes for
> >the one resource, or ???
> >
> >More detail would help... including version of HB, xml samples, etc...
> >
> >Yan
> >
> >Szasz Tamas wrote:
> >  
> >>Hi,
> >>
> >>When I use the cibadmin, to change an ip resource value, the heartbeat
> >>automaticaly add the new addres, but sometimes not remove the old addres.
> >>I used the update and replace command to in cibadmin:
> >>
> >>cibadmin -U -o resources -X '  ... '
> >>
> >>What is bad?
> >>
> >>Thank you,
> >>
> >>Szasz Tamas
> >>_______________________________________________
> >>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

Reply via email to