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 918831 - fail to block_resize local data disk with AHCI disk_interface
Summary: fail to block_resize local data disk with AHCI disk_interface
Keywords:
Status: CLOSED DUPLICATE of bug 852348
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: Jeff Cody
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On: 852257 852348
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-03-07 02:49 UTC by Sibiao Luo
Modified: 2013-11-05 19:37 UTC (History)
13 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 852348
Environment:
Last Closed: 2013-11-05 19:37:03 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Comment 1 Sibiao Luo 2013-03-07 03:13:38 UTC
When enlarge a AHCI data disk with "block_resize" QEMU command, then reboot the guest, find this disk has no any size changes from guest, but check in the host the data disk has changed size in local host.

host info:
kernel-3.8.0-0.37.el7.x86_64
qemu-kvm-1.3.0-7.el7.x86_64
guest info:
kernel-3.8.0-0.37.el7.x86_64

Steps to Reproduce:
1.creat a data disk in local host.
# qemu-img create -f raw my-data-disk.raw 10G
Formatting 'my-data-disk.raw', fmt=raw size=10737418240
2.boot a guest attached the data disk with AHCI interface.
# <qemu-kvm-command-line>...-M pc-1.3 -device ahci,id=ahci0,addr=0x5 -drive file=my-data-disk.raw,if=none,id=drive-data-disk,format=raw,cache=none,aio=native -device ide-hd,bus=ahci0.0,drive=drive-data-disk,id=data-disk
3.block_resize the data disk.
(qemu) info block
drive-system-disk: removable=0 io-status=ok file=/home/RHEL-Server-7.0-64-virtio.qcow2 ro=0 drv=qcow2 encrypted=0 bps=0 bps_rd=0 bps_wr=0 iops=0 iops_rd=0 iops_wr=0
drive-data-disk: removable=0 io-status=ok file=my-data-disk.raw ro=0 drv=raw encrypted=0 bps=0 bps_rd=0 bps_wr=0 iops=0 iops_rd=0 iops_wr=0
...    
(qemu) block_resize drive-data-disk 15G
4.reboot the guest to check the disk size changes.
# fdisk -l

Result:
after the step 4, there is no any size changes of the data disk in guest.
# fdisk -l
Disk /dev/sda: 10.7 GB
...

But check the data disk in the host is 15G.
# ls -lh my-data-disk.raw
-rw-r--r--. 1 root root 15G Mar  7 10:38 my-data-disk.raw

Comment 2 Hai Huang 2013-03-07 19:58:10 UTC
Please reassign as appropriate.

Comment 3 Kevin Wolf 2013-03-08 10:05:14 UTC
As far as I'm concerned, this is a duplicate of bug 852348 because the ATA command handling code is shared between AHCI and IDE.

I'll leave the bug open in case this is useful for tracking the testing, but this isn't supposed to be addressed separately. If it isn't useful for QE, it can be closed as a duplicate.

Comment 4 Sibiao Luo 2013-03-08 10:10:47 UTC
(In reply to comment #3)
> As far as I'm concerned, this is a duplicate of bug 852348 because the ATA
> command handling code is shared between AHCI and IDE.
> 
> I'll leave the bug open in case this is useful for tracking the testing, but
> this isn't supposed to be addressed separately. If it isn't useful for QE,
> it can be closed as a duplicate.
ok, after bug 852348 fixed, QE need to verify both the IDE and AHCI. thx for your kindly reminds.

Comment 5 Ademar Reis 2013-11-05 19:37:03 UTC

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


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