Re: trunk, carp

2007-07-04 Thread Fredrik Carlsson
> I will send a PR later, the machine is not connected to Internet.
>
> // Fredrik
>
>


After some more testing I think this has do to with MP, if I use a kernel
without MP it seems to work, but if I use a MP kernel the system hangs as
soon as i attach more than one carp device.

This is just after some initial testing, I will do more extensiv later in
the week.

// Fredrik



Re: trunk, carp

2007-07-03 Thread Fredrik Carlsson

Reyk Floeter wrote:

On Tue, Jul 03, 2007 at 03:57:20PM +0200, Fredrik Carlsson wrote:
  

Hi again,

My setup looks like this:

[em0, em1]-trunk0 <- vlan2 <- carp2
[em2, em3]-trunk1 <- vlan104 <- carp104

If don't use carp at all everything works fine, but when i add carp to
trunk0 and trunk1 it takes a few seconds and the box hangs and a poweroff
reboot is needed.




can you show the command sequence you are using?
what openbsd release are you using, can you send a dmesg?
please try to get some more details, try to find a way to reproduce it.

use the list [EMAIL PROTECTED] for bug reports or open a pr with
sendbug(1) (see the manpage for details).

  

If only one carp device exists the machine works but as soon as i add two
it hangs.

Even if I made some config error the machine should not hang.

trunk0: flags=8943 mtu 1500
lladdr 00:0e:0c:db:3f:48
trunk: trunkproto failover
trunkport em1 active
trunkport em0 master,active
groups: trunk
media: Ethernet autoselect
status: active
inet6 fe80::20e:cff:fedb:3f48%trunk0 prefixlen 64 scopeid 0xa
trunk1: flags=8943 mtu 1500
lladdr 00:0e:0c:db:3f:4a
trunk: trunkproto failover
trunkport em3 active
trunkport em2 master,active
groups: trunk
media: Ethernet autoselect
status: active
inet6 fe80::20e:cff:fedb:3f4a%trunk1 prefixlen 64 scopeid 0xb
vlan1: flags=8943 mtu 1500
lladdr 00:0e:0c:db:3f:48
vlan: 1 priority: 0 parent interface: trunk0
groups: vlan
inet6 fe80::20e:cff:fedb:3f48%vlan1 prefixlen 64 scopeid 0xc
vlan2: flags=8943 mtu 1500
lladdr 00:0e:0c:db:3f:4a
vlan: 2 priority: 0 parent interface: trunk1
groups: vlan
inet6 fe80::20e:cff:fedb:3f4a%vlan2 prefixlen 64 scopeid 0xe
carp1: flags=8843 mtu 1500
lladdr 00:00:5e:00:01:01
carp: MASTER carpdev vlan1 vhid 1 advbase 1 advskew 0
groups: carp
inet6 fe80::200:5eff:fe00:101%carp1 prefixlen 64 scopeid 0x16
inet 10.10.1.17 netmask 0xfff0 broadcast 10.10.1.31
carp2: flags=8843 mtu 1500
lladdr 00:00:5e:00:01:01
carp: MASTER carpdev vlan2 vhid 1 advbase 1 advskew 0
groups: carp
inet6 fe80::200:5eff:fe00:101%carp2 prefixlen 64 scopeid 0x17
inet 10.10.1.33 netmask 0xfff0 broadcast 10.10.1.47

// Fredrik




I was not able to use sendbug, but i copied the information and sent it 
to [EMAIL PROTECTED]


Any ideas what could cause my problem?

// Fredrik



Re: trunk, carp

