Bug 1134670
Summary: | fail to specify the physical_block_size/logical_block_size value not 512 for IDE disk | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Sibiao Luo <sluo> | |
Component: | qemu-kvm | Assignee: | Kevin Wolf <kwolf> | |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | |
Severity: | medium | Docs Contact: | ||
Priority: | medium | |||
Version: | 7.0 | CC: | chayang, famz, hhuang, juzhang, kwolf, mazhang, michen, mrezanin, pbonzini, qzhang, rbalakri, virt-maint, xfu | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | Unspecified | |||
OS: | Unspecified | |||
Whiteboard: | ||||
Fixed In Version: | qemu-kvm-1.5.3-101.el7 | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 1134693 (view as bug list) | Environment: | ||
Last Closed: | 2015-11-19 04:52:59 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: | ||||
Bug Blocks: | 1134693 |
Description
Sibiao Luo
2014-08-28 04:31:24 UTC
The command line is not correct, our IDE emulation doesn't support logical block sizes other than 512. Using a different one happens to also the affect the exposed physical block size. I sent a patch upstream to catch this ('ide: Check validity of logical block size') and unless the pull request is rejected, this is going to become commit d2005185. Fix included in qemu-kvm-1.5.3-101.el7 Reproduced this bug on qemu-kvm-1.5.3-100.el7.x86_64 Host: qemu-kvm-1.5.3-100.el7.x86_64 Guest: 3.10.0-308.el7.x86_64 Command line: -drive file=/home/rhel7.2-64.qcow2,if=none,id=drive-virtio-disk0,format=qcow2,cache=none,werror=stop,rerror=stop,aio=threads \ -device virtio-blk-pci,scsi=off,bus=pci.0,drive=drive-virtio-disk0,id=virtio-disk0,bootindex=1 \ -drive file=/home/my-data-disk1.qcow2,if=none,id=drive-data-disk1,format=qcow2,cache=none,aio=native \ -device ide-hd,drive=drive-data-disk1,id=data-disk1,bus=ide.0,unit=0,physical_block_size=1024,logical_block_size=1024 \ Result: Both physical_block_size and logical_block_size is 512. [root@dhcp-10-70 ~]# cat /sys/block/sda/queue/physical_block_size 512 [root@dhcp-10-70 ~]# cat /sys/block/sda/queue/logical_block_size 512 Verified this bug on qemu-kvm-1.5.3-101.el7.x86_64. Result: qemu-kvm quit with warning. QEMU 1.5.3 monitor - type 'help' for more information (qemu) qemu-kvm: -device ide-hd,drive=drive-data-disk1,id=data-disk1,bus=ide.0,unit=0,physical_block_size=1024,logical_block_size=1024: logical_block_size must be 512 for IDE qemu-kvm: -device ide-hd,drive=drive-data-disk1,id=data-disk1,bus=ide.0,unit=0,physical_block_size=1024,logical_block_size=1024: Device initialization failed. qemu-kvm: -device ide-hd,drive=drive-data-disk1,id=data-disk1,bus=ide.0,unit=0,physical_block_size=1024,logical_block_size=1024: Device 'ide-hd' could not be initialized So this bug has been fixed. 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-2015-2213.html |