Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
For bugs related to Red Hat Enterprise Linux 5 product line. The current stable release is 5.10. For Red Hat Enterprise Linux 6 and above, please visit Red Hat JIRA https://issues.redhat.com/secure/CreateIssue!default.jspa?pid=12332745 to report new issues.

Bug 540406

Summary: RHEL5.4 VM image corruption with an IDE v-disk
Product: Red Hat Enterprise Linux 5 Reporter: RHEL Program Management <pm-rhel>
Component: kvmAssignee: Eduardo Habkost <ehabkost>
Status: CLOSED ERRATA QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: urgent    
Version: 5.4CC: apevec, azarembo, bstein, cpelland, lihuang, llim, markmc, michen, plyons, pm-eus, tao, tburke, virt-maint, ykaul
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: kvm-83-105.el5_4.12 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-12-09 16:29:02 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 533390    
Bug Blocks: 518493, 1564988    

Description RHEL Program Management 2009-11-23 10:25:58 UTC
This bug has been copied from bug #533390 and has been proposed
to be backported to 5.4 z-stream (EUS).

Comment 7 Miya Chen 2009-12-01 05:52:24 UTC
Test with werror=stop in build kvm-83-105.el5_4.12 again, VM can stop on read
errors.

steps:
Step:
1. create a local nfs server in host, then
mount localhost:/root/test-nfs /mnt -o rw,soft,timeo=1,retrans=0
cd /mnt
qemu-img create test-533390.qcow2 -f qcow2 10G


2. start guest:
/usr/libexec/qemu-kvm -rtc-td-hack -no-hpet -usbdevice tablet -cpu qemu64,+sse2
-drive
file=RHEL-Server-5.4-64-virtio.qcow2,if=ide,format=qcow2,cache=off,werror=stop
-smp 2 -m 2G -vnc :1 -net nic,macaddr=20:20:20:11:12:56,model=virtio,vlan=0
-net tap,script=/etc/qemu-ifup,vlan=0 -monitor stdio -drive
file=/mnt/test-533390.qcow2,if=ide,format=qcow2,cache=off,werror=stop


3. in guest:
fdisk /dev/hdb
mkfs.ext3 /dev/hdb1
dd if=/dev/hdb1 of=/dev/null


4. in host:
service nfs stop

5. In host dmesg:
nfs: server localhost not responding, timed out


Result:
In qemu monitor
(qemu)info status
VM status: paused

Comment 8 Miya Chen 2009-12-01 06:01:25 UTC
additional info:
after VM paused, it can be restored by inputting "c" in qemu monitor, and works
fine.

steps:
1. in host:
service nfs start
2. In qemu monitor
(qemu)c

Comment 11 errata-xmlrpc 2009-12-09 16:29:02 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2009-1659.html