[sheepdog-users] Testing snapshot-object-reclaim
Hitoshi Mitake
mitake.hitoshi at gmail.com
Mon Mar 24 12:42:56 CET 2014
At Mon, 24 Mar 2014 10:44:01 +0100,
Valerio Pachera wrote:
>
> Here are logs and info
>
> 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-24 09:41 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-24 09:56 7c2b25 2
> s test 2 10 GB 5.9 GB 324 MB 2014-03-24 09:59 7c2b26 2
> s test 3 10 GB 292 MB 5.9 GB 2014-03-24 10:01 7c2b27 2
> s test 4 10 GB 5.9 GB 312 MB 2014-03-24 10:01 7c2b28 2
> s test 5 10 GB 0.0 MB 6.2 GB 2014-03-24 10:08 7c2b29 2
> test 0 10 GB 76 MB 6.2 GB 2014-03-24 10:08 7c2b2a 2
Thanks. BTW, it seems that you always create snapshot with Used=0.0 MB
during your test (the snapshot with Id=5 in the above list).
If you have time, could you run your test without such a snapshot? In
other word, could you let all snapshots have their own object?
Of course, the gc must handle such a snapshot. But I want to know the
problem is related to these snapshots.
Thanks,
Hitoshi
>
> root at test006:~# dog node info
> Id Size Used Avail Use%
> 0 233 GB 6.7 GB 226 GB 2%
> 1 452 GB 12 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 2m8.125s
> user 0m0.004s
> sys 0m0.000s
>
> root at test006:~# dog vdi list
> Name Id Size Used Shared Creation time VDI id Copies Tag
> test 0 10 GB 76 MB 6.2 GB 2014-03-24 10:08 7c2b2a 2
>
> root at test006:~# dog node info
> Id Size Used Avail Use%
> 0 233 GB 2.8 GB 230 GB 1%
> 1 452 GB 5.0 GB 447 GB 1%
> 2 500 GB 4.8 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 node info
> Id Size Used Avail Use%
> 0 233 GB 212 MB 232 GB 0%
> 1 452 GB 318 MB 452 GB 0%
> 2 500 GB 260 MB 499 GB 0%
> Total 1.2 TB 791 MB 1.2 TB 0%
> Total virtual image size 0.0 MB
More information about the sheepdog-users
mailing list