On 8/27/07, mingdao lu <[EMAIL PROTECTED]> wrote:
> hi, all
> My server has two network card: enet0 and enet1. And I have add vlan on
> them: enet0.40 and enet1.40.
> At first I add a IPaddr2 IP resource on enet1.40. It works correct.
> Then I change the nic to enet0.40 by using crm_resource. It also works
> correct.
> But when I want to change it back it to enet1.40. It not work.

I believe what you're seeing is related to:
   http://old.linux-foundation.org/developer_bugzilla/show_bug.cgi?id=1688

Which is now fixed for the next release.

> I use crm_mon
> and got these message:
> ============
> Last updated: Mon Aug 27 22:12:20 2007
> Current DC: ipmux3 (23006c37-78b4-49a6-977e-38a09e194981)
> 1 Nodes configured.
> 1 Resources configured.
> ============
>
> Node: ipmux3 (23006c37-78b4-49a6-977e-38a09e194981): online
>
> 10.170.2.72     (heartbeat::ocf:IPaddr2):       Started ipmux3 (unmanaged)
> FAILED
>
> Failed actions:
>     10.170.2.72_stop_0 (node=ipmux3, call=6, rc=1): Error
>
> And in the ha-log, it looks like:
> IPaddr2[5250]:  2007/08/27_22:04:47 INFO: ip -f inet addr add 
> 10.170.2.72/27brd
> 10.170.2.95 dev enet1.40
> IPaddr2[5250]:  2007/08/27_22:04:47 INFO: ip link set enet1.40 up
> IPaddr2[5250]:  2007/08/27_22:04:47 INFO: /usr/lib64/heartbeat/send_arp -i
> 200 -r 5 -p /var/run/heartbeat/rsctmp/send_arp/send_arp-10.170.2.72 enet1.40
> 10.170.2.72 auto not_used not_used
> IPaddr2[5322]:  2007/08/27_22:05:31 INFO: ip -f inet addr delete
> 10.170.2.72/27 dev enet1.40
> IPaddr2[5322]:  2007/08/27_22:05:31 INFO: ip -o -f inet addr show enet1.40
> IPaddr2[5322]:  2007/08/27_22:05:31 INFO: ip link set enet1.40 down
> IPaddr2[5366]:  2007/08/27_22:05:31 INFO: ip -f inet addr add 
> 10.170.2.72/27brd
> 10.170.2.95 dev enet0.40
> IPaddr2[5366]:  2007/08/27_22:05:31 INFO: ip link set enet0.40 up
> IPaddr2[5366]:  2007/08/27_22:05:31 INFO: /usr/lib64/heartbeat/send_arp -i
> 200 -r 5 -p /var/run/heartbeat/rsctmp/send_arp/send_arp-10.170.2.72 enet0.40
> 10.170.2.72 auto not_used not_used
> IPaddr2[5430]:  2007/08/27_22:06:01 INFO: ip -f inet addr delete
> 10.170.2.72/27 dev enet1.40
> lrmd[4221]: 2007/08/27_22:06:01 info: RA output: (10.170.2.72:stop:stderr)
> RTNETLINK answers: Cannot assign requested address
>
> You can see that the resource "10.170.2.72" set up correctly and changed its
> nic correctly at first. But it not work in the second time.
>
> I have test it in different machine, it always like this.  Do you have any
> suggestion?
>
> BTW, My resources configuration is:
>  <resources>
>    <primitive class="ocf" type="IPaddr2" provider="heartbeat" id="
> 10.170.2.72">
>      <instance_attributes id="10.170.2.72_instance_attrs">
>        <attributes>
>          <nvpair name="target_role" id="10.170.2.72_target_role"
> value="started"/>
>          <nvpair name="ip" id="10.170.2.72_ip" value="10.170.2.72"/>
>          <nvpair name="cidr_netmask" id="10.170.2.72_netmask" value="27"/>
>          <nvpair name="nic" id="10.170.2.72_nic" value="enet1.40"/>
>        </attributes>
>      </instance_attributes>
>    </primitive>
>  </resources>
>
>
> Thanks a lot
> Mingdao Lu
> _______________________________________________
> 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