Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo system freeze when changing network config
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 877

PostPosted: Wed Dec 01, 2021 10:13 am    Post subject: Gentoo system freeze when changing network config Reply with quote

Hi,

I've run into trouble today when changing a perfectly running Gentoo system's network settings.
The only thing I did was to change the way 3 NICs bond. I went from balance-alb to 802.3ad (LACP).
Of course, I changed the connections of the Gentoo router to my root switch so that they are LACP too.
I also set extra params to make sure they are the same on both systems:
LACP_RATE
MIIMON
XMIT_HASH_POLICY

However, after I restart the lan interface with
Code:
/etc/init.d/net.lan restart

the whole Gento system freezes. I am connected to the VGA console, but the screen simply freezes.

I cannot access the Gentoo OS from the rest of the network so it is definitely failing.

A hard-reboot does not help (even if I fall back to using balance-alb again). It boots up to the point of configuring the network but then dies.

I had to replace this critical system with another one. That allowed me to check the logs, but I really don't know where it's failing.
The only errors I see are:

Code:
kernel: udevd[4908]: Error changing net interface name lan.12 to lanixa: File exists
kernel: udevd[4908]: could not rename interface '40' from 'lan.12' to 'lanixa': File exists


My udev rules file contians a line such as:

Code:
SUBSYSTEM=="net", ACTION=="add", ATTR{address}=="ac:1f:6b:f5:b8:6f", NAME="lanixa"


This is how I configure the network in conf.d/net:

Code:
config_lanixa="null"
config_lanma="null"
config_lanmb="null"
slaves_lan="lanixa lanma lanmb"
# mode_lan="balance-alb"
mode_lan="802.3ad"
vlans_lan="1 8 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 29 60 61"


And this is just about all I can see in /var/log/messages right before the freeze:

Code:
Dec  1 07:15:34 fw1 kernel: lan: (slave lanixa): Releasing active interface
Dec  1 07:15:34 fw1 kernel: lan: (slave lanixa): the permanent HWaddr of slave - ac:1f:6b:f5:b7:1b - is still in use by bond - set
the HWaddr of slave to a different address to avoid conflicts
Dec  1 07:15:34 fw1 kernel: lan: (slave lanma): making interface the new active one
Dec  1 07:15:34 fw1 kernel: ixgbe 0000:01:00.1: removed PHC on lanixa
Dec  1 07:15:35 fw1 kernel: lan: (slave lanma): Releasing active interface
Dec  1 07:15:35 fw1 kernel: lan: (slave lanmb): making interface the new active one
Dec  1 07:15:35 fw1 kernel: lan: (slave lanmb): Releasing active interface
Dec  1 07:15:35 fw1 kernel: bonding: lan is being deleted...
Dec  1 07:15:35 fw1 kernel: lan (unregistering): Released all slaves
Dec  1 07:15:35 fw1 kernel: bonding: lan is being created...
Dec  1 07:15:35 fw1 /etc/init.d/net.lan[99608]: net.lan: not allowed to be hotplugged
Dec  1 07:15:35 fw1 kernel: 8021q: adding VLAN 0 to HW filter on device lan
Dec  1 07:15:36 fw1 kernel: pps pps0: new PPS source ptp4
Dec  1 07:15:36 fw1 kernel: ixgbe 0000:01:00.1: registered PHC device on lanixa
Dec  1 07:15:36 fw1 kernel: 8021q: adding VLAN 0 to HW filter on device lanixa
Dec  1 07:15:36 fw1 kernel: lan: (slave lanixa): Enslaving as a backup interface with a down link
Dec  1 07:15:36 fw1 kernel: mlx5_core 0000:41:00.0 lanma: Link up
Dec  1 07:15:36 fw1 kernel: 8021q: adding VLAN 0 to HW filter on device lanma
Dec  1 07:15:36 fw1 kernel: lan: (slave lanma): Enslaving as a backup interface with an up link
Dec  1 07:15:36 fw1 kernel: mlx5_core 0000:41:00.1 lanmb: Link up
Dec  1 07:15:36 fw1 kernel: 8021q: adding VLAN 0 to HW filter on device lanmb
Dec  1 07:15:36 fw1 kernel: lan: (slave lanmb): Enslaving as a backup interface with an up link
Dec  1 07:15:36 fw1 kernel: udevd[95523]: Error changing net interface name lan.1 to lanixa: File exists
Dec  1 07:15:36 fw1 kernel: udevd[95523]: could not rename interface '74' from 'lan.1' to 'lanixa': File exists
Dec  1 07:15:37 fw1 kernel: udevd[95523]: Error changing net interface name lan.8 to lanixa: File exists
Dec  1 07:15:37 fw1 kernel: udevd[95523]: could not rename interface '75' from 'lan.8' to 'lanixa': File exists
Dec  1 07:15:37 fw1 kernel: udevd[95523]: Error changing net interface name lan.12 to lanixa: File exists
Dec  1 07:15:37 fw1 kernel: udevd[95523]: could not rename interface '76' from 'lan.12' to 'lanixa': File exists
Dec  1 07:15:37 fw1 kernel: udevd[95523]: Error changing net interface name lan.13 to lanixa: File exists
Dec  1 07:15:37 fw1 kernel: udevd[95523]: could not rename interface '77' from 'lan.13' to 'lanixa': File exists
Dec  1 07:15:37 fw1 /etc/init.d/net.lan[100496]: net.lan: not allowed to be hotplugged
Dec  1 07:15:37 fw1 kernel: udevd[100499]: Error changing net interface name lan.14 to lanixa: File exists
Dec  1 07:15:37 fw1 kernel: udevd[100499]: could not rename interface '78' from 'lan.14' to 'lanixa': File exists


Why am I seeing these udevd error messages?

Any suggestions?

Regards,

Vieri
Back to top
View user's profile Send private message
Vieri
l33t
l33t


Joined: 18 Dec 2005
Posts: 877

PostPosted: Wed Dec 01, 2021 3:47 pm    Post subject: Reply with quote

It seems that when I restart the NICs I get a kernel panic of some sort.
I haven't grabbed the full output on screen (I'll try again).
The only thing I could catch is a RIP after a kernel trace. The system then freezes.

[EDIT] xt_iface may be the culprit, but I'm unable to read the whole kernel trace. It might be tainting the kernel. Redirecting to file doesn't help. I guess I need to send the output to serial port.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum