Bug 1247987
Summary: | volume info has incorrect allocation value for extended partition. | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | yisun |
Component: | libvirt | Assignee: | John Ferlan <jferlan> |
Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> |
Severity: | low | Docs Contact: | |
Priority: | low | ||
Version: | 7.2 | CC: | dyuan, jferlan, rbalakri, xuzhang, yanyang |
Target Milestone: | rc | ||
Target Release: | --- | ||
Hardware: | x86_64 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | libvirt-1.3.1-1.el7 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2016-11-03 18:21:33 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: |
Description
yisun
2015-07-29 11:55:27 UTC
Patch posted upstream: http://www.redhat.com/archives/libvir-list/2015-October/msg00084.html Patch pushed upstream as commit id '1895b42114c932495c2242d6847e47c054955998' git describe 1895b42114c932495c2242d6847e47c054955998 v1.2.20-28-g1895b42 Verified on : libvirt-1.3.2-1.el7.x86_64 1. prepare a pool xml # cat pool.usb <pool type='disk'> <name>sdb</name> <source> <device path='/dev/sdb'> </device> <format type='dos'/> </source> <target> <path>/dev</path> <permissions> <mode>0700</mode> <owner>0</owner> <group>0</group> </permissions> </target> </pool> 2. define the pool # virsh pool-define pool.usb Pool sdb defined from pool.usb 3. build the pool # virsh pool-build sdb --overwrite Pool sdb built 4. start the pool # virsh pool-start sdb Pool sdb started 5. make a extended partition on sdb # parted /dev/sdb GNU Parted 3.1 Using /dev/sdb Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mkpart Partition type? primary/extended? extended Start? 0 End? 4G Warning: The resulting partition is not properly aligned for best performance. Ignore/Cancel? Ignore (parted) quit Information: You may need to update /etc/fstab. 6. refresh the pool # virsh pool-refresh sdb Pool sdb refreshed 7. check the vol-list with --details. make sure extended partition has 0B allocation before make any logical partitions. # virsh vol-list --details sdb Name Path Type Capacity Allocation ---------------------------------------------- sdb1 /dev/sdb1 block 3.73 GiB 0.00 B 8. check the extended partition's vol info, allocation should be 0B at now # virsh vol-info sdb1 sdb Name: sdb1 Type: block Capacity: 3.73 GiB Allocation: 0.00 B 9. check the pool info, allocation should be 0B at now # virsh pool-info sdb Name: sdb UUID: b426d1b4-a35b-4da9-be84-6315b7c5907b State: running Persistent: yes Autostart: no Capacity: 7.45 GiB Allocation: 0.00 B Available: 7.45 GiB 10. create a logical parition # parted /dev/sdb mkpart Partition type? primary/logical? logical File system type? [ext2]? Start? Start? 1 End? 100M Information: You may need to update /etc/fstab. 11. refresh the pool # virsh pool-refresh sdb Pool sdb refreshed 12. The extended partition should have allocation equals to 100M right now # virsh vol-list --details sdb Name Path Type Capacity Allocation ----------------------------------------------- sdb1 /dev/sdb1 block 3.73 GiB 94.00 MiB sdb5 /dev/sdb5 block 94.00 MiB 94.00 MiB 13. check the pool info, the allocation should be around 100M right now # virsh pool-info sdb Name: sdb UUID: 7962ba02-9dd2-40e8-b7d5-1d8d5417126f State: running Persistent: yes Autostart: no Capacity: 7.45 GiB Allocation: 94.00 MiB Available: 7.36 GiB 14. check the extended partition and the logical partition, their allocation should be correct, both equals to 100M # virsh vol-info sdb1 sdb Name: sdb1 Type: block Capacity: 3.73 GiB Allocation: 94.00 MiB # virsh vol-info sdb5 sdb Name: sdb5 Type: block Capacity: 94.00 MiB Allocation: 94.00 MiB 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/RHSA-2016-2577.html |