Re: carp shutdown in /etc/rc

2011-02-05 Thread Camiel Dobbelaar
On 5-2-2011 2:15, Ted Unangst wrote: On Fri, Feb 4, 2011 at 7:21 AM, Camiel Dobbelaar c...@sentia.nl wrote: With hundreds of (vlan) interfaces, a shutdown takes quite a while. # bring carp interfaces down gracefully - ifconfig | while read a b; do +

Re: carp shutdown in /etc/rc

2011-02-05 Thread Camiel Dobbelaar
On 5-2-2011 11:02, Henning Brauer wrote: on the other side, fixing ifconfig very slow with lots of interfaces deserves to be fixed anyway. looking at the code - either getifaddrs is slow (which in turn wouldn't be ifconfig only), or the ioctls ifconfig does in getinfo(). that's just 5 tho.

Re: carp shutdown in /etc/rc

2011-02-04 Thread Henning Brauer
* Camiel Dobbelaar c...@sentia.nl [2011-02-04 13:21]: With hundreds of (vlan) interfaces, a shutdown takes quite a while. Fix below. hmm. this relies on all carp interfaces being in the carp interface group. while that is the default, it is not necessarily so. -- Henning Brauer, h...@bsws.de,

Re: carp shutdown in /etc/rc

2011-02-04 Thread Stuart Henderson
On 2011/02/04 14:37, Camiel Dobbelaar wrote: On 4-2-2011 13:32, Henning Brauer wrote: * Camiel Dobbelaar c...@sentia.nl [2011-02-04 13:21]: With hundreds of (vlan) interfaces, a shutdown takes quite a while. Fix below. hmm. this relies on all carp interfaces being in the carp interface

Re: carp shutdown in /etc/rc

2011-02-04 Thread Jason McIntyre
On Fri, Feb 04, 2011 at 02:37:43PM +0100, Camiel Dobbelaar wrote: On 4-2-2011 13:32, Henning Brauer wrote: * Camiel Dobbelaar c...@sentia.nl [2011-02-04 13:21]: With hundreds of (vlan) interfaces, a shutdown takes quite a while. Fix below. hmm. this relies on all carp interfaces being

Re: carp shutdown in /etc/rc

2011-02-04 Thread Camiel Dobbelaar
On 4-2-2011 15:06, Stuart Henderson wrote: On 2011/02/04 14:37, Camiel Dobbelaar wrote: On 4-2-2011 13:32, Henning Brauer wrote: * Camiel Dobbelaar c...@sentia.nl [2011-02-04 13:21]: With hundreds of (vlan) interfaces, a shutdown takes quite a while. Fix below. hmm. this relies on all carp

Re: carp shutdown in /etc/rc

2011-02-04 Thread Stuart Henderson
On 2011/02/04 14:08, Jason McIntyre wrote: +If an interface group with that name exists, all interfaces in the group +will be shown. +Otherwise, +.Dq name +is treated as a type and all interfaces of that type will be displayed. is this a useful distinction (even a valid one)? it

Re: carp shutdown in /etc/rc

2011-02-04 Thread Henning Brauer
* Camiel Dobbelaar c...@sentia.nl [2011-02-04 15:30]: On 4-2-2011 15:06, Stuart Henderson wrote: On 2011/02/04 14:37, Camiel Dobbelaar wrote: On 4-2-2011 13:32, Henning Brauer wrote: * Camiel Dobbelaar c...@sentia.nl [2011-02-04 13:21]: With hundreds of (vlan) interfaces, a shutdown takes

Re: carp shutdown in /etc/rc

2011-02-04 Thread Henning Brauer
* Jason McIntyre j...@cava.myzen.co.uk [2011-02-04 15:17]: is this a useful distinction (even a valid one)? it sounds confusing to me. yes: ifconfig carp0 -group carp can you have carp interfaces that are not part of the carp group? that is, ifconfig carp will display all carp interfaces,

Re: carp shutdown in /etc/rc

2011-02-04 Thread Tobias Weingartner
On Friday, February 4, Henning Brauer wrote: i don't think there is is special treatment for the carp group. but memory is fuzzy. we might very well forget to clean up when a group becomes empty. There is a bit of an inconsistency when it comes to 'ifconfig foo' style of the ifconfig

Re: carp shutdown in /etc/rc

2011-02-04 Thread Henning Brauer
* Tobias Weingartner weing...@tepid.org [2011-02-04 20:19]: On Friday, February 4, Henning Brauer wrote: i don't think there is is special treatment for the carp group. but memory is fuzzy. we might very well forget to clean up when a group becomes empty. There is a bit of an inconsistency

Re: carp shutdown in /etc/rc

2011-02-04 Thread Ted Unangst
On Fri, Feb 4, 2011 at 7:21 AM, Camiel Dobbelaar c...@sentia.nl wrote: With hundreds of (vlan) interfaces, a shutdown takes quite a while. # bring carp interfaces down gracefully - ifconfig | while read a b; do + ifconfig carp | while read a b; do