From 5fb14b549eb09137ca35c25c327963027577aefa 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 (cherry picked from commit 945da179e2e4a26a3fc78435b733d815a0fc7a43) --- .../Ceph-CSI/ceph-csi-snapshot.md | 11 ++++++++++- .../Ceph-CSI/ceph-csi-volume-clone.md | 12 ++++++++++-- 2 files changed, 20 insertions(+), 3 deletions(-) diff --git a/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md b/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md index f214eaaec..1a8d888d1 100644 --- a/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md +++ b/Documentation/Storage-Configuration/Ceph-CSI/ceph-csi-snapshot.md @@ -66,7 +66,16 @@ The snapshot will be ready to restore to a new PVC when the `READYTOUSE` field o In [pvc-restore](https://github.com/rook/rook/tree/master/deploy/examples/csi/rbd/pvc-restore.yaml), `dataSource` should be the name of the `VolumeSnapshot` previously -created. The `dataSource` kind should be the `VolumeSnapshot`. +created. The `dataSource` kind should be the `VolumeSnapshot`. The `storageClassName` +can be any RBD storageclass. + +Please Note: + * `provisioner` must be the same for both the Parent PVC and the restored PVC. + * The non-encrypted PVC cannot be restored to an encrypted one and vice-versa. + * encrypted -> encrypted (possible) + * non-encrypted -> non-encrypted (possible) + * encrypted -> non-encrypted (not possible) + * non-encrypted -> encrypted (not possible) Create a new PVC from the snapshot 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 4434f2315..3abe0aa7c 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,16 @@ 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 RBD storageclass (not necessarily same as Parent PVC) + +Please note: + * `provisioner` must be the same for both the Parent PVC and the Clone PVC. + * The non-encrypted PVC cannot be cloned to an encrypted one and vice-versa. + * encrypted -> encrypted (possible) + * non-encrypted -> non-encrypted (possible) + * encrypted -> non-encrypted (not possible) + * non-encrypted -> encrypted (not possible) Create a new PVC Clone from the PVC