[sheepdog-users] Testing snapshot-object-reclaim

Hitoshi Mitake mitake.hitoshi at gmail.com
Mon Apr 14 17:00:32 CEST 2014


At Mon, 14 Apr 2014 16:44:43 +0200,
Valerio Pachera wrote:
> 
> [1  <text/plain; UTF-8 (7bit)>]
> 2014-04-12 18:23 GMT+02:00 Hitoshi Mitake <mitake.hitoshi at gmail.com>:
> > Updated the branch, could you test it? I want you to run qemu and dog
> > on the same host for the latest branch.
> 
> Here's the test on a single node:
> 
> dog cluster format -c 2
> 
> dog node list
>   Id   Host:Port         V-Nodes       Zone
>    0   127.0.0.1:7000           128   16777343
> 
> qemu-img convert -f qcow2 test.qcow2 sheepdog:test
> 
> dog node list
>   Id   Host:Port         V-Nodes       Zone
>    0   127.0.0.1:7000           128   16777343
> 
> dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
>   test         0  5.0 GB  864 MB  0.0 MB 2014-04-14 16:28   7c2b25      2
> 
> dog node info
> Id      Size    Used    Avail   Use%
>  0      500 GB  864 MB  499 GB    0%
> Total   500 GB  864 MB  499 GB    0%
> Total virtual image size        5.0 GB
> 
> qemu-system-x86_64 -name test -enable-kvm -drive
> file=sheepdog:test,if=virtio -m 512 -smp 2 -k it -vga std -vnc :1
> -usbdevice tablet  -net nic,macaddr=52:54:00:21:22:2b,model=virtio
> -net tap,ifname=test -boot order=c -monitor
> unix:/tmp/test.sock,server,nowait -daemonize
> 
> dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
>   test         0  5.0 GB  868 MB  0.0 MB 2014-04-14 16:28   7c2b25      2
> 
> dog vdi snapshot test
> qemu-system-x86_64 -name test -enable-kvm -drive
> file=sheepdog:test,if=virtio -m 512 -smp 2 -k it -vga std -vnc :1
> -usbdevice tablet  -net nic,macaddr=52:54:00:21:22:2b,model=virtio
> -net tap,ifname=test -boot order=c -monitor
> unix:/tmp/test.sock,server,nowait -daemonize
> 
> dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
> s test         1  5.0 GB  868 MB  0.0 MB 2014-04-14 16:28   7c2b25      2
>   test         0  5.0 GB  4.5 GB  232 MB 2014-04-14 16:31   7c2b26      2
> 
> dog vdi snapshot test
> 
> dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
> s test         1  5.0 GB  868 MB  0.0 MB 2014-04-14 16:28   7c2b25      2
> s test         2  5.0 GB  4.5 GB  232 MB 2014-04-14 16:31   7c2b26      2
>   test         0  5.0 GB   20 MB  4.7 GB 2014-04-14 16:33   7c2b27      2
> 
> dog vdi snapshot test
> 
> dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
> s test         1  5.0 GB  868 MB  0.0 MB 2014-04-14 16:28   7c2b25      2
> s test         2  5.0 GB  4.5 GB  232 MB 2014-04-14 16:31   7c2b26      2
> s test         3  5.0 GB   20 MB  4.7 GB 2014-04-14 16:33   7c2b27      2
>   test         0  5.0 GB  4.4 GB  252 MB 2014-04-14 16:33   7c2b28      2
> 
> dog vdi snapshot test
> 
> dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
> s test         1  5.0 GB  868 MB  0.0 MB 2014-04-14 16:28   7c2b25      2
> s test         2  5.0 GB  4.5 GB  232 MB 2014-04-14 16:31   7c2b26      2
> s test         3  5.0 GB   20 MB  4.7 GB 2014-04-14 16:33   7c2b27      2
> s test         4  5.0 GB  4.4 GB  252 MB 2014-04-14 16:33   7c2b28      2
>   test         0  5.0 GB   20 MB  4.7 GB 2014-04-14 16:34   7c2b29      2
> 
> dog vdi snapshot test
> 
> dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
> s test         1  5.0 GB  868 MB  0.0 MB 2014-04-14 16:28   7c2b25      2
> s test         2  5.0 GB  4.5 GB  232 MB 2014-04-14 16:31   7c2b26      2
> s test         3  5.0 GB   20 MB  4.7 GB 2014-04-14 16:33   7c2b27      2
> s test         4  5.0 GB  4.4 GB  252 MB 2014-04-14 16:33   7c2b28      2
> s test         5  5.0 GB   20 MB  4.7 GB 2014-04-14 16:34   7c2b29      2
>   test         0  5.0 GB   24 MB  4.7 GB 2014-04-14 16:34   7c2b2a      2
> 
> dog vdi snapshot test
> 
> dog vdi list
>   Name        Id    Size    Used  Shared    Creation time   VDI id  Copies  Tag
> s test         1  5.0 GB  868 MB  0.0 MB 2014-04-14 16:28   7c2b25      2
> s test         2  5.0 GB  4.5 GB  232 MB 2014-04-14 16:31   7c2b26      2
> s test         3  5.0 GB   20 MB  4.7 GB 2014-04-14 16:33   7c2b27      2
> s test         4  5.0 GB  4.4 GB  252 MB 2014-04-14 16:33   7c2b28      2
> s test         5  5.0 GB   20 MB  4.7 GB 2014-04-14 16:34   7c2b29      2
> s test         6  5.0 GB   24 MB  4.7 GB 2014-04-14 16:34   7c2b2a      2
>   test         0  5.0 GB  0.0 MB  4.7 GB 2014-04-14 16:34   7c2b2b      2
> 
> dog node info
> Id      Size    Used    Avail   Use%
>  0      500 GB  9.9 GB  490 GB    1%
> Total   500 GB  9.9 GB  490 GB    1%
> Total virtual image size        5.0 GB
> 
> ### DELETE SNAPSHOTS ###
> 
> 
> 
> dog vdi delete -s 1 test
> 
> dog node info
> Id      Size    Used    Avail   Use%
>  0      500 GB  9.2 GB  490 GB    1%
> Total   500 GB  9.2 GB  490 GB    1%
> Total virtual image size        5.0 GB
> 
> dog vdi delete -s 2 test
> 
> dog node info
> Id      Size    Used    Avail   Use%
>  0      500 GB  9.2 GB  491 GB    1%
> Total   500 GB  9.2 GB  491 GB    1%
> Total virtual image size        5.0 GB
> 
> dog vdi delete -s 3 test
> dog node info
> Id      Size    Used    Avail   Use%
>  0      500 GB  4.9 GB  495 GB    0%
> Total   500 GB  4.9 GB  495 GB    0%
> Total virtual image size        5.0 GB
> 
> dog vdi delete -s 4 test
> dog node info
> Id      Size    Used    Avail   Use%
>  0      500 GB  4.8 GB  495 GB    0%
> Total   500 GB  4.8 GB  495 GB    0%
> Total virtual image size        5.0 GB
> 
> dog vdi delete -s 5 test
> dog node info
> Id      Size    Used    Avail   Use%
>  0      500 GB  4.8 GB  495 GB    0%
> Total   500 GB  4.8 GB  495 GB    0%
> Total virtual image size        5.0 GB
> 
> dog vdi delete -s 6 test
> dog node info
> Id      Size    Used    Avail   Use%
>  0      500 GB  4.8 GB  495 GB    0%
> Total   500 GB  4.8 GB  495 GB    0%
> Total virtual image size        5.0 GB
> 
> dog vdi delete test
> dog node info
> Id      Size    Used    Avail   Use%
>  0      500 GB  533 MB  499 GB    0%
> Total   500 GB  533 MB  499 GB    0%
> Total virtual image size        0.0 MB

Hmm... Can I see other info like an output of tree and a result of "od
-x <ledger object>"?

Thanks,
Hitoshi



More information about the sheepdog-users mailing list