[sheepdog-users] How much spaces is used by snapshots?

Liu Yuan namei.unix at gmail.com
Tue Aug 13 09:55:28 CEST 2013


On Tue, Aug 13, 2013 at 08:35:15AM +0200, Valerio Pachera wrote:
> 2013/7/9 Liu Yuan <namei.unix at gmail.com>:
> > Current algorithm only release space after all the snapshots and its clones are
> > deleted. Kazutaka has a patch set in progress to release objects once they are
> > not referenced by any snpashots & clone & working vdi. After this patch set get
> > merged, deletion of snapshots will make effect of reduction of used space.
> 
> I tried now to delete 2 big snapshot and 1 small but I can't see space
> getting freed.
> 
> # collie vdi list
> ...
> s backup_data    13  1.0 TB  103 GB  352 GB 2013-07-20 08:15   c8d134
>    2  lug21_081501
> s backup_data    14  1.0 TB   60 MB  455 GB 2013-07-21 08:15   c8d135
>    2  lug22_081501
> s backup_data    15  1.0 TB  104 GB  357 GB 2013-07-22 08:15   c8d136
>    2  lug23_081501
> ...
> 
> # collie node info
> Id      Size    Used    Avail   Use%
>  0      2.3 TB  1.7 TB  554 GB   76%
>  1      2.4 TB  1.7 TB  766 GB   69%
>  2      2.7 TB  2.1 TB  689 GB   75%
>  3      2.3 TB  1.7 TB  544 GB   76%
> Total   9.7 TB  7.2 TB  2.5 TB   74%
> Total virtual image size        1.4 TB
> 
> # collie vdi delete -s 13 backup_data
> # collie vdi delete -s 14 backup_data
> # collie vdi delete -s 15 backup_data
> 
> # collie node info
> Id      Size    Used    Avail   Use%
>  0      2.3 TB  1.7 TB  554 GB   76%
>  1      2.4 TB  1.7 TB  766 GB   69%
>  2      2.7 TB  2.1 TB  689 GB   75%
>  3      2.3 TB  1.7 TB  544 GB   76%
> Total   9.7 TB  7.2 TB  2.5 TB   74%
> Total virtual image size        1.4 TB
> 
> 0.7.0_rc0_12_g2b526ef

Kazutaka's object reclaim patch set isn't merged yet. Planned to get in after
v0.7.0

Thanks
Yuan



More information about the sheepdog-users mailing list