Bug 769507 - guest stop(i/o error) when stop/cont guest many times
Summary: guest stop(i/o error) when stop/cont guest many times
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.3
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Virtualization Maintenance
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-21 05:26 UTC by FuXiangChun
Modified: 2011-12-21 07:42 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-21 07:42:17 UTC
Target Upstream Version:


Attachments (Terms of Use)

Description FuXiangChun 2011-12-21 05:26:51 UTC
Description of problem:
create image in NFS, boot guest with nfs image attached as second disk. stop/cont guest many times during copy big file to second disk, the second disk shows i/o error and guest stop. if create image on lvm and local file then guest work fine, it doesn't work in NFS.  I tested only win2008r2 and rhel4.9 guest.


Version-Release number of selected component (if applicable):
# rpm -qa|grep qemu
qemu-kvm-0.12.1.2-2.212.el6.x86_64
# uname -r
2.6.32-220.el6.x86_64

How reproducible:
always

Steps to Reproduce:
1.mount -o soft,timeo=1 ip:/home /mnt

2./usr/libexec/qemu-kvm -M rhel6.2.0 -enable-kvm -m 4G -smp 2,sockets=2,cores=1,threads=1 -name windows2008 -uuid 745fe449-aac8-29f1-0c2d-5042a707263b -boot dc -drive file=/mnt/win2008r2-sp1.qcow2,if=none,id=drive-ide0-0-0,format=qcow2,cache=none,aio=threads,werror=stop,rerror=stop -device ide-drive,drive=drive-ide0-0-0,id=ide0-0-0,bootindex=1 -drive file=/mnt/second-disk-3.qcow2,if=none,id=drive,format=qcow2,cache=none,aio=threads,werror=stop,rerror=stop -device ide-drive,drive=drive,id=ide0-0-1 -netdev tap,id=hostnet1,vhost=on,script=/etc/qemu-ifup -device rtl8139,netdev=hostnet1,mac=00:24:21:7F:B6:02,bus=pci.0,id=virtio-net-pci1 -monitor stdio  -spice disable-ticketing,port=5912

3.copy big file to second disk

4.stop/cont guest
  
Actual results:
stopblock I/O error in device 'drive-virtio-disk2': Input/output error (5)
block I/O error in device 'drive-virtio-disk2': Input/output error (5)
handle_dev_input: stop
(qemu) info status
VM status: paused

Expected results:
guest work well

Additional info:
virtio and ide disk have the same issue, stop/cont about 40 times.

Comment 2 FuXiangChun 2011-12-21 07:22:55 UTC
this issue is nfs only, if set timeo=10 or 60 int step 1, guest works normally.

Comment 3 FuXiangChun 2011-12-21 07:42:17 UTC
according to comment2,since timeout=1 is too short,lead to qemu shows i/o error, it works as design, close this bug.


Note You need to log in before you can comment on or make changes to this bug.