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 1003469

Summary: win2012 guest and qemu-kvm hang when hotplug virtio scsi disk less than 1000
Product: Red Hat Enterprise Linux 6 Reporter: zhonglinzhang <zhzhang>
Component: qemu-kvmAssignee: Asias He <asias>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: low    
Version: 6.5CC: acathrow, areis, bsarathy, juzhang, michen, mkenneth, qzhang, virt-maint, xfu
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-09-18 04:52:10 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description zhonglinzhang 2013-09-02 06:50:17 UTC
Description of problem:
When hotplug access to 1000 virtio scsi disk, win2012 guest and qemu-kvm hang.

Version-Release number of selected component (if applicable):
kernel: 2.6.32-414.el6.x86_64
qemu-kvm: qemu-kvm-0.12.1.2-2.398.el6.x86_64

How reproducible:
100%

Steps to Reproduce:
  1. boot win2012 guest with following command line:
/usr/libexec/qemu-kvm -M pc -enable-kvm -m 200G -smp 32,sockets=4,cores=8,threads=1 -name scalability-test -rtc base=localtime,clock=host,driftfix=slew -k en-us -boot menu=on -spice disable-ticketing,port=5931 -vga qxl -monitor stdio -drive file=/home/win2012-64-virtio.qcow2,if=none,id=drive-system-disk,media=disk,format=qcow2,aio=native,werror=stop,rerror=stop -device virtio-blk-pci,drive=drive-system-disk,id=system-disk,addr=0x9 -device virtio-scsi-pci,id=bus1,bus=pci.0,addr=0x5 -monitor unix:/tmp/monitor11,server,nowait

  2. hotplug virtio-scsi with this script: 
#sh test.sh 
#cat test.sh
i=0
j=0
while [ $i -lt 16666 ]
do
j=$((i%255))

sleep 5
if ((i>5000)) ;then
     sleep 5
fi

echo "__com.redhat_drive_add file=/home/storage/usb-storage$i.qcow2,format=qcow2,media=disk,id=scsi$i" | nc -U /tmp/monitor11
echo "device_add scsi-hd,bus=bus1.0,drive=scsi$i,scsi-id=$j,id=hd$i" |nc -U /tmp/monitor11
i=$(($i+1))
done

  3. (qemu) info block
scsi993: removable=0 io-status=ok file=/home/storage/usb-storage993.qcow2 ro=0 drv=qcow2 encrypted=0
scsi994: removable=0 io-status=ok file=/home/storage/usb-storage994.qcow2 ro=0 drv=qcow2 encrypted=0
scsi995: removable=0 io-status=ok file=/home/storage/usb-storage995.qcow2 ro=0 drv=qcow2 encrypted=0
scsi996: removable=0 io-status=ok file=/home/storage/usb-storage996.qcow2 ro=0 drv=qcow2 encrypted=0
scsi997: removable=0 io-status=ok file=/home/storage/usb-storage997.qcow2 ro=0 drv=qcow2 encrypted=0
scsi998: removable=0 io-status=ok file=/home/storage/usb-storage998.qcow2 ro=0 drv=qcow2 encrypted=0
(qemu)

Actual results:
windows2012 guest and qemu-kvm hang when hotplug virtio scsi disk less than 1000

Expected results:
windows2012 guest and qemu-kvm should be work well

Additional info:
rhel6.5 guest can hotplug more than 13000 virtio scsi disk

Comment 2 Asias He 2013-09-18 04:52:10 UTC

*** This bug has been marked as a duplicate of bug 996809 ***