[sheepdog-users] Testing snapshot-object-reclaim
Hitoshi Mitake
mitake.hitoshi at gmail.com
Mon Mar 17 14:44:51 CET 2014
At Mon, 17 Mar 2014 13:58:03 +0100,
Valerio Pachera wrote:
>
> > Valerio, could you test the latest snapshot-object-reclaim branch of
> > sheepdog with stable or master QEMU (not my latest
> > snapshot-object-reclaim branch)?
>
>
> root at test004:/usr/src/sheepdog# git branch
> master
> * snapshot-object-reclaim
>
> root at test004:/usr/src/sheepdog# sheep -v
> Sheepdog daemon version 0.8.0_135_ged02881
>
> root at test004:/usr/src/qemu# git branch
> * master
>
> root at test004:/usr/src/qemu# qemu-system-x86_64 --version
> QEMU emulator version 1.7.90, Copyright (c) 2003-2008 Fabrice Bellard
>
> root at test006:~# 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-17 09:03 7c2b25 2:1
>
> root at test006:~# dog node info
> Id Size Used Avail Use%
> 0 233 GB 1.2 GB 232 GB 0%
> 1 452 GB 1.2 GB 451 GB 0%
> 2 500 GB 1.2 GB 499 GB 0%
> Total 1.2 TB 3.5 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-17 09:03 7c2b25 2:1
> s test 2 10 GB 5.9 GB 304 MB 2014-03-17 13:15 7c2b26 2:1
> s test 3 10 GB 4.0 MB 6.2 GB 2014-03-17 13:21 7c2b27 2:1
> s test 4 10 GB 5.9 GB 316 MB 2014-03-17 13:21 7c2b28 2:1
> s test 5 10 GB 0.0 MB 6.2 GB 2014-03-17 13:44 7c2b29 2:1
> test 0 10 GB 80 MB 6.1 GB 2014-03-17 13:44 7c2b2a 2:1
>
> root at test006:~# 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
>
> root at test006:~# time for n in $(seq 1 5); do dog vdi delete -s $n test; done
>
> real 5m2.849s
> user 0m0.000s
> sys0m0.004s
>
> 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-17 13:44 7c2b2a 2:1
>
> root at test006:~# dog node info
> Id Size Used Avail Use%
> 0 233 GB 3.2 GB 230 GB 1%
> 1 452 GB 3.2 GB 449 GB 0%
> 2 500 GB 3.2 GB 497 GB 0%
> Total 1.2 TB 9.5 GB 1.1 TB 0%
> 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 271 MB 232 GB 0%
> 1 452 GB 271 MB 452 GB 0%
> 2 500 GB 271 MB 499 GB 0%
> Total 1.2 TB 812 MB 1.2 TB 0%
Hmm, it is odd. Can I see an output of tree command of the sheep dir?
I think all objects which remain would be ledger.
Thanks,
Hitoshi
More information about the sheepdog-users
mailing list