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 868272 - 3.1 - Save the correct (raw) volume size in the metadata during createVolume
Summary: 3.1 - Save the correct (raw) volume size in the metadata during createVolume
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.3
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Federico Simoncelli
QA Contact: Dafna Ron
URL:
Whiteboard: storage
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-19 11:40 UTC by Federico Simoncelli
Modified: 2022-07-09 05:40 UTC (History)
10 users (show)

Fixed In Version: vdsm-4.9.6-41.0
Doc Type: Bug Fix
Doc Text:
When a raw formatted volume smaller than a multiple of the LVM physical extent size is requested, the logical volume (LV) created will be a multiple of the physical extent (PE) size. Previously, the guest system using the volume used the larger volume but the getVolumeSize API request reported back the initial requested value. The size value of the metadata has been adjusted to reflect the actual size allocated to the volume.
Clone Of:
Environment:
Last Closed: 2012-12-04 19:13:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:1508 0 normal SHIPPED_LIVE Important: rhev-3.1.0 vdsm security, bug fix, and enhancement update 2012-12-04 23:48:05 UTC

Description Federico Simoncelli 2012-10-19 11:40:27 UTC
Description of problem:
When the volume format is raw what the disk capacity seen by the guest is the actual size of the file/device therefore if the requested size doesn't match the real size (eg: extends granularity in LVM) we need to update the size value so that the metadata reflects the correct state.

Version-Release number of selected component (if applicable):
vdsm-4.9.6-38.0.el6_3

How reproducible:
100%

Steps to Reproduce:
1. create a raw preallocated volume on iscsi using a size that is not a multiple of the lvm pe (128Mb by default), eg: 10Mb (using the restapi, the ui prevents it).
2. verify that the created lv is indeed using the pe granularity (128Mb)
3. getVolumeSize reports a capacity of 10Mb (while the guest would see a 128Mb disk).
  
Actual results:
The metadata doesn't reflect what the guest actually sees in terms of disk capacity.

Expected results:
The metadata should reflect what the guest actually sees in terms of disk capacity.

Comment 1 Federico Simoncelli 2012-10-19 11:41:36 UTC
commit 097acc6eab78a54e01d920b11621f57f908fd63b
Author: Federico Simoncelli <fsimonce>
Date:   Wed Oct 17 08:07:57 2012 -0400

    volume: save the correct size during creation
    
http://gerrit.ovirt.org/#/c/8629/

Comment 4 Jakub Libosvar 2012-11-06 11:24:15 UTC
Verified vdsm-4.9.6-41.0.el6_3.x86_64

Comment 6 errata-xmlrpc 2012-12-04 19:13:09 UTC
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/RHSA-2012-1508.html


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