[sheepdog] [PATCH v3] change the redundancy level of existing cluster and vdi
Liu Yuan
namei.unix at gmail.com
Tue May 27 05:35:31 CEST 2014
On Tue, May 27, 2014 at 11:05:27AM +0800, Ruoyu wrote:
> This is a new feature to allow user to change the redundancy level of
> formatted cluster and created vdi. Only simple replica is supported now.
>
> 1. To set the replica number of formatted cluster:
>
> dog alter cluster-copy -c <copies>
>
> 2. To set the replica number of standalone vdi who has neither
> parent nor children:
>
> dog alter vdi-copy -c <copies> <vdiname>
>
> 3. To set the replica number of shared vdi who has parent or children,
> to avoid shared data inconsistency, please run dog vdi clone command
> with -n (--no-share) option first:
>
> dog vdi clone -s <snapshot> -n <src vdi> <dst vdi>
>
> It will deep copy a brand new standalone vdi base on source vdi
> so that we can run dog alter vdi-copy to change destinate vdi's
> replica number later.
>
Applied thanks. But I think we need one more patch to stop preallocation for
--no-share. We only need to copy parents data into its own objects.
This is because normally users create a large vdi but expect thin-provsion for
it. If --no-share force a preallocation, it would discourange people to use it
in real production.
Thanks
Yuan
More information about the sheepdog
mailing list