Home > Storage > PowerFlex > White Papers > Snapshots Container Storage Modules (CSM) for Dell PowerFlex > Taking volume group snapshots
CSM Volume Group Snapshotter is an operator which extends Kubernetes API to support crash-consistent snapshots of groups of volumes on PowerFlex.
Figure 5: Volume Group Snapshot Logical Event Flow
To take volume group snapshots, a SQL Server source pod is deployed with multiple volumes attached to it. The following list describes the steps to deploy and take volume group snapshots:
$ kubectl apply -f s-mssql01_pv.yaml -n vgs-vxflexos
3. To list the PVs created for source SQL server pod run the following command:
$ kubectl get pv |grep vgs-vxflexos/s-mssql01
NAME CAPACITY ACCESS MODES RECLAIM POLICY
k8s-f45c6849c8 304Gi RWO Delete
k8s-56d6530e65 200Gi RWO Delete
k8s-7b6dfb982a 304Gi RWO Delete
4. To list the persistent volume claims for source SQL server pod run the following command:
kubectl get pvc -n vgs-vxflexos |grep s-mssql01
NAME STATUS VOLUME CAPACITY AGE
s-mssql01-logs Bound k8s-56d6530e65 200Gi 89d
s-mssql01-sqldata Bound k8s-f45c6849c8 304Gi 89d
s-mssql01-temp Bound k8s-7b6dfb982a 304Gi 89d
5. To deploy a SQL server pod, create a YAML file as shown in the Appendix.
6. Run the following command to deploy a SQL server pod:
$ kubectl apply -f s-mssql01.yaml -n vgs-vxflexos
7. Run the following command to check if the pod is deployed successfully:
$ kubectl get pods -n vgs-vxflexos
NAME READY STATUS RESTARTS AGE
s-mssql01-658c9444bc-vqq7n 1/1 running 1 89d
8. Create volume group snapshot YAML using the example shown in the Appendix.
$ kubectl apply -f vgs-mssql01.yaml -n vgs-vxflexos
10. Run the following command to check if the Snapshot is created successfully:
$ kubectl get vgs -n vgs-vxflexos
NAME VOLUMEGROUPNAME CREATIONTIME STATUS
r01-vgs-mssql01 92d Complete