Longhorn Version Upgrade with Rancher

The upgrade process for Longhorn includes the following steps:

  1. Log in to the Rancher UI.
  2. Click on the “Apps” tab on the left-hand menu and then select the “Installed Apps” option. Here, under “Longhorn System,” find the “Longhorn” application.
  3. If a new version is available, the new version information will be displayed within a yellow box in the “Chart” section.
  4. Select the “Edit/Upgrade” option using the three dots (···) and choose the latest version. Then initiate the process by clicking “Next” and “Next.”
  5. Wait for the appropriate pods for the new version to start. During this process, a terminal will open automatically, allowing you to observe the progress.
  6. Once the pods for the new version are running, access the Longhorn UI, and it will be necessary to perform an Engine Image upgrade for each volume.
  7. For each volume, select the respective checkbox, and use the “Upgrade Engine” option that appears to select the new version and complete the upgrade process.
  8. After completing the “Upgrade Engine” process for each volume, go to “Settings” -> “Engine Image” section. Here, both old and new versions will be listed. If you are certain that the “Upgrade Engine” process has been completed for each storage unit, the old version can be deleted from here.
  9. Wait for the pods associated with the old version to be automatically terminated (“kill”). If they do not terminate automatically, apply the “Redeploy” operation to the respective Daemonset to terminate them. Once you’ve ensured that all versions across all pods are compatible with the new version, the process will be completed.

--

--