The easiest and most reliable way to upgrade Open vStorage is through the GUI. Go to Administration > Updates to verify if updates are pending.
- Click the Update Framework button to update the Open vStorage Framework.
- Click the Update Storage Driver button to update the Volume Driver and Open vStorage Backend.
The below procedure describes how to manually update all components of an Open vStorage environment. Do follow these steps closely as an incorrect update might result in data loss or an unrecoverable environment.
The packages of the different versions can be found on the repo's: http://apt.openvstorage.org/ and http://yum.openvstorage.org/.
The manual procedure consists out of 5 steps:
- Stop all virtual machines using any volumes
- Stop Framework, Volume Driver and ALBA services
- Upgrade Alba
- Upgrade the Volume Driver
- Upgrade Framework
To stop all services execute
- For the Framework
service ovs-watcher-framework stop
service memcached stop
service arakoon-ovsdb stop
- For the Volume Driver
service ovs-volumedriver_vpoolname stop
service ovs-dtl_vpoolname stop
- For ALBA
service ovs-albaproxy_vpoolname stop
service alba-asd-* stop
service ovs-alba-maintenance* stop
service ovs-alba-rebalancer* stop
- Make sure you are also about to update Arakoon if required
- If you have less than 3 master nodes, make sure all volumes are stopped
- On all nodes, install the new alba package through apt or yum.
- On all nodes, restart each ASD
- Find them with
ls -al /etc/init/alba-asd-*
- Find them with
- On all nodes, restart all proxies by sending a kill signal kill
- Find them with
ls -al /etc/init/ovs-albaproxy*
and for each entryservice ovs-albaproxy_<vpool name> status
- Find them with
- On all nodes where applicable, restart the alba arakoon clusters, foreach backend
- Find them with
ls -al /etc/init/ovs-arakoon-<backend name>*
- If < 3: Stop them all, and start them all up again
- If >= 3: Restart them one by one, waiting a minute in between
- Find them with
- On all nodes, restart the maintenance and rebalancer processes
- Find them with
ls -al /etc/init/ovs-alba-maintenance*
andls -al /etc/init/ovs-alba-rebalancer*
- Find them with
- On all nodes, install new Volume Driver packages through apt or yum.
- On all nodes, for each running vPool execute restart ovs-volumedriver_vpoolname
- Find them with
ls -al /etc/ovs-volumedriver*
- Find them with
You simply can't upgrade this one without the GUI unless you manually touch /etc/ready_for_upgrade
it will refuse to install.
- Stop all relevant services if not done before (watcher-framework, memcache, arakoon-ovsdb)
- Upgrade the packages through apt or yum.
- Start arakoon-ovsdb, memcached on the master nodes
- On 1 node:
from ovs.dal.helpers import Migration}}
Migration.migrate()
* On all nodes:
from ovs.extensions.migration.migrator import Migrator
Migrator.migrate()
- Restart memcache on all master nodes
- Start the watcher-framework again
service ovs-watcher-framework start
Do not forget to patch files you manually patched after the installation as they might have been overwritten by the package update.