I recently just did a from-scratch install of Ubuntu 20.04 server edition and ran into issues with Open vSwitch and ZFS. I attempted to use ZFS for all of /var only to find that ovsdb-server pre-empted my ZFS /var mount which caused it to crash when trying to read its configuration DB at/var/lib/openvswitch/conf.db After much troubleshooting, the problem basically boils down to ovsdb-server.service needing a requirement on local-fs.target
I recently just did a from-scratch install of Ubuntu 20.04 server edition and ran into issues with Open vSwitch and ZFS. I attempted to use ZFS for all of /var only to find that ovsdb-server pre-empted my ZFS /var mount which caused it to crash when trying to read its configuration DB at/var/ lib/openvswitch /conf.db After much troubleshooting, the problem basically boils down to ovsdb-server. service needing a requirement on local-fs.target
I then found a blog post on Open Cloud Blog (https:/ /www.opencloudb log.com/ ?p=240) that contained a fix:
The "After" line /lib/systemd/ system/ ovsdb-server. service needs the following changes:
[Unit] =Open vSwitch Database Unit syslog. target network-pre.target dpdk.service local-fs.target network. target networking.service openvswitch- switch. service ndencies= no
Description
After=
Before=
PartOf=
DefaultDepe
[Service] =1048576 on-failure File=-/ etc/default/ openvswitch /usr/share/ openvswitch/ scripts/ ovs-ctl \
--no-ovs- vswitchd --no-monitor --system-id=random \ /usr/share/ openvswitch/ scripts/ ovs-ctl --no-ovs-vswitchd stop /usr/share/ openvswitch/ scripts/ ovs-ctl --no-ovs-vswitchd \
--no-monitor restart $OPTIONS ctory=openvswit ch ctoryMode= 0755
LimitNOFILE
Type=forking
Restart=
Environment
ExecStart=
start $OPTIONS
ExecStop=
ExecReload=
RuntimeDire
RuntimeDire