2007-07-03 Thread Fredrik Carlsson
> On Tue, Jul 03, 2007 at 03:57:20PM +0200, Fredrik Carlsson wrote:
>> Hi again,
>>
>> My setup looks like this:
>>
>> [em0, em1]-trunk0 <- vlan2 <- carp2
>> [em2, em3]-trunk1 <- vlan104 <- carp104
>>
>> If don't use carp at all everything works fine, but when i add carp to
>> trunk0 and trunk1 it takes a few seconds and the box hangs and a
>> poweroff
>> reboot is needed.
>>
>
> can you show the command sequence you are using?
> what openbsd release are you using, can you send a dmesg?
> please try to get some more details, try to find a way to reproduce it.
>
> use the list [EMAIL PROTECTED] for bug reports or open a pr with
> sendbug(1) (see the manpage for details).
>
>> If only one carp device exists the machine works but as soon as i add
>> two
>> it hangs.
>>
>> Even if I made some config error the machine should not hang.
>>
>> trunk0: flags=8943 mtu
>> 1500
>> lladdr 00:0e:0c:db:3f:48
>> trunk: trunkproto failover
>> trunkport em1 active
>> trunkport em0 master,active
>> groups: trunk
>> media: Ethernet autoselect
>> status: active
>> inet6 fe80::20e:cff:fedb:3f48%trunk0 prefixlen 64 scopeid 0xa
>> trunk1: flags=8943 mtu
>> 1500
>> lladdr 00:0e:0c:db:3f:4a
>> trunk: trunkproto failover
>> trunkport em3 active
>> trunkport em2 master,active
>> groups: trunk
>> media: Ethernet autoselect
>> status: active
>> inet6 fe80::20e:cff:fedb:3f4a%trunk1 prefixlen 64 scopeid 0xb
>> vlan1: flags=8943 mtu
>> 1500
>> lladdr 00:0e:0c:db:3f:48
>> vlan: 1 priority: 0 parent interface: trunk0
>> groups: vlan
>> inet6 fe80::20e:cff:fedb:3f48%vlan1 prefixlen 64 scopeid 0xc
>> vlan2: flags=8943 mtu
>> 1500
>> lladdr 00:0e:0c:db:3f:4a
>> vlan: 2 priority: 0 parent interface: trunk1
>> groups: vlan
>> inet6 fe80::20e:cff:fedb:3f4a%vlan2 prefixlen 64 scopeid 0xe
>> carp1: flags=8843 mtu 1500
>> lladdr 00:00:5e:00:01:01
>> carp: MASTER carpdev vlan1 vhid 1 advbase 1 advskew 0
>> groups: carp
>> inet6 fe80::200:5eff:fe00:101%carp1 prefixlen 64 scopeid 0x16
>> inet 10.10.1.17 netmask 0xfff0 broadcast 10.10.1.31
>> carp2: flags=8843 mtu 1500
>> lladdr 00:00:5e:00:01:01
>> carp: MASTER carpdev vlan2 vhid 1 advbase 1 advskew 0
>> groups: carp
>> inet6 fe80::200:5eff:fe00:101%carp2 prefixlen 64 scopeid 0x17
>> inet 10.10.1.33 netmask 0xfff0 broadcast 10.10.1.47
>>
>> // Fredrik
>>
>

Hi,

Release: OpenBSD 4.1, with all avalible patches.

It is not that hard to reproduce:
add carp1 - works, system works fine
add carp2 - it hangs after about 5-10 second.

/etc/hostname.em<0-3>:
up

/etc/hostname.trunk0
trunkproto failover trunkport em0 trunkport em1 up

/etc/hostname.trunk1
trunkproto failover trunkport em2 trunkport em3 up

/etc/hostname.vlan1
vlan 1 vlandev trunk0

/etc/hostname.vlan2
vlan 2 vlandev trunk1

/etc/hostname.carp1
inet 10.10.1.17 255.255.255.240 NONE vhid 1 carpdev vlan1 pass password1

/etc/hostname.carp1
inet 10.10.1.33 255.255.255.240 NONE vhid 2 carpdev vlan1 pass password1

I will send a PR later, the machine is not connected to Internet.

