> Hi, > There was a problem while adding a db to a running ovsdb-server. Can you > please let me know if I'm missing something? > > ovsdb-server was started using the below command: > > > ovsdb-server /etc/openvswitch/conf.db -vconsole:emer -vsyslog:err -vfile:info > --remote=punix:/var/run/openvswitch/db.sock > --private-key=db:Open_vSwitch,SSL,private_key > --certificate=db:Open_vSwitch,SSL,certificate > --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --no-chdir > --log-file=/var/log/openvswitch/ovsdb-server.log > --pidfile=/var/run/openvswitch/ovsdb-server.pid --detach > > On trying to add a db to the running ovsdb-server, it gave the below error: >>> ovs-appctl -t ovsdb-server ovsdb-server/add-db /root/test.db > > > I/O error: /root/test.db: failed to lock lockfile (Resource temporarily > unavailable) > > ovs-appctl: ovsdb-server: server returned an error > > server logs: > > 2021-08-09T04:02:40.688Z|00023|lockfile|WARN|/root/.test.db.~lock~: failed to > stat lock file: Permission denied
This one is likely a culprit of the issue. It seems that running ovsdb-server process has no access to /root. It might be because of the user/group it's running in or due to SELinux or something else blocking the access. > > 2021-08-09T04:02:40.688Z|00024|lockfile|WARN|/root/.test.db.~lock~: failed to > lock file: Resource temporarily unavailable > > Also, can we have two ovsdb-server instances running on the same machine? Sure, as long as they are not trying to use same files (database/log file/pidfile/unixctl socket/remote socket/etc). > > Thanks and regards, > Rutuja Madhure _______________________________________________ discuss mailing list [email protected] https://mail.openvswitch.org/mailman/listinfo/ovs-discuss
