Red Hat Bugzilla – Bug 1447551
qemu hang when do block_resize guest disk during crystal running
Last modified: 2017-08-02 00:38:29 EDT
Description of problem: Version-Release number of selected component (if applicable): qemu-kvm-rhev-10:2.9.0-2.el7 kernel-3.10.0-661.el7.x86_64 virtio-win-1.9.0-3.el7.noarch&virtio-win-prewhql-136 seabios-1.10.2-2.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.boot guest with virtio-blk-pci device: /usr/libexec/qemu-kvm \ -M pc \ -cpu host \ -enable-kvm \ -m 2G \ -smp 2 \ -nodefconfig \ -rtc base=localtime,driftfix=slew \ -drive file=virtio-win-prewhql-136.iso,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw \ -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 \ -object iothread,id=thread0 \ -drive file=win8-32-iso.raw,if=none,serial=virtioblk1,format=raw,cache=none,werror=stop,rerror=stop,id=drive-virtio-disk0,aio=native \ -device virtio-blk-pci,scsi=off,iothread=thread0,drive=drive-virtio-disk0,id=virtio-disk0,logical_block_size=512,physical_block_size=4096 \ -netdev tap,downscript=/etc/qemu-ifdown,script=/etc/qemu-ifup,id=hostnet0 \ -device e1000,netdev=hostnet0,id=net0,mac=00:52:54:46:f0:ee \ -device piix3-usb-uhci,id=usb \ -device usb-tablet,id=tablet0 \ -vnc 0.0.0.0:0 \ -k en-us \ -vga std \ -qmp tcp:0:4444,server,nowait \ -cdrom en_windows_8_enterprise_x86_dvd_917587.iso \ -boot menu=on \ -monitor stdio \ -fda virtio-win-prewhql-136.vfd \ 2.run CrystalDiskMark on system disk 3.during crystal running,enlarge system disk: (qemu) block_resize drive-virtio-disk0 65G Actual results: qemu hang Expected results: disk can be enlarged correctly,qemu should not hang Additional info: 1.can reproduce with qemu-kvm-rhev-2.8.0-6.el7.x86_64.rpm 2.can NOT reproduce with rhel7.3 released version:qemu-kvm-rhev-2.6.0-27.el7.x86_64.rpm
try with data disk,hit the same issue,so change the title
Reproduced upstream at dd1559bb267becbb838de41132ef60771d183e5d
Fix posted upstream: https://lists.nongnu.org/archive/html/qemu-devel/2017-05/msg02495.html
Fix included in qemu-kvm-rhev-2.9.0-6.el7
Steps are same as comment 0. 1. Reproduced this bug on qemu-kvm-rhev-2.9.0-2.el7.x86_64, qemu hang when do 'block_resize'. (qemu) block_resize drive-virtio-disk0 65g (kill the qemu process as it hang) crystal.sh: line 22: 9165 Killed 2. Verified this issue on qemu-kvm-rhev-2.9.0-6.el7.x86_64, qemu and guest work well. (qemu) block_resize drive-virtio-disk0 65g (qemu) (qemu) (qemu) (qemu) info status VM status: running Thanks.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2017:2392