zoukankan      html  css  js  c++  java
  • Failed to start LSB: Bring up/down networking

    1.查看

    [root@centos7 network-scripts]# systemctl status network
    ● network.service - LSB: Bring up/down networking
       Loaded: loaded (/etc/rc.d/init.d/network; bad; vendor preset: disabled)
       Active: failed (Result: exit-code) since 三 2021-02-24 17:25:25 CST; 34min ago
         Docs: man:systemd-sysv-generator(8)
      Process: 9525 ExecStart=/etc/rc.d/init.d/network start (code=exited, status=1/FAILURE)
    
    2月 24 17:25:25 153-37-216-21 network[9525]: RTNETLINK answers: File exists
    2月 24 17:25:25 153-37-216-21 network[9525]: RTNETLINK answers: File exists
    2月 24 17:25:25 153-37-216-21 network[9525]: RTNETLINK answers: File exists
    2月 24 17:25:25 153-37-216-21 network[9525]: RTNETLINK answers: File exists
    2月 24 17:25:25 153-37-216-21 network[9525]: RTNETLINK answers: File exists
    2月 24 17:25:25 153-37-216-21 network[9525]: RTNETLINK answers: File exists
    2月 24 17:25:25 153-37-216-21 systemd[1]: network.service: control process exited, code=exited status=1
    2月 24 17:25:25 153-37-216-21 systemd[1]: Failed to start LSB: Bring up/down networking.
    2月 24 17:25:25 153-37-216-21 systemd[1]: Unit network.service entered failed state.
    2月 24 17:25:25 153-37-216-21 systemd[1]: network.service failed.
    

    2.问题排查

    # 1.如果是启动的network的话,可以是下面多个网卡配置文件,启动的话会顺序检查,可以将用不到的ifcfg-eth*删掉
    [root@centos7 network-scripts]# ll
    总用量 248
    -rw-r--r--. 1 root root    62 3月  13 2019 ifcfg-eth0
    -rw-r--r--  1 root root    62 2月  24 16:47 ifcfg-eth1
    -rw-r--r--. 1 root root    62 3月  13 2019 ifcfg-eth2
    -rw-r--r--. 1 root root    62 3月  13 2019 ifcfg-eth3
    # 2.可以停用network启用NetworkManager
    [root@153-37-216-21 network-scripts]# systemctl status NetworkManager
    ● NetworkManager.service - Network Manager
       Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; disabled; vendor preset: enabled)
       Active: active (running) since 三 2021-02-24 17:26:15 CST; 35min ago
         Docs: man:NetworkManager(8)
     Main PID: 9781 (NetworkManager)
       CGroup: /system.slice/NetworkManager.service
               ├─9781 /usr/sbin/NetworkManager --no-daemon
               ├─9788 /sbin/dhclient -d -q -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-eth0.pid -lf /var/lib/NetworkManager/dhclient-5fb06bd0-0bb0-7ffb-45f1-d6edd65f3e03-eth0.leas...
               └─9790 /sbin/dhclient -d -q -sf /usr/libexec/nm-dhcp-helper -pf /var/run/dhclient-eth1.pid -lf /var/lib/NetworkManager/dhclient-9c92fad9-6ecb-3e6c-eb4d-8a47c6f50c04-eth1.leas...
    
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5450] dhcp4 (eth1):   address 192.168.103.102
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5450] dhcp4 (eth1):   plen 24 (255.255.255.0)
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5451] dhcp4 (eth1):   lease time 4294967295
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5451] dhcp4 (eth1): state changed unknown -> bound
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5464] device (eth1): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'assume')
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5473] device (eth1): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'assume')
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5476] device (eth1): state change: secondaries -> activated (reason 'none', sys-iface-state: 'assume')
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5505] device (eth1): Activation: successful, device activated.
    2月 24 17:26:15 153-37-216-21 NetworkManager[9781]: <info>  [1614158775.5509] manager: startup complete
    2月 24 17:26:15 153-37-216-21 dhclient[9790]: bound to 192.168.103.102 -- renewal in 2147483648 seconds.
    注:两者有时会冲突
    
  • 相关阅读:
    重新格式化namenode后,出现java.io.IOException Incompatible clusterIDs
    启动hadoop,报错Error JAVA_HOME is not set and could not be found
    hadoop错误org.apache.hadoop.yarn.exceptions.YarnException Unauthorized request to start container
    hadoop错误org.apache.hadoop.util.DiskChecker$DiskErrorException Could not find any valid local directory for
    hadoop错误org.apache.hadoop.mapred.TaskAttemptListenerImpl Progress of TaskAttempt
    hadoop错误org.apache.hadoop.mapred.MapTask$NewOutputCollector@17bda0f2
    hadoop错误Operation category READ is not supported in state standby
    hadoop错误java.io.IOException Failed to replace a bad datanode on the existing pipeline due to no more good datanodes being available to try
    hadoop错误INFO util.NativeCodeLoader
    hadoop错误Ignoring exception during close for org.apache.hadoop.mapred.MapTask$NewOutputCollector@17bda0f2 java.io.IOException Spill failed
  • 原文地址:https://www.cnblogs.com/Applogize/p/14442977.html
Copyright © 2011-2022 走看看