To demonstrate RBD cloning, we will intentionally create an RBD image (specifying the layering feature) then create and protect its snapshot, and finally, create COW clones out of it:
- Create an RBD image with layering feature specified and check it's details:
# rbd create rbd2 --size 10240 --image-feature layering --name client.rbd # rbd info --image rbd2 --name client.rbd
- Create a snapshot of this RBD image:
# rbd snap create rbd/rbd2@snapshot_for_cloning --name client.rbd
- To create a COW clone, protect the snapshot. This is an important step, we should protect the snapshot because if the snapshot gets deleted, all ...