Need teamd to respawn automatically in RHEL7
Issue
- Teamd is an important daemon that watches and controls active links, if it is killed, we can't do failover any more.
- We would like teamd to respawn if it is killed.
Step to reproduce:
1) Edit ifcfg-team0 , ifcfg-eth0 and ifcfg-eth1
# vi /etc/sysconfig/network-scripts/ifcfg-team0
DEVICE=team0
DEVICETYPE=Team
ONBOOT=yes
BOOTPROTO=none
IPADDR=xxx.xxx.xxx.xxx
NETMASK=xxx.xxx.xxx.xxx
TEAM_CONFIG='{"runner": {"name": "activebackup"}, "link_watch": {"name":
"ethtool"}}'
NM_CONTROLLED=no
# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
HWADDR=52:54:00:37:5E:BD
DEVICETYPE=TeamPort
ONBOOT=yes
BOOTPROTO=none
TEAM_MASTER=team0
TEAM_PORT_CONFIG='{"prio": 100}'
NM_CONTROLLED=no
UUID=156ee48b-30ce-4873-8507-90ba6df19015
# vi /etc/sysconfig/network-scripts/ifcfg-eth1
DEVICE=eth1
HWADDR=52:54:00:6A:57:4D
DEVICETYPE=TeamPort
ONBOOT=yes
BOOTPROTO=none
TEAM_MASTER=team0
TEAM_PORT_CONFIG='{"prio": 10}'
NM_CONTROLLED=no
UUID=4528902c-2914-4618-bb24-084757878003
2) Activating team0 and check teamd process.
# ifup team0
# ps ax | grep team0
797 ? Ss 0:00 /usr/bin/teamd -U -D -t team0 -f /run/teamd/team0.conf
3) Kill teamd process
# kill -KILL 797
Actual results:
- Teamd doesn't restart and we can't do failover any more.
Expected results:
- Teamd automatically restarts.
Additional info:
- It also may be worth considering setting oom_adj by teamd itself.
Environment
Red Hat Enterprise Linux 7.0
- kernel-3.10.0-86.el7.x86_64
- libteam-1.9-7.el7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
