[Openstack-ansible][cinder-volume] deletion of snapshot after creating a volume from it..
Dear All, Is there a way we can delete a volume who has a snapshot available? I have created a volume from snapshot and now we have a full chain of snapshots and volumes that we can't delete. But I need only the last volume to be available. If not then what is the best use case for snapshot? or Should I assume that if I create a snapshot and then create a volume from that snapshot then I need to keep the old volume and snapshot always. Regards, Danish
Hey, There is option rbd_flatten_volume_from_snapshot which ensures that a new volume created from the snapshot will not be related to it anymore. But keep in mind, that when you flatten volume, it will start to occupy full disk space on ceph and not just a diff between the snapshot. Also flatten operation takes significantly more time when creating such volume. Another related option is rbd_max_clone_depth which you can use to set maximum amount of cow clones before flatten operation will be issued. Both of these options you can define inside of your backend definition. On Fri, 28 Feb 2025, 07:02 Danish Khan, <danish52.jmi@gmail.com> wrote:
Dear All,
Is there a way we can delete a volume who has a snapshot available?
I have created a volume from snapshot and now we have a full chain of snapshots and volumes that we can't delete. But I need only the last volume to be available.
If not then what is the best use case for snapshot? or Should I assume that if I create a snapshot and then create a volume from that snapshot then I need to keep the old volume and snapshot always.
Regards, Danish
participants (2)
-
Danish Khan
-
Dmitriy Rabotyagov