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

Liu Yuan namei.unix at gmail.com
Wed May 21 05:23:04 CEST 2014


On Wed, May 21, 2014 at 09:25:52AM +0800, Ruoyu wrote:
> 
> 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.

I don't understand it. Suppose we have a snapshot named base and new_vdi is the
active vdi.

base->new_vdi
 |
 --> clone

So you mean we firstly clone the base and then we can alther the copy policy of
new_vdi?

Thanks
Yuan



More information about the sheepdog mailing list