On Jul 8, 2010, at 8:50 PM, Todd Deshane wrote:

> It seems that the database will persist even across a reboot, is that true?

Yes.  It's stored on disk to the file specified on startup.  On XenServer, they 
assume there's no persistence across reboots, so the init scripts jump through 
some hoops to clean out those entries.  Obviously you can do the same for your  
Xen integration if it's needed.

> Also, what would be the recommended way to delete/clean up the database?

Here's the relavent code in "xenserver/etc_init.d_openvswitch":

      start_ovsdb_server
      $vsctl --no-wait init
      if [ ! -e /var/run/openvswitch.booted ]; then
          touch /var/run/openvswitch.booted
          for bridge in $($vsctl list-br); do
              $vsctl --no-wait del-br $bridge
          done
      fi

This just cleans up the bridges and the ports attached to them, which may be 
sufficient.  The ovs-vsctl command can be used to delete and modify other 
entries if you need them.  Let us know if you any particular questions.

--Justin



_______________________________________________
discuss mailing list
[email protected]
http://openvswitch.org/mailman/listinfo/discuss_openvswitch.org

Reply via email to