[Samba] 答复: How to disable CTDB pulling up NICs

Weidong wei.dong at h3c.com
Sun Sep 18 01:36:20 UTC 2016

If eth0 holds virtual IP as its secondary IP and I bring down eth0 by command "ifdown eth0", CTDB will automatically pull eth0 up. Sometime it goes wrong. The virtual IP becomes primary IP, and origin primary IP turns into a secondary IP or just missing. If the origin primary IP is missing, I have to run "ifup eth0" though CTDB has pulled eth0 up. CTDB uses “ip link set eth0 up” to pull up a NIC. I suppose “ifdown/ifup” are not compatible with “ip link set”.

发件人: Martin Schwenke [mailto:martin at meltin.net]
发送时间: 2016年9月14日 19:00
收件人: Weidong via samba
抄送: weidong 12656 (RD); xusangdi 11976 (RD)
主题: Re: [Samba] How to disable CTDB pulling up NICs

On Wed, 14 Sep 2016 06:02:13 +0000, Weidong via samba <samba at lists.samba.org> wrote:

> Thanks for your attention. CTDB manages NICs with event scripts.
> Virtual IP attaches on a NIC as a secondary IP. When noticing the NIC
> down, CTDB will pull it up. Does any one know how to disable the
> action? I do not want CTDB pull any NIC up. Does the command 'ctdb
> disablescript 10.interface' has any unexpected effect?

10.interface actually removes/adds public IP addresses from/to interfaces.  So, without this script CTDB's public IP addresses will not work.

There is no supported way to disable the behaviour of pulling up interfaces.

Why do you want to want to disable this?

peace & happiness,
This e-mail and its attachments contain confidential information from H3C, which is
intended only for the person or entity whose address is listed above. Any use of the
information contained herein in any way (including, but not limited to, total or partial
disclosure, reproduction, or dissemination) by persons other than the intended
recipient(s) is prohibited. If you receive this e-mail in error, please notify the sender
by phone or email immediately and delete it!

More information about the samba mailing list