// Fredrik
OpenBSD 4.1-stable (ZTHN-FW01.MP) #2: Tue Jul  3 09:36:02 CEST 2007
[EMAIL PROTECTED]:/usr/src/sys/arch/amd64/compile/GENERIC.MP
real mem = 536215552 (523648K)
avail mem = 446967808 (436492K)
using 13142 buffers containing 53829632 bytes (52568K) of memory
mainbus0 (root)
bios0 at mainbus0: SMBIOS rev. 2.4 @ 0xfa5b0 (48 entries)
bios0: Dell Computer Corporation PowerEdge 860
acpi at mainbus0 not configured
ipmi0 at mainbus0: version 1.5 interface KCS iobase 0xca8/8 spacing 4
mainbus0: Intel MP Specification (Version 1.4)
cpu0 at mainbus0: apid 0 (boot processor)
cpu0: Intel(R) Pentium(R) D CPU 3.00GHz, 3000.54 MHz
cpu0: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,CNXT-ID,CX16,xTPR,NXE,LON
G
cpu0: 2MB 64b/line 8-way L2 cache
cpu0: apic clock running at 200MHz
cpu1 at mainbus0: apid 1 (application processor)
cpu1: Intel(R) Pentium(R) D CPU 3.00GHz, 3000.12 MHz
cpu1: 
FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CFLUSH,DS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,SBF,SSE3,MWAIT,DS-CPL,EST,CNXT-ID,CX16,xTPR,NXE,LON
G
cpu1: 2MB 64b/line 8-way L2 cache
mpbios: bus 0 is type PCI
mpbios: bus 1 is type PCI
mpbios: bus 2 is type PCI
mpbios: bus 3 is type PCI
mpbios: bus 4 is type PCI
mpbios: bus 5 is type PCI
mpbios: bus 6 is type PCI
mpbios: bus 7 is type PCI
mpbios: bus 8 is type ISA
ioapic0 at mainbus0 apid 2 pa 0xfec0, version 20, 24 pins
ioapic0: misconfigured as apic 0, remapped to apid 2
ioapic1 at mainbus0 apid 3 pa 0xfec1, version 20, 24 pins
ioapic1: misconfigured as apic 0, remapped to apid 3
pci0 at mainbus0 bus 0: configur

Re: trunk, carp

2007-07-03 Thread Reyk Floeter
On Tue, Jul 03, 2007 at 03:57:20PM +0200, Fredrik Carlsson wrote:
> Hi again,
> 
> My setup looks like this:
> 
> [em0, em1]-trunk0 <- vlan2 <- carp2
> [em2, em3]-trunk1 <- vlan104 <- carp104
> 
> If don't use carp at all everything works fine, but when i add carp to
> trunk0 and trunk1 it takes a few seconds and the box hangs and a poweroff
> reboot is needed.
> 

can you show the command sequence you are using?
what openbsd release are you using, can you send a dmesg?
please try to get some more details, try to find a way to reproduce it.

use the list [EMAIL PROTECTED] for bug reports or open a pr with
sendbug(1) (see the manpage for details).

