Changes between Version 3 and Version 4 of FlowVisor/UpgradingTo0.8.17
- Timestamp:
- 12/27/12 20:02:08 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FlowVisor/UpgradingTo0.8.17
v3 v4 174 174 Do this subsection '''only''' if you're upgrading from an DB-based version! 175 175 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.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 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. 177 177 178 178 So, just in case, get the UID of the current 'flowvisor' user: … … 184 184 Keep track of this UID for a later step. 185 185 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.json186 Dump your current database: 187 188 {{{ 189 fvctl --passwd-file=/etc/flowvisor.passwd dumpConfig /tmp/config.json && cp /tmp/config.json config.json 190 190 }}} 191 191 … … 229 229 There 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. 230 230 231 To do that, edit your newconfig.json file, e.g. with 'sed' like this:232 233 {{{ 234 s udo -u flowvisor sed -i -e 's/"run_topology_server": true/"run_topology_server": false/' /etc/flowvisor/config.json235 s udo -u flowvisor sed -i -e 's/"stats_desc_hack": true/"stats_desc_hack": false/' /etc/flowvisor/config.json236 s udo -u flowvisor sed -i -e 's/"checkpointing": true/"checkpointing": false/' /etc/flowvisor/config.json231 To do that, edit your config.json file, e.g. with 'sed' like this: 232 233 {{{ 234 sed -i -e 's/"run_topology_server": true/"run_topology_server": false/' config.json 235 sed -i -e 's/"stats_desc_hack": true/"stats_desc_hack": false/' config.json 236 sed -i -e 's/"checkpointing": true/"checkpointing": false/' config.json 237 237 }}} 238 238