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

Liu Yuan namei.unix at gmail.com
Tue May 20 09:13:37 CEST 2014


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?

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)

> 
> 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?

Thanks
Yuan



More information about the sheepdog mailing list