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.
Correction of step1(I missed the second data disk in the qemu commend line):
...
-drive file=/home/data,if=none,id=drive-scsi-disk1,format=qcow2,cache=none,werror=stop,rerror=stop \
-device virtio-scsi-pci,id=scsi1,iothread=iothread0 \
-device scsi-hd,drive=drive-scsi-disk1,bus=scsi1.0,scsi-id=0,lun=0,id=scsi-disk1 \
More info:
1. Can not find data-plane information from qemu help .
# /usr/libexec/qemu-kvm -device virtio-scsi,?
2. Can not find data-plane information of disk from qtree info.
(qemu) info qtree
Verified:
Versions:qemu-kvm-rhev-2.6.0-10.el7.x86_64
Steps:
1.Boot guest with a data-plane disk(Same with step 1 in Description and Comment 1)
2. Check disk size before resize
# qemu-img info data
image: data
file format: qcow2
virtual size: 100M (104857600 bytes)
disk size: 196K
cluster_size: 65536
Format specific information:
compat: 1.1
lazy refcounts: false
refcount bits: 16
corrupt: false
3. Resize data disk
{ "execute": "block_resize", "arguments": { "device": "drive-scsi-disk1", "size": 1073741824 } }
{"return": {}}
# qemu-img info data
image: data
file format: qcow2
virtual size: 1.0G (1073741824 bytes)
disk size: 200K
cluster_size: 65536
Format specific information:
compat: 1.1
lazy refcounts: false
refcount bits: 16
corrupt: false
So this bug has been fixed well. Thank you.
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.
For information on the advisory, and where to find the updated
files, follow the link below.
If the solution does not work for you, open a new bug report.
https://rhn.redhat.com/errata/RHBA-2016-2673.html
Description of problem: virtio-scsi data-plane does not support block_resize. Version-Release number of selected component (if applicable): Host: kernel:3.10.0-394.el7.x86_64 qemu-kvm-rhev:qemu-kvm-rhev-2.6.0-1.el7.x86_64 Guest: kernel:3.10.0-394.el7.x86_64 How reproducible: 100% Steps to Reproduce: 1.Boot guest with a data-plane disk /usr/libexec/qemu-kvm -name rhel7.3 -machine pc-i440fx-rhel7.2.0,accel=kvm \ -cpu SandyBridge -m 2G -numa node \ -smp 4,sockets=2,cores=2,threads=1 \ -netdev tap,id=hostnet0 \ -device virtio-net-pci,netdev=hostnet0,id=net0,mac=12:54:00:5c:88:61 \ -device qxl-vga,id=video0,ram_size=67108864,vram_size=67108864,vgamem_mb=16 \ -spice port=5901,addr=0.0.0.0,disable-ticketing,image-compression=off,seamless-migration=on \ -monitor stdio \ -serial unix:/tmp/monitor,server,nowait \ -qmp tcp:0:5555,server,nowait \ -object iothread,id=iothread0 \ -drive file=/home/RHEL-Server-7.3-64-virtio-scsi.qcow2,if=none,id=drive-scsi-disk0,format=qcow2,cache=none,werror=stop,rerror=stop \ -device virtio-scsi-pci,id=scsi0,iothread=iothread0 \ -device scsi-hd,drive=drive-scsi-disk0,bus=scsi0.0,scsi-id=0,lun=0,id=scsi-disk0 \ 2. Resize this disk, qemu prompt 'Device 'drive-scsi-disk1' is in use' . { "execute": "block_resize", "arguments": { "device": "drive-scsi-disk1", "size": 1073741824 } } {"error": {"class": "GenericError", "desc": "Device 'drive-scsi-disk1' is in use"}} Actual results: {"error": {"class": "GenericError", "desc": "Device 'drive-scsi-disk1' is in use"}} Expected results: The disk with data-plan should be resized. Additional info: