[sheepdog-users] How much spaces is used by snapshots?
Ing. Luca Lazzeroni - Trend Servizi Srl
luca at gvnet.it
Wed Aug 14 12:48:45 CEST 2013
I forget another question; if I have a VDI with NO clones and NO snapshot, other VDIs with snapshot, I take a snapshot of first VDI (the one without snapshot) and after a while I delete the snapshot, is its allocated disk space released ?
I've tryed to follow the code inside sheep and plain_store to find the release function, but I didn't find it.
Thank you,
Il giorno 13/ago/2013, alle ore 09:55, Liu Yuan <namei.unix at gmail.com> ha scritto:
> 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
> --
> sheepdog-users mailing lists
> sheepdog-users at lists.wpkg.org
> http://lists.wpkg.org/mailman/listinfo/sheepdog-users
Ing. Luca Lazzeroni - Trend Servizi Srl
Responsabile R&D
http://www.trendservizi.it
More information about the sheepdog-users
mailing list