[sheepdog-users] change default copies number

Hitoshi Mitake mitake.hitoshi at gmail.com
Thu Jun 12 07:59:05 CEST 2014


On Thu, Jun 12, 2014 at 5:38 AM, Maxim Terletskiy <terletskiy at emu.ru> wrote:
> If I have cluster formatted with "-c 2" can I create vdi with more copies
> than cluster default? If I have vdi with 2 copies in cluster formatted with
> "-c 2", can I do snapshot of this vdi and then clone this snapshot with
> option "-c 3"?

The later feature (clone with different redundancy) is implemented in
the master branch by Ruoyu:
https://github.com/sheepdog/sheepdog/commit/ed2cf9d0124c9bdce28855dcf013ccace6e82856

It will be available in stable branch after v0.9 release.

Thanks,
Hitoshi

>
> 02.06.2014 8:06, Liu Yuan пишет:
>
>> On Sun, Jun 01, 2014 at 08:20:58PM +0400, Maxim Terletskiy wrote:
>>>
>>> Hi!
>>>
>>> My cluster was formatted with copies = 2. I know that if I'm
>>> creating images with "dog" command, I can change copies number with
>>> "-c" option. How can I change copies number for "qemu-img convert"?
>>
>> For qemu with version 2.0 or plus, we support -o redundancy option similar
>> to
>> dog's '-c'
>>
>> # create a fully replicated vdi with x copies
>> -o redundancy=x (1 <= x <= SD_MAX_COPIES)
>>
>> # create a erasure coded vdi with x data strips and y parity strips
>> -o redundancy=x:y (x must be one of {2,4,8,16} and 1 <= y <
>> SD_EC_MAX_STRIP)
>>
>> Which support qemu and qemu-img binary.
>>
>> Thanks
>> Yuan
>
>
> --
> sheepdog-users mailing lists
> sheepdog-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog-users



More information about the sheepdog-users mailing list