Migrate from the Flexvolume Driver to CSI
The Flexvolume driver is no longer supported. You can migrate from the Flexvolume driver to CSI, which is the newest out-of-tree Kubernetes storage interface.
Note that the volumes created and used through one driver won’t be recognized by Kubernetes using the other driver. So please don’t switch the driver (e.g. during an upgrade) if you have existing volumes created using the old driver.
Ensure your Longhorn App is up to date. Follow the relevant upgrade procedure before proceeding.
The migration path between drivers requires backing up and restoring each volume and will incur both API and workload downtime. This can be a tedious process. Consider deleting unimportant workloads using the old driver to reduce effort.
-
On Rancher UI, navigate to the
Catalog Apps
screen, locate theLonghorn
app and click theUp to date
button. UnderKubernetes Driver
, selectflexvolume
. We recommend leavingFlexvolume Path
empty. ClickUpgrade
. -
Restore each volume. This procedure is tailored to the StatefulSet workload, but the process is approximately the same for all workloads.