Bug 918831

Summary: fail to block_resize local data disk with AHCI disk_interface
Product: Red Hat Enterprise Linux 7 Reporter: Sibiao Luo <sluo>
Component: qemu-kvmAssignee: Jeff Cody <jcody>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0CC: acathrow, bsarathy, chayang, flang, hhuang, juzhang, knoel, lsu, michen, mkenneth, pbonzini, sluo, virt-maint
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 852348 Environment:
Last Closed: 2013-11-05 19:37:03 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:
Bug Depends On: 852257, 852348    
Bug Blocks:    

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 ***