On Wed, Jul 03, 2024 at 11:21:44AM GMT, richman1000000--- via discuss wrote: > Hi! > > I have an issue with openvswitch on server. > > few month ago had issue with server being inaccessible. > After investigation I found a reason for that. > folder /var is on the disk (HDD RAID) > folder /run is in memory(tmpfs) > symlink //var/run -> /run/ > > /lsof | grep "var/run" > ovsdb-ser 593 root 15u unix > 0x00000000065cc4dd 0t0 12496 /var/run/openvswitch/db.sock > type=STREAM > ovsdb-ser 593 root 16u unix > 0x00000000d853813b 0t0 12497 > /var/run/openvswitch/ovsdb-server.593.ctl type=STREAM > ovsdb-ser 593 root 18u unix > 0x000000004cba3d40 0t0 12544 /var/run/openvswitch/db.sock > type=STREAM > ovs-vswit 641 root 9u unix > 0x000000007acb4cf4 0t0 16459 > /var/run/openvswitch/ovs-vswitchd.641.ctl type=STREAM > ovs-vswit 641 root 48u unix > 0x000000003b097565 0t0 25826 > /var/run/openvswitch/ovs-inter.mgmt type=STREAM > ovs-vswit 641 root 49u unix > 0x00000000a1bb850e 0t0 25827 > /var/run/openvswitch/ovs-inter.snoop type=STREAM/ > > During heaving IO to disk folder /var becomes frozen. ls -l will not return > anything. > since /var contains "run" symlink this results in ovs daemons to fail and > virtual switch stops working. > > the solution is to move all pid and sockets to folder /run but is seems this > is hard-coded into ovs daemons.
rundir is not hardcoded into ovs daemons. You can change it by setting environment variables when launching the daemons. Also look at ovs-ctl script "--with-rundir" option. Thanks. Adrián > I've tried to change in conf.db /"rundir","/var/run/openvswitch" /but ovs > will not start after that changes. > > _______________________________________________ > discuss mailing list > disc...@openvswitch.org > https://mail.openvswitch.org/mailman/listinfo/ovs-discuss _______________________________________________ discuss mailing list disc...@openvswitch.org https://mail.openvswitch.org/mailman/listinfo/ovs-discuss