|
| 1 | +:_content-type: ASSEMBLY |
| 2 | +[id="working-with-volume-snapshots-microshift"] |
| 3 | += Working with volume snapshots |
| 4 | +include::_attributes/attributes-microshift.adoc[] |
| 5 | +:context: volume-snapshots-microshift |
| 6 | + |
| 7 | +toc::[] |
| 8 | + |
| 9 | +Cluster administrators can use volume snapshots to help protect against data loss by using the supported {product-title} logical volume manager storage (LVMS) Container Storage Interface (CSI) provider. Familiarity with xref:../microshift_storage/understanding-persistent-storage-microshift.adoc#persistent-volumes_understanding-persistent-storage-microshift[persistent volumes] is required. |
| 10 | + |
| 11 | +A snapshot represents the state of the storage volume in a cluster at a particular point in time. Volume snapshots can also be used to provision new volumes. Snapshots are created as read-only logical volumes (LVs) located on the same device as the original data. |
| 12 | + |
| 13 | +A cluster administrator can complete the following tasks using CSI volume snapshots: |
| 14 | + |
| 15 | +* Create a snapshot of an existing persistent volume claim (PVC). |
| 16 | +* Back up a volume snapshot to a secure location. |
| 17 | +* Restore a volume snapshot as a different PVC. |
| 18 | +* Delete an existing volume snapshot. |
| 19 | +
|
| 20 | +[IMPORTANT] |
| 21 | +==== |
| 22 | +Only the logical volume manager storage (LVMS) plugin CSI driver is supported by {product-title}. |
| 23 | +==== |
| 24 | + |
| 25 | +//additional resources for assembly intro; trailing because 1) relevant here, 2) TOC levels, and 2) last called module has addt'l resources |
| 26 | +[role="_additional-resources"] |
| 27 | +.Additional resources |
| 28 | + |
| 29 | +* xref:../microshift_storage/understanding-persistent-storage-microshift.adoc#persistent-volumes_understanding-persistent-storage-microshift[Understanding persistent volumes] |
| 30 | +
|
| 31 | +* link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/{op-system-version-major}/html/configuring_and_managing_logical_volumes/creating-and-managing-thin-provisioned-volumes_configuring-and-managing-logical-volumes[Configuring and managing logical volumes] |
| 32 | +
|
| 33 | +* link:https://access.redhat.com/documentation/en-us/openshift_container_platform/{ocp-version}/html/storage/using-container-storage-interface-csi#persistent-storage-csi-snapshots[CSI snapshots: `VolumeSnapshot` APIs] |
| 34 | +
|
| 35 | +* link:https://docs.openshift.com/container-platform/{ocp-version}/rest_api/storage_apis/volumesnapshot-snapshot-storage-k8s-io-v1.html[VolumeSnapshot API specification] |
| 36 | +
|
| 37 | +include::modules/microshift-lvm-thin-volumes.adoc[leveloffset=+1] |
| 38 | + |
| 39 | +//additional resources for thin volumes module |
| 40 | +[role="_additional-resources"] |
| 41 | +.Additional resources |
| 42 | + |
| 43 | +* To create a thin pool on the host, see link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/{op-system-version-major}/html/configuring_and_managing_logical_volumes/creating-and-managing-thin-provisioned-volumes_configuring-and-managing-logical-volumes[Creating and managing thin provisioned volumes] |
| 44 | +
|
| 45 | +* link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/{op-system-version-major}/html/configuring_and_managing_logical_volumes/creating-and-managing-thin-provisioned-volumes_configuring-and-managing-logical-volumes#creating-thinly-provisioned-logical-volumes_creating-and-managing-thin-provisioned-volumes[Creating thinly provisioned logical volumes] |
| 46 | +
|
| 47 | +* link:https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/{op-system-version-major}/html/configuring_and_managing_logical_volumes/creating-and-managing-thin-provisioned-volumes_configuring-and-managing-logical-volumes[Configuring and managing thin provisioned volumes] |
| 48 | +
|
| 49 | +* xref:../microshift_storage/volume-snapshots-microshift.adoc#microshift-storage-classes_volume-snapshots-microshift[Storage classes] |
| 50 | +
|
| 51 | +* xref:../microshift_storage/microshift-storage-plugin-overview.adoc#microshift-storage-device-classes_microshift-storage-plugin-overview[Storage device classes] |
| 52 | +
|
| 53 | +include::modules/microshift-storage-classes.adoc[leveloffset=+2] |
| 54 | + |
| 55 | +//additional resources for storage classes module |
| 56 | +[role="_additional-resources"] |
| 57 | +.Additional resources |
| 58 | + |
| 59 | +* link:https://access.redhat.com/documentation/en-us/openshift_container_platform/{ocp-version}/html/storage/dynamic-provisioning#defining-storage-classes_dynamic-provisioning[Defining storage classes] |
| 60 | +
|
| 61 | +* xref:../microshift_storage/microshift-storage-plugin-overview.adoc#microshift-storage-device-classes_microshift-storage-plugin-overview[Storage device classes] |
| 62 | +
|
| 63 | +include::modules/microshift-storage-vol-snapshot-class.adoc[leveloffset=+1] |
| 64 | + |
| 65 | +//additional resources for volume snapshot classes module |
| 66 | +[role="_additional-resources"] |
| 67 | +.Additional resources |
| 68 | + |
| 69 | +* link:https://docs.openshift.com/container-platform/{ocp-version}/storage/container_storage_interface/persistent-storage-csi-snapshots.html#volume-snapshot-crds[OpenShift CSI volume snapshots] |
| 70 | +
|
| 71 | +include::modules/microshift-storage-about-vol-snapshots.adoc[leveloffset=+1] |
| 72 | + |
| 73 | +include::modules/microshift-storage-creating-vol-snapshot.adoc[leveloffset=+2] |
| 74 | + |
| 75 | +include::modules/microshift-storage-backup-volume-snapshots.adoc[leveloffset=+2] |
| 76 | + |
| 77 | +include::modules/microshift-storage-vol-snapshot-restore.adoc[leveloffset=+2] |
| 78 | + |
| 79 | +//additional resources for volume snapshot restore module |
| 80 | +[role="_additional-resources"] |
| 81 | +.Additional resources |
| 82 | + |
| 83 | +* link:https://access.redhat.com/documentation/en-us/openshift_container_platform/{ocp-version}/html/storage/using-container-storage-interface-csi#persistent-storage-csi-snapshots-provision_persistent-storage-csi-snapshots[Restoring a volume snapshot] |
| 84 | +
|
| 85 | +//this module is reused from OCP; take care in editing for MicroShift |
| 86 | +include::modules/persistent-storage-csi-snapshots-delete.adoc[leveloffset=+2] |
| 87 | + |
| 88 | +include::modules/microshift-storage-volume-cloning.adoc[leveloffset=+1] |
| 89 | + |
| 90 | +//additional resources for volume cloning module |
| 91 | +[role="_additional-resources"] |
| 92 | +.Additional resources |
| 93 | + |
| 94 | +* link:https://docs.openshift.com/container-platform/{ocp-version}/storage/container_storage_interface/persistent-storage-csi-cloning.html[CSI volume cloning] |
| 95 | +
|
| 96 | +* link:https://access.redhat.com/documentation/en-us/openshift_container_platform/{ocp-version}/html/storage/configuring-persistent-storage#lvms-creating-volume-clones-in-single-node-openshift_logical-volume-manager-storage[LVMS volume cloning for Single-Node OpenShift] |
| 97 | +
|
| 98 | +* To configure the host to enable cloning, see xref:../microshift_storage/volume-snapshots-microshift.adoc#microshift-lvm-thin-volumes_volume-snapshots-microshift[About LVM thin volumes] |
0 commit comments