Create group snapshots using VolumeSnapshots for OpenShift with FlashArray
Summary and Key concepts
Summary
This article provides a guide on creating group snapshots of Portworx volumes in Kubernetes using annotations or Portworx volume group IDs. It explains prerequisites such as installing Stork and details how to create group snapshots for PVCs that match certain annotations or belong to a specific namespace. The article outlines how to manage, track, and delete group snapshots using Kubernetes commands like oc
or kubectl
. An example is provided that shows how to take group snapshots of all PVCs in a namespace and how to monitor the status of these snapshots.
Kubernetes Concepts
- PersistentVolumeClaim (PVC): A request for storage in Kubernetes, which can be snapshotted as part of a group.
- Annotations: Metadata used for selecting PVCs and managing group snapshots.
- Namespace: Used to divide resources in Kubernetes, which can also be used to group PVCs for snapshots.
Portworx Concepts
-
Stork: A Kubernetes extension for managing Portworx storage operations, such as snapshots.
-
VolumeSnapshot: Represents a snapshot of a Portworx volume in Kubernetes.
-
Volume Group Snapshot: A feature that allows the creation of snapshots for multiple PVCs at once using annotations or group IDs.
This document will show you how to create group snapshots of Portworx volumes and how you can clone those snapshots to use them in pods.