Bug 696575 - bonnie test still failed with disk full error after host space is released
Summary: bonnie test still failed with disk full error after host space is released
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: qemu-kvm
Version: 6.1
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Kevin Wolf
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-04-14 10:42 UTC by Suqin Huang
Modified: 2013-01-09 23:47 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-11 04:52:21 UTC
Target Upstream Version:


Attachments (Terms of Use)
bonnie debug info (2.24 KB, text/plain)
2011-04-14 10:42 UTC, Suqin Huang
no flags Details

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.


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