[sheepdog-users] Testing snapshot-object-reclaim

Hitoshi Mitake mitake.hitoshi at gmail.com
Thu Mar 20 05:51:15 CET 2014


At Wed, 19 Mar 2014 16:30:17 +0100,
Valerio Pachera wrote:
> 
> 2014-03-19 12:08 GMT+01:00 Hitoshi Mitake <mitake.hitoshi at gmail.com>:
> > Could you test the latest snapshot-object-reclaim branch? I believe
> > the branch can reduce the amount of garbage even if it cannot solve
> > the all problems.
> 
> Sheepdog daemon version 0.8.0_135_gbd7c3ea
> 
> root at test004:~# dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
> 
> root at test004:~# dog node info
> Id      Size    Used    Avail   Use%
>  0      233 GB  0.0 MB  233 GB    0%
>  1      452 GB  0.0 MB  452 GB    0%
>  2      500 GB  0.0 MB  500 GB    0%
> Total   1.2 TB  0.0 MB  1.2 TB    0%
> Total virtual image size        0.0 MB
> 
> root at test004:~# qemu-img convert -f qcow2
> /mnt/big/vdi/wheezy_template_20130218.qcow2 sheepdog:test
> 
> root at test004:~# dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
>   test         0   10 GB  2.3 GB  0.0 MB 2014-03-19 15:08   7c2b25      2
> 
> root at test004:~# dog node info
> Id      Size    Used    Avail   Use%
>  0      233 GB  1.1 GB  232 GB    0%
>  1      452 GB  1.9 GB  451 GB    0%
>  2      500 GB  1.7 GB  498 GB    0%
> Total   1.2 TB  4.7 GB  1.2 TB    0%
> Total virtual image size        10 GB
> 
> 
> root at test006:~# dog vdi snapshot test
> root at test006:~# dog vdi snapshot test
> root at test006:~# dog vdi snapshot test
> root at test006:~# dog vdi snapshot test
> root at test006:~# dog vdi snapshot test
> 
> root at test006:~# dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
> s test         1   10 GB  2.3 GB  0.0 MB 2014-03-19 15:08   7c2b25      2
> s test         2   10 GB  5.9 GB  312 MB 2014-03-19 15:11   7c2b26      2
> s test         3   10 GB  0.0 MB  6.2 GB 2014-03-19 15:16   7c2b27      2
> s test         4   10 GB  5.9 GB  312 MB 2014-03-19 15:16   7c2b28      2
> s test         5   10 GB  0.0 MB  6.2 GB 2014-03-19 15:24   7c2b29      2
>   test         0   10 GB   80 MB  6.1 GB 2014-03-19 15:24   7c2b2a      2
> 
> root at test006:~# dog node info
> Id      Size    Used    Avail   Use%
>  0      233 GB  6.5 GB  226 GB    2%
>  1      452 GB  11 GB   441 GB    2%
>  2      500 GB  11 GB   489 GB    2%
> Total   1.2 TB  29 GB   1.1 TB    2%
> Total virtual image size        10 GB
> 
> root at test006:~# time for n in $(seq 1 5); do dog vdi delete -s $n test; done
> 
> real    5m58.637s
> user    0m0.000s
> sys     0m0.000s
> 
> root at test006:~# dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
>   test         0   10 GB   80 MB  6.1 GB 2014-03-19 15:24   7c2b2a      2
> 
> root at test006:~# node node info
> -bash: node: command not found
> 
> root at test006:~# dog node info
> Id      Size    Used    Avail   Use%
>  0      233 GB  2.9 GB  230 GB    1%
>  1      452 GB  5.2 GB  447 GB    1%
>  2      500 GB  5.0 GB  495 GB    0%
> Total   1.2 TB  13 GB   1.1 TB    1%
> Total virtual image size        10 GB
> 
> root at test006:~# dog vdi delete test
> 
> root at test006:~# dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
> 
> root at test006:~# dog node info
> Id      Size    Used    Avail   Use%
>  0      233 GB  556 MB  232 GB    0%
>  1      452 GB  909 MB  452 GB    0%
>  2      500 GB  721 MB  499 GB    0%
> Total   1.2 TB  2.1 GB  1.2 TB    0%
> Total virtual image size        0.0 MB

Hmm... Can I see:

1. logs
2. du -h <sheep dir>
3. tree <sheep dir>
4. for f in `find <sheep dir> -name "08*"`; do echo "content of" $f; od -x $f; done

of all sheep processes?

Thanks,
Hitoshi



More information about the sheepdog-users mailing list