Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added copy-on-write support for all RBD cloning
Up till now we only had copy-on-write for cloning from snapshot. This change optionally allows clone from volume to use copy-on-write instead of a doing a full copy each time. This should increase speed and reduce nearterm storage consumtion but could introduce some new risks e.g. excessively long clone chains and flatten storms. To avoid this, a new config option has been providedons are provided - rbd_max_clone_depth - which allows the user to limit the depth of a chain of clones i.e. a->b->c->d as opposed to a->b ->c ->d This will avoid flatten storms by breaking chains as they are formed and at an early, predefined stage. A second option - rbd_clone_from_volume_force_copy - allows the user to use a full copy as before i.e. disable COW for volume clones. Implements: blueprint use-copy-on-write-for-all-volume-cloning Fixes: bug #1209199 Change-Id: Ia4a8a10c797cda2cf1ef3a2e9bd49f8c084ec977
- Loading branch information
Showing
4 changed files
with
311 additions
and
49 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.