Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 696575

Summary: bonnie test still failed with disk full error after host space is released
Product: Red Hat Enterprise Linux 6 Reporter: Suqin Huang <shuang>
Component: qemu-kvmAssignee: Kevin Wolf <kwolf>
Status: CLOSED WORKSFORME QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.1CC: ddutile, juzhang, kwolf, mkenneth, syeghiay, tburke, virt-maint, xwei
Target Milestone: rcKeywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-11 04:52:21 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:
Attachments:
Description Flags
bonnie debug info none

Description Suqin Huang 2011-04-14 10:42:35 UTC
Created attachment 492033 [details]
bonnie debug info

Description of problem:
run bonnie test in guest and run dd on host to make host space 100% used, then delete file on host to release space. bonnie test failed with disk full error although there is space in guest and host.

Version-Release number of selected component (if applicable):
qemu-kvm-0.12.1.2-2.156.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
1. cmd
/usr/libexec/qemu-kvm -monitor stdio -drive file='/root/rhel6-64-virtio.qcow2',index=0,if=none,id=drive-virtio-disk1,media=disk,cache=none,format=qcow2,aio=native -device virtio-blk-pci,bus=pci.0,addr=0x4,drive=drive-virtio-disk1,id=virtio-disk1 -device virtio-net-pci,netdev=idf6hhrW,mac=9a:9c:ec:0b:30:39,id=ndev00idf6hhrW,bus=pci.0,addr=0x3 -netdev tap,id=idf6hhrW,vhost=on,script='/home/scripts/qemu-ifup-switch',downscript='no' -m 12G -smp 24,cores=1,threads=1,sockets=24 -cpu Opteron_G3 -vnc :0 -rtc base=utc,clock=host,driftfix=none -M rhel6.1.0 -boot order=cdn,once=c,menu=off   -usbdevice tablet -no-kvm-pit-reinjection -enable-kvm

2. run bonnie test in guest

http://qe-git.englab.nay.redhat.com/?p=autotest/.git;a=blob;f=client/tests/kvm/autotest_control/bonnie.control;h=2717a8040a62e5350d6dc7a16750b41f6eeececc;hb=19c75ea1b3ae41e48a9dd0adbc7d71c21b2704e9


3. run dd on host to make host space 100% used
(guest stop with warning "block I/O error in device 'drive-virtio-disk1': No space left on device (28)")

4. delete file on host to release space

5. input qemu cmd "c" to continue guest
  
Actual results:
test failed with "Writing with putc()...Can't putc() - disk full?"

Expected results:


Additional info:
1. host (504G mem & 48 cpu)
kernel: 2.6.32-130.el6.x86_64

cpuinfo: 

processor	: 47
vendor_id	: AuthenticAMD
cpu family	: 16
model		: 9
model name	: AMD Opteron(tm) Processor 6172
stepping	: 1
cpu MHz		: 2100.131
cache size	: 512 KB
physical id	: 1
siblings	: 12
core id		: 5
cpu cores	: 12
apicid		: 27
initial apicid	: 27
fpu		: yes
fpu_exception	: yes
cpuid level	: 5
wp		: yes
flags		: fpu vme de pse tsc msr pae mce cx8 apic mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm 3dnowext 3dnow constant_tsc rep_good nonstop_tsc extd_apicid amd_dcm pni monitor cx16 popcnt lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs skinit wdt nodeid_msr npt lbrv svm_lock nrip_save
bogomips	: 4200.06
TLB size	: 1024 4K pages
clflush size	: 64
cache_alignment	: 64
address sizes	: 48 bits physical, 48 bits virtual
power management: ts ttp tm stc 100mhzsteps hwpstate

2. guest
rhel6-64

3. disk info

1). host: 
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/vg_amd61725122-lv_root
                      51606140  38952812  10031888  80% /
tmpfs                264714932         0 264714932   0% /dev/shm
/dev/sda1               495844     31572    438672   7% /boot
/dev/mapper/vg_amd61725122-lv_home
                      21307260  10615960   9608932  53% /home

2). guest:
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup-lv_root
                      10067112   2189004   7366724  23% /
tmpfs                  6163712         0   6163712   0% /dev/shm
/dev/vda1               495844     52168    418076  12% /boot


4. bonnie debug info (attached)

Comment 2 Dor Laor 2011-04-14 12:48:34 UTC
You should use the werror option if you like the VM to stop on disk space issues.

Comment 3 Suqin Huang 2011-04-14 13:18:26 UTC
(In reply to comment #2)
> You should use the werror option if you like the VM to stop on disk space
> issues.

can reproduce while add werror=stop

The expected result is, can run bonnie test successfully after I clean host space

Comment 4 Eduardo Habkost 2011-05-30 14:27:37 UTC
Moving to NEW, bugs assigned to virt-maint shouldn't be on ASSIGNED.

Comment 6 Kevin Wolf 2011-06-08 08:27:39 UTC
Does the guest kernel log show any error?

Comment 7 Suqin Huang 2011-07-25 08:10:39 UTC
try several times, not reproduce , will test on the host in comment0

Comment 8 Xiaoqing Wei 2011-08-11 04:40:46 UTC
(In reply to comment #7)
> try several times, not reproduce , will test on the host in comment0

could not reproduce with qemu-kvm-0.12.1.2-2.176.el6.x86_64 after 2 attempts.
guest would paused if host space 100% occupied .
release some space on host and press "c" in monitor ,
guest continue run.



Best Regards,
Xiaoqing.