[sheepdog-users] problem converting vdi

Valerio Pachera sirio81 at gmail.com
Wed Jun 26 14:35:25 CEST 2013


2013/6/26 Liu Yuan <namei.unix at gmail.com>:
> If we can restart guest without problem, then we can do it too after conversion,
> theoretically. Can you check cache is release(removed) after guest shutdown?

It seems it does (clean shutdown).

<guest not running>
# du -sh /mnt/sheep/meta/cache/
0       /mnt/sheep/meta/cache/

# qemu-system-x86_64 -enable-kvm -drive
file=sheepdog:squeeze,cache=writeback,if=virtio -drive
file=sheepdog:big,cache=writeback,if=virtio ...
# du -sh /mnt/sheep/meta/cache/
721M    /mnt/sheep/meta/cache/

<after guest clean shutdown>
# du -sh /mnt/sheep/meta/cache/
0       /mnt/sheep/meta/cache/

<simulate crash>
# qemu-system-x86_64 -enable-kvm -drive
file=sheepdog:squeeze,cache=writeback,if=virtio -drive
file=sheepdog:big,cache=writeback,if=virtio ...
# pkill -9 qemu
# du -sh /mnt/sheep/meta/cache/
713M    /mnt/sheep/meta/cache/

<restart guest>
# qemu-system-x86_64 -enable-kvm -drive
file=sheepdog:squeeze,cache=writeback,if=virtio -drive
file=sheepdog:big,cache=writeback,if=virtio ...
# du -sh /mnt/sheep/meta/cache/
765M    /mnt/sheep/meta/cache/

<after clean shutdown>
# du -sh /mnt/sheep/meta/cache/
0       /mnt/sheep/meta/cache/



More information about the sheepdog-users mailing list