From 3c188784c0e12bf5105ee42481308e6d1b9416ac Mon Sep 17 00:00:00 2001 From: yati1998 Date: Mon, 13 May 2024 10:01:07 +0530 Subject: [PATCH] docs: update documentation for volume clone after cross-storageclass clone/restore, now we can clone across different storageclass. this commit updates the documentation indicating the same. Signed-off-by: yati1998 --- .../Ceph-CSI/ceph-csi-volume-clone.md | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-volume-clone.md b/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-volume-clone.md index 4434f23158270..9b35649703c3f 100644 --- a/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-volume-clone.md +++ b/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-volume-clone.md @@ -17,8 +17,12 @@ for more info. In [pvc-clone](https://github.com/rook/rook/tree/master/deploy/examples/csi/rbd/pvc-clone.yaml), `dataSource` should be the name of the `PVC` which is already created by RBD -CSI driver. The `dataSource` kind should be the `PersistentVolumeClaim` and also storageclass -should be same as the source `PVC`. +CSI driver. The `dataSource` kind should be the `PersistentVolumeClaim`. +The `storageClassName` can be any storageclass (not necessarily same as Parent PVC) with the +following conditions: + +* `provisinor` should be same for both the Parent PVC and the Clone PVC. +* The non-encrypted PVC cannot be cloned to an encrypted one and vise-versa. Create a new PVC Clone from the PVC @@ -55,8 +59,11 @@ kubectl delete -f deploy/examples/csi/rbd/pvc-clone.yaml In [pvc-clone](https://github.com/rook/rook/tree/master/deploy/examples/csi/cephfs/pvc-clone.yaml), `dataSource` should be the name of the `PVC` which is already created by CephFS -CSI driver. The `dataSource` kind should be the `PersistentVolumeClaim` and also storageclass -should be same as the source `PVC`. +CSI driver. The `dataSource` kind should be the `PersistentVolumeClaim`. +The `storageClassName` can be any storageclass (not necessarily same as Parent PVC) with the +following conditions: + +* `provisinor` should be same for both the Parent PVC and the Clone PVC. Create a new PVC Clone from the PVC