[CentOS] Systemd spends 6 min. to startup a host

Tue Oct 6 06:58:16 UTC 2015
C. L. Martinez <carlopmart at gmail.com>

On Tue, Oct 6, 2015 at 6:53 AM, Gordon Messmer <gordon.messmer at gmail.com> wrote:
> On 10/03/2015 09:47 AM, C.L. Martinez wrote:
>>
>>  All works well, except when I reboot this server. Systemd spends 6 min.
>> to startup this host!!! .. It stops with: "A start job is running for LSB:
>> Raise network ...".
>
>
> https://www.google.com/search?q=systemd+lsb+raise+network&ie=utf-8&oe=utf-8
>
> If your problem is similar to the first few google hits, then some part of
> your configuration is probably calling "service something restart" or
> "systemctl restart something".  The service being restarted requires
> network.target to be available, which only happens after the interfaces are
> all up, which is a deadlock condition.
>
> If you provide all of the configuration files you edited to enable
> openvswitch, we might be able to give you more specific advice. Your
> original question was quite vague.
>

Yes, my problem is very similar as described in Debian's bugtracker.
Ok, here is my openvswitches config:

DEVICE=dmzprif
DEVICETYPE=ovs
TYPE=OVSBridge
STP=off
ONBOOT=yes

DEVICE=encif
DEVICETYPE=ovs
TYPE=OVSBridge
STP=off
ONBOOT=yes

DEVICE=prodif
DEVICETYPE=ovs
TYPE=OVSBridge
STP=off
IPADDR=172.22.55.1
NETMASK=255.255.255.240
GATEWAY=172.22.55.14
ONBOOT=yes

DEVICE=vpnif
DEVICETYPE=ovs
TYPE=OVSBridge
STP=off
ONBOOT=yes

... and nics attached to some of these openvswitches:

DEVICE=eth0
OVS_BRIDGE=pubif
DEVICETYPE=ovs
TYPE=OVSPort
ONBOOT=yes

DEVICE=eth1
OVS_BRIDGE=prodif
DEVICETYPE=ovs
TYPE=OVSPort
ONBOOT=yes


...