[sheepdog-users] Stop qemu till cache has been flushed

Liu Yuan namei.unix at gmail.com
Mon Jun 3 07:11:57 CEST 2013

On 05/30/2013 09:36 PM, Valerio Pachera wrote:
> I tried to do a wrong thing:
> from host test004
>   qemu-img convert -f qcow2 squeeze.qcow2 sheepdog:squeeze
> At this moment,  vdi data is only on test004 because of the cache.
> from host test005
>  qemu -name squeeze -enable-kvm -drive
> file=sheepdog:squeeze,cache=writeback -m 512 -smp 2 ...
> From what I saw, the guest starts while the cache is getting flushed.
> This lead to I/O errors.
> Even tough it's not the right procedure, is it possible to make
> sheepdog 'pause' (kill -STOP) the qemu process till vdi cache is fully
> flushed?

Currently, no. Sheepdog doesn't have a infrastructure to be aware if the
vdi is actively used or not.


More information about the sheepdog-users mailing list