Home > Storage > PowerFlex > White Papers > Snapshots Container Storage Modules (CSM) for Dell PowerFlex > Restoring Persistent Volume
To successfully restore the snapshot volume, the persistent volume of same size and same storageclass must be created and applied. If there is a change in the storageclass, then the creation of persistent volumes fails.
The following sample YAML file is used to restore the snapshots:
apiVersion: v1 kind: PersistentVolumeClaim metadata: name: r-vgs-mssql01-sql spec: storageClassName: vxflexos dataSource: ##Volume Label Obtained from Step 1## name: r01-vgs-mssql01-1-s-mssql01-sqldata kind: VolumeSnapshot apiGroup: snapshot.storage.k8s.io accessModes: - ReadWriteOnce resources: requests: storage: 304Gi
--- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: r-vgs-mssql01-logs spec: storageClassName: vxflexos dataSource: name: r01-vgs-mssql01-2-s-mssql01-logs kind: VolumeSnapshot apiGroup: snapshot.storage.k8s.io accessModes: - ReadWriteOnce resources: requests: storage: 200Gi
--- apiVersion: v1 kind: PersistentVolumeClaim metadata: name: r-vgs-mssql01-temp ## spec: storageClassName: vxflexos dataSource: name: r01-vgs-mssql01-0-s-mssql01-temp kind: VolumeSnapshot apiGroup: snapshot.storage.k8s.io accessModes: - ReadWriteOnce resources: requests: storage: 304Gi |