|
6 | 6 | [id="lvms-upgrading-lvms-on-sno_{context}"]
|
7 | 7 | = Upgrading {lvms} on {sno} clusters
|
8 | 8 |
|
9 |
| -Currently, it is not possible to upgrade from {rh-storage} Logical Volume Manager Operator 4.11 to {lvms} 4.12 on {sno} clusters. |
| 9 | +You can upgrade the {lvms-first} Operator to ensure compatibility with your {sno} version. |
10 | 10 |
|
11 |
| -[IMPORTANT] |
12 |
| -==== |
13 |
| -The data will not be preserved during this process. |
14 |
| -==== |
| 11 | +.Prerequisites |
| 12 | + |
| 13 | +* You have upgraded your {sno} cluster. |
| 14 | +
|
| 15 | +* You have installed a previous version of the {lvms} Operator. |
| 16 | +
|
| 17 | +* You have installed the OpenShift CLI (`oc`). |
| 18 | +
|
| 19 | +* You have logged in as a user with `cluster-admin` privileges. |
15 | 20 |
|
16 | 21 | .Procedure
|
17 | 22 |
|
18 |
| -. Back up any data that you want to preserve on the persistent volume claims (PVCs). |
19 |
| -. Delete all PVCs provisioned by the {rh-storage} Logical Volume Manager Operator and their pods. |
20 |
| -. Reinstall {lvms} on {product-title} 4.12. |
21 |
| -. Recreate the workloads. |
22 |
| -. Copy the backup data to the PVCs created after upgrading to 4.12. |
| 23 | +. Update the `Subscription` resource for the {lvms} Operator by running the following command: |
| 24 | ++ |
| 25 | +[source,terminal] |
| 26 | +---- |
| 27 | +$ oc patch subscription lvms-operator -n openshift-storage --type merge --patch '{"spec":{"channel":"<update-channel>"}}' <1> |
| 28 | +---- |
| 29 | +<1> Replace `<update-channel>` with the version of the {lvms} Operator that you want to install, for example `stable-{product-version}`. |
| 30 | + |
| 31 | +. View the upgrade events to check that the installation is complete by running the following command: |
| 32 | ++ |
| 33 | +[source,terminal] |
| 34 | +---- |
| 35 | +$ oc get events -n openshift-storage |
| 36 | +---- |
| 37 | ++ |
| 38 | +.Example output |
| 39 | +[source,terminal, subs="attributes"] |
| 40 | +---- |
| 41 | +... |
| 42 | +8m13s Normal RequirementsUnknown clusterserviceversion/lvms-operator.v{product-version} requirements not yet checked |
| 43 | +8m11s Normal RequirementsNotMet clusterserviceversion/lvms-operator.v{product-version} one or more requirements couldn't be found |
| 44 | +7m50s Normal AllRequirementsMet clusterserviceversion/lvms-operator.v{product-version} all requirements found, attempting install |
| 45 | +7m50s Normal InstallSucceeded clusterserviceversion/lvms-operator.v{product-version} waiting for install components to report healthy |
| 46 | +7m49s Normal InstallWaiting clusterserviceversion/lvms-operator.v{product-version} installing: waiting for deployment lvms-operator to become ready: deployment "lvms-operator" waiting for 1 outdated replica(s) to be terminated |
| 47 | +7m39s Normal InstallSucceeded clusterserviceversion/lvms-operator.v{product-version} install strategy completed with no errors |
| 48 | +... |
| 49 | +---- |
| 50 | + |
| 51 | +.Verification |
| 52 | + |
| 53 | +* Verify the version of the {lvms} Operator by running the following command: |
| 54 | ++ |
| 55 | +[source,terminal] |
| 56 | +---- |
| 57 | +$ oc get subscription lvms-operator -n openshift-storage -o jsonpath='{.status.installedCSV}' |
| 58 | +---- |
| 59 | ++ |
| 60 | +.Example output |
| 61 | +[source,terminal, subs="attributes"] |
| 62 | +---- |
| 63 | +lvms-operator.v{product-version} |
| 64 | +---- |
0 commit comments