From d4abb86092cd84cc956ed66e27283eb590b14fb6 Mon Sep 17 00:00:00 2001 From: Andrei Kvapil Date: Mon, 2 Mar 2026 18:41:23 +0100 Subject: [PATCH] feat(linstor): configure VolumeSnapshotClasses for relocation and Velero Enable relocate-after-restore on the default linstor-snapshots class so that PVCs restored from snapshots get replicas relocated to optimal nodes. Add a separate linstor-snapshots-velero class with the Velero annotation and without relocation, so Velero's temporary data mover PVCs are not relocated unnecessarily. Co-Authored-By: Claude Signed-off-by: Andrei Kvapil --- .../system/linstor/templates/volumesnapshotclass.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/system/linstor/templates/volumesnapshotclass.yaml b/packages/system/linstor/templates/volumesnapshotclass.yaml index 4e950f3f..dd61b45a 100644 --- a/packages/system/linstor/templates/volumesnapshotclass.yaml +++ b/packages/system/linstor/templates/volumesnapshotclass.yaml @@ -6,3 +6,14 @@ metadata: name: linstor-snapshots driver: linstor.csi.linbit.com deletionPolicy: Delete +parameters: + snap.linstor.csi.linbit.com/relocate-after-restore: "true" +--- +apiVersion: snapshot.storage.k8s.io/v1 +kind: VolumeSnapshotClass +metadata: + annotations: + velero.io/csi-volumesnapshot-class: "true" + name: linstor-snapshots-ephemeral +driver: linstor.csi.linbit.com +deletionPolicy: Delete