[sheepdog-users] Testing snapshot-object-reclaim

Hitoshi Mitake mitake.hitoshi at gmail.com
Fri Mar 14 03:42:41 CET 2014


Hi Valerio,

At Tue, 11 Mar 2014 11:16:00 +0100,
Valerio Pachera wrote:
> 
> Here we are with
> Sheepdog daemon version 0.8.0_121_g7a46f95
> 
> The usual steps and the attached log (78M uncompressed).

Thanks a lot for the log. BTW, was the log produced by the node 0? I
want to confirn this point.

> 
> 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-11 10:43   7c2b25
> 2:1
> 
> dog vdi snapshot test
> dog vdi snapshot test
> dog vdi snapshot test
> dog vdi snapshot test
> dog vdi snapshot test
> 
> 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-11 10:43   7c2b25
> 2:1
> s test         2   10 GB  5.9 GB  312 MB 2014-03-11 10:50   7c2b26
> 2:1
> s test         3   10 GB  4.0 MB  6.2 GB 2014-03-11 10:54   7c2b27
> 2:1
> s test         4   10 GB  5.9 GB  312 MB 2014-03-11 10:54   7c2b28
> 2:1
> s test         5   10 GB   56 MB  6.2 GB 2014-03-11 10:58   7c2b29
> 2:1
>   test         0   10 GB  0.0 MB  6.2 GB 2014-03-11 10:58   7c2b2a
> 2:1
> 
> dog node info
> Id      Size    Used    Avail   Use%
>  0      233 GB  15 GB   217 GB    6%
>  1      452 GB  15 GB   437 GB    3%
>  2      500 GB  15 GB   485 GB    3%
> Total   1.2 TB  46 GB   1.1 TB    3%
> Total virtual image size        10 GB
> 
> --> ( a small mistake in the loop, I wrote -s 1 instead of -s $n)
> 
> for n in $(seq 1 5); do dog vdi delete -s 1 test; done
> Cannot get VDI info for test 1 : Failed to find requested tag
> Failed to open VDI test
> Cannot get VDI info for test 1 : Failed to find requested tag
> Failed to open VDI test
> Cannot get VDI info for test 1 : Failed to find requested tag
> Failed to open VDI test
> Cannot get VDI info for test 1 : Failed to find requested tag
> Failed to open VDI test
> 
> for n in $(seq 2 5); do dog vdi delete -s $n test; done
> 
> 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-11 10:58   7c2b2a
> 2:1
> 
> dog node info
> Id      Size    Used    Avail   Use%
>  0      233 GB  5.2 GB  228 GB    2%
>  1      452 GB  5.2 GB  447 GB    1%
>  2      500 GB  5.2 GB  495 GB    1%
> Total   1.2 TB  16 GB   1.1 TB    1%
> Total virtual image size        10 GB
> 
> dog vdi delete test
> 
> dog node info
> Id      Size    Used    Avail   Use%
>  0      233 GB  2.3 GB  230 GB    0%
>  1      452 GB  2.3 GB  450 GB    0%
>  2      500 GB  2.3 GB  497 GB    0%
> Total   1.2 TB  6.9 GB  1.2 TB    0%
> Total virtual image size        0.0 MB

Can I see an output of "tree <sheepdog dir>" direct after this status?
I want to know what kind of object is consuming disk space.

Thanks,
Hitoshi



More information about the sheepdog-users mailing list