Start with Custom Configurations
You can use specific options to start or stop the daemons as required.
1 | $ mkdir -p /usr/local/var/run/openvswitch |
- Scenario 1: Only the ovsdb daemon is started, whereas the ovs-vswitchd daemon is not started.
1$ ovs-ctl --no-ovs-vswitchd start
- Scenario 2: Only the ovs-vswitchd daemon is started, whereas the ovsdb daemon is not started.
1$ ovs-ctl --no-ovsdb-server start
- Scenario 3: Configure the ovsdb-server database file used by the local OVS and manually start all daemons.
1 2 3 4 5 6 7 8 9 10 11
$ mkdir -p /usr/local/etc/openvswitch $ ovsdb-tool create /usr/local/etc/openvswitch/conf.db vswitchd/vswitch.ovsschema $ mkdir -p /usr/local/var/run/openvswitch $ ovsdb-server --remote=punix:/usr/local/var/run/openvswitch/db.sock \ --remote=db:Open_vSwitch,Open_vSwitch,manager_options \ --private-key=db:Open_vSwitch,SSL,private_key \ --certificate=db:Open_vSwitch,SSL,certificate \ --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert \ --pidfile --detach --log-file $ ovs-vsctl --no-wait init $ ovs-vswitchd --pidfile --detach --log-file
Parent topic: Component Startup