Feature #45290
openmgr/volumes: Add command to clone a volume from another volume
0%
Description
To provide support for `clone` or `smart cloning` functionality in kubernetes/OCP, we need an interface or functionality which allows
to create a subvolume from an existing subvolume.
Afaict, its not possible to create a volume from an existing volume by a single command/interface, rather the available functionality is the creation of a volume from exising snapshot and not directly from the volume. The workaround/hack would be to achieve this functionality here is creating an intermedia snapshot and then create a volume from the intermediate snapshot , then, upon completion of the new volume creation, delete the intermediate snap. However the smart cloning functionality expects an operation that allows a new volume creation directly from an existing volume.
https://github.com/ceph/ceph-csi/issues/701
Above CSI issue talks about this requirement to support CLONING in ceph CSI project in proper manner.