OpenEBS Upgrades
-
The upgrade from OpenEBS 3.x to OpenEBS 4.x is supported only for the following storages installed from OpenEBS 3.x.
- Local PV Hostpath
- Local PV LVM
- Local PV ZFS
- Replicated PV Mayastor
Refer to the Migration documentation for other storages.
- When deploying with the OpenEBS Helm chart, use the
kubectl openebs upgradecommand to upgrade all storages.
Overview
This upgrade process allows you to upgrade to the latest OpenEBS version 4.3 which is a unified installer for three Local Storages (a.k.a Local Engines):
- Local PV HostPath
- Local PV LVM
- Local PV ZFS
and one Replicated Storage (a.k.a Replicated Engine):
- Replicated PV Mayastor
As a part of the upgrade to OpenEBS 4.3, the Helm chart will install all four engines regardless of the engine you used before the upgrade.
During the upgrade, if you are only interested in Local PV Storage, you can disable Replicated PV Mayastor by using the below option:
--set engines.replicated.mayastor.enabled=false
Downgrades are not supported.
Upgrade from 3.x to 4.3
Follow these steps to upgrade OpenEBS from version 3.x to 4.3:
- Update the helm repository: The OpenEBS Helm chart repository URL has changed. The repository target URL needs to be updated.
helm repo remove openebs
helm repo add openebs https://openebs.github.io/openebs
helm repo update
-
Download the
kubectl openebsbinary from the OpenEBS Release repository on GitHub. -
Execute
kubectl openebs upgrade -n <namespace>to upgrade OpenEBS. -
Monitor the upgrade status using
kubectl openebs upgrade status -n <namespace>. -
Verify that the CRDs, Volumes, Snapshots, and StoragePools are not affected by the upgrade process.
-
For upgrades from 3.x to 4.x, include the following option in the kubectl openebs upgrade command to ensure data consistency during the upgrade:
--set mayastor.agents.core.rebuild.partial.enabled=falseThis option is not required for upgrades from 4.x to newer versions.
-
If you have disabled the partial rebuild during the upgrade, re-enable it by using the below command after a successful upgrade.
kubectl openebs upgrade -n <namespace> --set mayastor.agents.core.rebuild.partial.enabled=true
Upgrade from 4.x to 4.3
Follow these steps to upgrade OpenEBS from version 4.x to 4.3:
-
Download the
kubectl openebsbinary from the OpenEBS Release repository on GitHub. -
Execute
kubectl openebs upgrade -n <namespace>to upgrade OpenEBS. -
Monitor the upgrade status using
kubectl openebs upgrade status -n <namespace>. -
Verify that the CRDs, Volumes, Snapshots, and StoragePools are not affected by the upgrade process.