Restore the SUSE® Storage System
Longhorn System Restore Rollouts
-
Longhorn restores the resource from the Longhorn System Backup Bundle.
-
Longhorn does not restore existing
Volumes
and their associatedPersistentVolume
andPersistentVolumeClaim
. -
Longhorn automatically restores a
Volume
from its latest backup. -
To prevent overwriting eligible settings, Longhorn does not restore the
ConfigMap/longhorn-default-setting
. -
Longhorn does not restore configurable settings.
Create Longhorn System Restore
You can restore the Longhorn system using Longhorn UI. Or with the kubectl
command.
Prerequisite
-
A running Longhorn cluster for Longhorn to roll out the resources in the system backup bundle.
-
Set up the
Nodes
and disk tags forStorageClass
. -
Have a Longhorn system backup.
See Backup Longhorn System - Create Longhorn System Backup for instructions.
-
All existing
Volumes
are detached.
Using kubectl
Command
-
Find the Longhorn
SystemBackup
to restore.> kubectl -n longhorn-system get systembackup NAME VERSION STATE CREATED demo v1.4.0 Ready 2022-11-24T04:23:24Z demo-2 v1.4.0 Ready 2022-11-24T05:00:59Z
-
Execute
kubectl create
to create a LonghornSystemRestore
of theSystemBackup
.apiVersion: longhorn.io/v1beta2 kind: SystemRestore metadata: name: restore-demo namespace: longhorn-system spec: systemBackup: demo
-
The system restore starts.
-
The
SystemRestore
change to stateCompleted
when done.> kubectl -n longhorn-system get systemrestore NAME STATE AGE restore-demo Completed 59s
Delete Longhorn System Restore
Deleting the SystemRestore also deletes the associated job and will abort the remaining resource rollouts. You can Restart the Longhorn System Restore to roll out the remaining resources. |
You can abort or remove a completed Longhorn system restore using Longhorn UI. Or with the kubectl
command.
Restart Longhorn System Restore
-
Delete Longhorn System Restore that is in progress.
Configurable Settings
Some settings are excluded as configurable before the Longhorn system restore.