Bug 735441
Summary: | Incorrect hardcoded sector size in disk storage pool | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 6 | Reporter: | Daniel Berrangé <berrange> |
Component: | libvirt | Assignee: | Libvirt Maintainers <libvirt-maint> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.2 | CC: | ajia, dyuan, gsun, mzhan, nzhang, rwu, veillard, whuang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | libvirt-0.9.4-8.el6 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-12-06 11:27:58 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Daniel Berrangé
2011-09-02 16:06:16 UTC
# fdisk -l Note: sector size is 4096 (not 512) Disk /dev/sdb: 162.8 GB, 162842222592 bytes 255 heads, 63 sectors/track, 2474 cylinders Units = cylinders of 16065 * 4096 = 65802240 bytes Sector size (logical/physical): 4096 bytes / 4096 bytes I/O size (minimum/optimal): 4096 bytes / 4096 bytes Disk identifier: 0x000d2129 Device Boot Start End Blocks Id System Steps: 1. define disk pool on /dev/sdb 2. build and start /dev/sdb 3. create a vol in the disk pool using vol.xml: <volume> <name>sdb1</name> <key>/dev/sdb1</key> <source> <device path='/dev/sdb'> </device> </source> <capacity unit='M'>10240</capacity> <target> <path>/dev/sdb1</path> </target> </volume> # virsh vol-create sdb vol.xml 4. check the vol info # virsh vol-info sdb1 --pool sdb Results: Step 3: the vol created successfully. Step 4: libvirt-0.9.4-7.2: # virsh vol-info sdb1 --pool sdb Name: sdb1 Type: block Capacity: 1.25 GB Allocation: 1.25 GB libvirt-0.9.4-21: # virsh vol-info sdb1 --pool sdb Name: sdb1 Type: block Capacity: 10.00 GB Allocation: 10.00 GB So libvirt reports the right size now, no factor x8 defect. 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. http://rhn.redhat.com/errata/RHBA-2011-1513.html |