[sheepdog-users] Testing snapshot-object-reclaim

Hitoshi Mitake mitake.hitoshi at gmail.com
Tue Apr 22 09:48:09 CEST 2014


On Tue, Apr 22, 2014 at 4:21 PM, Valerio Pachera <sirio81 at gmail.com> wrote:
> Sheepdog daemon version 0.8.0_153_g5a5b106
> sheep -n /var/sheep /mnt/sheep/dsk01 -c local -i host=192.168.10.6
> port=3333 -l level=debug

Hmm... Could you test the case of 3 node on a single box? I want to
check a result under the same condition.

Thanks,
Hitoshi

>
> dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
>   test         0  5.0 GB  864 MB  0.0 MB 2014-04-22 08:54   7c2b25      2
>
> dog node info
> Id      Size    Used    Avail   Use%
>  0      500 GB  864 MB  499 GB    0%
> Total   500 GB  864 MB  499 GB    0%
> Total virtual image size        5.0 GB
>
> dog vdi snapshot test
>
> dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
> s test         1  5.0 GB  864 MB  0.0 MB 2014-04-22 08:54   7c2b25      2
>   test         0  5.0 GB  0.0 MB  864 MB 2014-04-22 08:55   7c2b26      2
>
> <start the guest and write big file>
>
> dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
> s test         1  5.0 GB  864 MB  0.0 MB 2014-04-22 08:54   7c2b25      2
> s test         2  5.0 GB  4.5 GB  228 MB 2014-04-22 08:55   7c2b26      2
> s test         3  5.0 GB   20 MB  4.7 GB 2014-04-22 08:59   7c2b27      2
> s test         4  5.0 GB  4.5 GB  236 MB 2014-04-22 09:00   7c2b28      2
> s test         5  5.0 GB   20 MB  4.7 GB 2014-04-22 09:06   7c2b29      2
> s test         6  5.0 GB   32 MB  4.7 GB 2014-04-22 09:07   7c2b2a      2
>   test         0  5.0 GB  0.0 MB  4.7 GB 2014-04-22 09:07   7c2b2b      2
>
> dog node info
> Id      Size    Used    Avail   Use%
>  0      500 GB  9.9 GB  490 GB    1%
> Total   500 GB  9.9 GB  490 GB    1%
> Total virtual image size        5.0 GB
>
>
> for n in $(seq 1 6); do
>> echo "Removing snapshot $n"
>> dog vdi delete -s $n test
>> dog node info
>> done
>
> Removing snapshot 1
> Id      Size    Used    Avail   Use%
>  0      500 GB  9.3 GB  490 GB    1%
> Total   500 GB  9.3 GB  490 GB    1%
> Total virtual image size        5.0 GB
>
> Removing snapshot 2
> Id      Size    Used    Avail   Use%
>  0      500 GB  9.2 GB  490 GB    1%
> Total   500 GB  9.2 GB  490 GB    1%
> Total virtual image size        5.0 GB
>
> Removing snapshot 3
> Id      Size    Used    Avail   Use%
>  0      500 GB  4.8 GB  495 GB    0%
> Total   500 GB  4.8 GB  495 GB    0%
> Total virtual image size        5.0 GB
>
> Removing snapshot 4
> Id      Size    Used    Avail   Use%
>  0      500 GB  4.8 GB  495 GB    0%
> Total   500 GB  4.8 GB  495 GB    0%
> Total virtual image size        5.0 GB
>
> Removing snapshot 5
> Id      Size    Used    Avail   Use%
>  0      500 GB  4.7 GB  495 GB    0%
> Total   500 GB  4.7 GB  495 GB    0%
> Total virtual image size        5.0 GB
>
> Removing snapshot 6
> Id      Size    Used    Avail   Use%
>  0      500 GB  4.7 GB  495 GB    0%
> Total   500 GB  4.7 GB  495 GB    0%
> Total virtual image size        5.0 GB
>
> dog vdi delete test
>
> dog node info
> Id      Size    Used    Avail   Use%
>  0      500 GB  316 MB  499 GB    0%
> Total   500 GB  316 MB  499 GB    0%
> Total virtual image size        0.0 MB



More information about the sheepdog-users mailing list