> If only one carp device exists the machine works but as soon as i add two
> it hangs.
> 
> Even if I made some config error the machine should not hang.
> 
> trunk0: flags=8943 mtu 1500
> lladdr 00:0e:0c:db:3f:48
> trunk: trunkproto failover
> trunkport em1 active
> trunkport em0 master,active
> groups: trunk
> media: Ethernet autoselect
> status: active
> inet6 fe80::20e:cff:fedb:3f48%trunk0 prefixlen 64 scopeid 0xa
> trunk1: flags=8943 mtu 1500
> lladdr 00:0e:0c:db:3f:4a
> trunk: trunkproto failover
> trunkport em3 active
> trunkport em2 master,active
> groups: trunk
> media: Ethernet autoselect
> status: active
> inet6 fe80::20e:cff:fedb:3f4a%trunk1 prefixlen 64 scopeid 0xb
> vlan1: flags=8943 mtu 1500
> lladdr 00:0e:0c:db:3f:48
> vlan: 1 priority: 0 parent interface: trunk0
> groups: vlan
> inet6 fe80::20e:cff:fedb:3f48%vlan1 prefixlen 64 scopeid 0xc
> vlan2: flags=8943 mtu 1500
> lladdr 00:0e:0c:db:3f:4a
> vlan: 2 priority: 0 parent interface: trunk1
> groups: vlan
> inet6 fe80::20e:cff:fedb:3f4a%vlan2 prefixlen 64 scopeid 0xe
> carp1: flags=8843 mtu 1500
> lladdr 00:00:5e:00:01:01
> carp: MASTER carpdev vlan1 vhid 1 advbase 1 advskew 0
> groups: carp
> inet6 fe80::200:5eff:fe00:101%carp1 prefixlen 64 scopeid 0x16
> inet 10.10.1.17 netmask 0xfff0 broadcast 10.10.1.31
> carp2: flags=8843 mtu 1500
> lladdr 00:00:5e:00:01:01
> carp: MASTER carpdev vlan2 vhid 1 advbase 1 advskew 0
> groups: carp
> inet6 fe80::200:5eff:fe00:101%carp2 prefixlen 64 scopeid 0x17
> inet 10.10.1.33 netmask 0xfff0 broadcast 10.10.1.47
> 
> // Fredrik



trunk, carp

2007-07-03 Thread Fredrik Carlsson
Hi again,

My setup looks like this:

[em0, em1]-trunk0 <- vlan2 <- carp2
[em2, em3]-trunk1 <- vlan104 <- carp104

If don't use carp at all everything works fine, but when i add carp to
trunk0 and trunk1 it takes a few seconds and the box hangs and a poweroff
reboot is needed.

If only one carp device exists the machine works but as soon as i add two
it hangs.

Even if I made some config error the machine should not hang.

trunk0: flags=8943 mtu 1500
lladdr 00:0e:0c:db:3f:48
trunk: trunkproto failover
trunkport em1 active
trunkport em0 master,active
groups: trunk
media: Ethernet autoselect
status: active
inet6 fe80::20e:cff:fedb:3f48%trunk0 prefixlen 64 scopeid 0xa
trunk1: flags=8943 mtu 1500
lladdr 00:0e:0c:db:3f:4a
trunk: trunkproto failover
trunkport em3 active
trunkport em2 master,active
groups: trunk
media: Ethernet autoselect
status: active
inet6 fe80::20e:cff:fedb:3f4a%trunk1 prefixlen 64 scopeid 0xb
vlan1: flags=8943 mtu 1500
lladdr 00:0e:0c:db:3f:48
vlan: 1 priority: 0 parent interface: trunk0
groups: vlan
inet6 fe80::20e:cff:fedb:3f48%vlan1 prefixlen 64 scopeid 0xc
vlan2: flags=8943 mtu 1500
lladdr 00:0e:0c:db:3f:4a
vlan: 2 priority: 0 parent interface: trunk1
groups: vlan
inet6 fe80::20e:cff:fedb:3f4a%vlan2 prefixlen 64 scopeid 0xe
carp1: flags=8843 mtu 1500
lladdr 00:00:5e:00:01:01
carp: MASTER carpdev vlan1 vhid 1 advbase 1 advskew 0
groups: carp
inet6 fe80::200:5eff:fe00:101%carp1 prefixlen 64 scopeid 0x16
inet 10.10.1.17 netmask 0xfff0 broadcast 10.10.1.31
carp2: flags=8843 mtu 1500
lladdr 00:00:5e:00:01:01
carp: MASTER carpdev vlan2 vhid 1 advbase 1 advskew 0
groups: carp
inet6 fe80::200:5eff:fe00:101%carp2 prefixlen 64 scopeid 0x17
inet 10.10.1.33 netmask 0xfff0 broadcast 10.10.1.47

// Fredrik