Restore the SUSE® Storage System
Longhorn System Restore Rollouts
- 
Longhorn restores the resource from the Longhorn System Backup Bundle. 
- 
Longhorn does not restore existing Volumesand their associatedPersistentVolumeandPersistentVolumeClaim.
- 
Longhorn automatically restores a Volumefrom its latest backup.
- 
To prevent overwriting eligible settings, Longhorn does not restore the ConfigMap/longhorn-default-setting.
- 
Longhorn does not restore configurable settings. 
- 
Since Longhorn does not back up V2 Data Engine backing images, you must ensure that those images are available in the cluster before you restore the Longhorn system. This allows Longhorn to restore volumes that use V2 Data Engine backing images. 
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 Nodesand disk tags forStorageClass.
- 
Have a Longhorn system backup. See Backup Longhorn System - Create Longhorn System Backup for instructions. 
- 
All existing Volumesare detached.
Using kubectl Command
- 
Find the Longhorn SystemBackupto 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 createto create a LonghornSystemRestoreof theSystemBackup.apiVersion: longhorn.io/v1beta2 kind: SystemRestore metadata: name: restore-demo namespace: longhorn-system spec: systemBackup: demo
- 
The system restore starts. 
- 
The SystemRestorechange to stateCompletedwhen 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.