ceph / ceph-csi

CSI driver for Ceph
Apache License 2.0
1.29k stars 549 forks source link

Curious about pvc clone #4939

Closed qkfrksvl closed 3 weeks ago

qkfrksvl commented 3 weeks ago

If you look at this document, snaphost and clone are used twice. It seems like replication is completed just once, so why is it doing it twice?

https://github.com/ceph/ceph-csi/blob/devel/docs/snap-clone.md#clone-rbd-pvc

Rakshith-R commented 3 weeks ago

If you look at this document, snaphost and clone are used twice. It seems like replication is completed just once, so why is it doing it twice?

https://github.com/ceph/ceph-csi/blob/devel/docs/snap-clone.md#clone-rbd-pvc

Flatten operation is affected by IO and there are limits to number of snapshots and parent->child->grand-child rbd image chain.

The intermediate temp image exists to be flattened in case the image chain(clone depth) grows too long.