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

Valerio Pachera sirio81 at gmail.com
Thu May 30 15:36:31 CEST 2013


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?


More information about the sheepdog-users mailing list