Skip to content

Commit a104d84

Browse files
committed
Update readme - add note for kvm snaps and details on deletion of snaps
1 parent 53fe28b commit a104d84

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,9 @@ make container
123123

124124

125125
## Volume Snapshots
126+
127+
**NOTE:** To create volume snapshots in KVM, make sure to set the `kvm.snapshot.enabled` global setting to true and restart the Management Server
128+
126129
For Volume snapshots to be created, the following configurations need to be applied:
127130

128131
```
@@ -167,6 +170,14 @@ spec:
167170
claimName: pvc-from-snapshot
168171
```
169172

173+
174+
To delete a volume snapshot
175+
One can simlpy delete the volume snapshot created in kubernetes using
176+
177+
```
178+
kubectl delete volumesnapshot snapshot-1 # here, snapshot-1 is the name of the snapshot created
179+
```
180+
170181
### What happens when you restore a volume from a snapshot
171182
* The CSI external-provisioner (a container in the cloudstack-csi-controller pod) sees the new PVC and notices it references a snapshot
172183
* The CSI driver's `CreateVolume` method is called with a `VolumeContentSource` that contains the snapshot ID

0 commit comments

Comments
 (0)