[sheepdog] [PATCH v2] new feature of changing the replica number of existing cluster/vdi

Ruoyu liangry at ucweb.com
Wed May 21 03:25:52 CEST 2014


On 2014年05月20日 15:13, Liu Yuan wrote:
> On Mon, May 19, 2014 at 03:34:59PM +0800, Ruoyu wrote:
>> 1. To set the replica number of cluster:
>>      dog cluster copies <num>
>>
>> 2. To set the replica number of standalone vdi who has neither
>>     parent nor children:
>>      dog vdi copies <vdiname> <num>
> Does 'standalone vdi' include cloned vdi?
No.
>
> I'd suggest having a new sub command for this:
>
>    dog alter cluster-copy
>    dog alter vdi-copy
>
> Then it would be more extensible to add more options like
>    dog alter node-weight (which might be useful if some node is near out of space)
OK.
>
>> 3. To set the replica number of shared vdi who has parent or children,
>>     please run dog vdi clone command with -R (--root) option first:
>>      dog vdi clone -s <snapshot> -R <src vdi> <dst vdi>
>>     It will deep copy a brand new standalone vdi base on source vdi
>>     so that we can run dog vdi copies to change destinate vdi's
>>     replica number later.
> What is whole procedure to alter'a vdi copy policy that has either parent or
> children?
Clone a standalone vdi first, and then alter or change replica number of 
the new vdi.
>
> Thanks
> Yuan





More information about the sheepdog mailing list