Changes between Version 3 and Version 4 of FlowVisor/UpgradingTo0.8.17


Ignore:
Timestamp:
12/27/12 20:02:08 (11 years ago)
Author:
Josh Smift
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FlowVisor/UpgradingTo0.8.17

    v3 v4  
    174174Do this subsection '''only''' if you're upgrading from an DB-based version!
    175175
    176 Upgrading from a DB version prior to 0.8.17 may delete your entire database, and the 'flowvisor' user. This section includes steps to back up and restore the DB; the new version will re-create the 'flowvisor' user, but if it gets a different UID than it had before, you may also have to fix up some permissions on various files and directories.
     176Upgrading from a DB version prior to 0.8.17 may delete your entire database, and the 'flowvisor' user. This section includes steps to dump and restore the DB; the new version will re-create the 'flowvisor' user, but if it gets a different UID than it had before, you may also have to fix up some permissions on various files and directories.
    177177
    178178So, just in case, get the UID of the current 'flowvisor' user:
     
    184184Keep track of this UID for a later step.
    185185
    186 Back up your current database:
    187 
    188 {{{
    189 fvctl --passwd-file=/etc/flowvisor.passwd dumpConfig /tmp/config-backup.json && cp /tmp/config-backup.json config-backup.json
     186Dump your current database:
     187
     188{{{
     189fvctl --passwd-file=/etc/flowvisor.passwd dumpConfig /tmp/config.json && cp /tmp/config.json config.json
    190190}}}
    191191
     
    229229There are three !FlowVisor variables that are off by default in new installations, but may be on in upgraded ones, which we recommend that you turn off: run_topology_server, stats_desc_hack, and checkpointing.
    230230
    231 To do that, edit your new config.json file, e.g. with 'sed' like this:
    232 
    233 {{{
    234 sudo -u flowvisor sed -i -e 's/"run_topology_server": true/"run_topology_server": false/' /etc/flowvisor/config.json
    235 sudo -u flowvisor sed -i -e 's/"stats_desc_hack": true/"stats_desc_hack": false/' /etc/flowvisor/config.json
    236 sudo -u flowvisor sed -i -e 's/"checkpointing": true/"checkpointing": false/' /etc/flowvisor/config.json
     231To do that, edit your config.json file, e.g. with 'sed' like this:
     232
     233{{{
     234sed -i -e 's/"run_topology_server": true/"run_topology_server": false/' config.json
     235sed -i -e 's/"stats_desc_hack": true/"stats_desc_hack": false/' config.json
     236sed -i -e 's/"checkpointing": true/"checkpointing": false/' config.json
    237237}}}
    238238