mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-12-23 21:40:20 +00:00
doc: Add step to verify if PVC is in Bound State
Verify if PVC is in Bound state before it's snapshot is created. Signed-off-by: Yug <yuggupta27@gmail.com>
This commit is contained in:
parent
d9c8b07b84
commit
c73fa55b97
@ -35,9 +35,19 @@ kubectl create -f ../examples/cephfs/snapshotclass.yaml
|
||||
|
||||
The snapshot is created on/for an existing PVC. You should
|
||||
have a PVC in bound state before creating snapshot from it.
|
||||
please refer pvc creation [doc](https://github.com/ceph/ceph-csi/blob/master/docs/deploy-cephfs.md)
|
||||
Please refer pvc creation [doc](https://github.com/ceph/ceph-csi/blob/master/docs/deploy-cephfs.md)
|
||||
for more information on how to create a PVC.
|
||||
|
||||
- Verify if PVC is in Bound state
|
||||
|
||||
```console
|
||||
$ kubectl get pvc
|
||||
NAME STATUS VOLUME CAPACITY ACCESS MODES STORAGECLASS AGE
|
||||
csi-cephfs-pvc Bound pvc-1ea51547-a88b-4ab0-8b4a-812caeaf025d 1Gi RWX csi-cephfs-sc 20h
|
||||
```
|
||||
|
||||
- Create snapshot of the bound PVC
|
||||
|
||||
```console
|
||||
$ kubectl create -f ../examples/cephfs/snapshot.yaml
|
||||
volumesnapshot.snapshot.storage.k8s.io/cephfs-pvc-snapshot created
|
||||
|
Loading…
Reference in New Issue
Block a user