Go to file
Alexandre Derumier ab6ecffe53 drive-mirror : wait that busy eq false before block-job-complete
When the drive-mirror is at 100%, and write occurs, the busy flag can change from false->true

- 100% no new writes

transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false

- 100% new writes

transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: true
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: true
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: true

- 100% no new writes

transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false
transferred: 1073741824 bytes remaining: 0 bytes total: 1073741824 bytes progression: 100.00 % busy: false

So, we need to check that busy is false before doing the block-job-complete.

Also, we force the vm to pause, if it's busy for more than 120s when drive-mirror is at 100%

Signed-off-by: Alexandre Derumier <aderumier@odiso.com>
2014-11-07 15:28:13 +01:00
PVE drive-mirror : wait that busy eq false before block-job-complete 2014-11-07 15:28:13 +01:00
.gitignore use better name for build dir 2011-08-24 11:08:33 +02:00
changelog.Debian bump version to 3.3-1 2014-10-13 10:36:23 +02:00
control.in auto generate uuid on VM create 2014-06-26 11:51:52 +02:00
copyright change license to AGPL3 2011-08-24 10:07:52 +02:00
gen-vmconf-pod.pl use warnings instead of global -w flag 2013-10-01 13:14:49 +02:00
Makefile bump version to 3.3-1 2014-10-13 10:36:23 +02:00
pcitest.pl use warnings instead of global -w flag 2013-10-01 13:14:49 +02:00
postinst Fix startup order 2011-08-30 15:11:54 +02:00
postrm imported from svn 'qemu-server/pve2' 2011-08-23 07:47:04 +02:00
pve-bridge add firewall option to qemu network interface 2014-05-08 08:35:37 +02:00
pve-bridgedown add pve-bridgedown script 2014-05-08 08:37:04 +02:00
pve-q35.cfg enable q35 machine support 2014-06-18 06:03:53 +02:00
pve-usb.cfg imported from svn 'qemu-server/pve2' 2011-08-23 07:47:04 +02:00
qemu.init.d removed startall/stopall commands 2012-04-20 09:30:42 +02:00
qm cleanup VNC websocket patch 2014-06-17 08:06:32 +02:00
qmextract use warnings instead of global -w flag 2013-10-01 13:14:49 +02:00
qmrestore use warnings instead of global -w flag 2013-10-01 13:14:49 +02:00
qmupdate use warnings instead of global -w flag 2013-10-01 13:14:49 +02:00
sparsecp.c use correct format to print time_t (%zd) 2012-02-13 11:22:03 +01:00
utils.c fix bug in vmtar 2012-10-25 10:01:24 +02:00
vmtar.c fix bug in vmtar 2012-10-25 10:01:24 +02:00