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 660162 - VDSM should not extend thinly provisioned disk image (LV) past max size
Summary: VDSM should not extend thinly provisioned disk image (LV) past max size
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: vdsm
Version: 6.0
Hardware: Unspecified
OS: Linux
high
high
Target Milestone: rc
: ---
Assignee: Dan Kenigsberg
QA Contact: Ortal
URL:
Whiteboard:
Depends On: 651803
Blocks: 681201
TreeView+ depends on / blocked
 
Reported: 2010-12-05 23:14 UTC by Andrew Cathrow
Modified: 2014-09-07 22:53 UTC (History)
9 users (show)

Fixed In Version: vdsm-4.9-43.el6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-19 15:06:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Andrew Cathrow 2010-12-05 23:14:24 UTC
See #659301

VDSM is receiving multiple ENOSPACE errors ( in error) and extend LVM accordingly but does so past the max vDisk size.

Comment 3 Barak 2010-12-09 13:10:48 UTC
(In reply to comment #0)
> See #659301
> 
> VDSM is receiving multiple ENOSPACE errors ( in error) and extend LVM
> accordingly but does so past the max vDisk size.

To handle this issue we need:
1 - to know the disk max size.
    * We can have RHEVM report the max disk size (on the vm creation)
    *  We can check it ourselves using qemu-image 
2 - to understand what is the current disk size.  This is not that trivial, the 
    actual disk size often pass the disk size allocated to the VM, since the 
    image inflates during time & snapshots. In addition what counts is the size 
    of the disk as viewed by the guest.
    * We can add this logic between VDSM & RHEV-Agent but there are 2 issues with 
    such approach:
    - the mapping between the internal disk viewed by the guest and the 
      external needs some digging.
    - Another issue relates to security - do we count on the guest to report this 
      issue?

But still it does not solve BZ#659301.
On the other hand once BZ#659301 is solved the need to handle this BZ is gone.

Comment 4 Ayal Baron 2010-12-09 19:57:37 UTC
(In reply to comment #3)
> (In reply to comment #0)
> > See #659301
> > 
> > VDSM is receiving multiple ENOSPACE errors ( in error) and extend LVM
> > accordingly but does so past the max vDisk size.
> 
> To handle this issue we need:
> 1 - to know the disk max size.
>     * We can have RHEVM report the max disk size (on the vm creation)
>     *  We can check it ourselves using qemu-image 

We already have that information

> 2 - to understand what is the current disk size.  This is not that trivial, the 
>     actual disk size often pass the disk size allocated to the VM, since the 
>     image inflates during time & snapshots. In addition what counts is the size 
>     of the disk as viewed by the guest.

Size of the disk as viewed by the guest is equal to what you defined as "disk max size" and in any event is irrelevant here.
It is true that the qemu file can grow beyond the VDisk size, but we should probably limit this to be at most 150%.  An image growing beyond this is clearly a qemu bug which should be resolved asap.
Also, we need to warn user when crossing even 80% that it is recommended to convert image to raw (seeing as no disk space is saved and performance is degraded), but that is another RFE.

>     * We can add this logic between VDSM & RHEV-Agent but there are 2 issues
> with 
>     such approach:
>     - the mapping between the internal disk viewed by the guest and the 
>       external needs some digging.
>     - Another issue relates to security - do we count on the guest to report
> this 
>       issue?

As stated above, totally irrelevant.

> 
> But still it does not solve BZ#659301.
> On the other hand once BZ#659301 is solved the need to handle this BZ is gone.

The place to limit this (assuming we go for the 150% heuristic is in the storage code or before ever calling extend).

Also, need to support changing disk size -
Currently, users can change the disk size and we are oblivious to this except that reported size in RHEVM is incorrect and our MD is also out of date.
If we start limiting size then users will only be able to increase size of preallocated disks.

Comment 5 Itamar Heim 2010-12-19 14:37:31 UTC
we cannot block max to disk size.
need to make sure we handle redundant enospace events
clean enospace events from queue before 'cont'?

Comment 14 Ortal 2011-05-02 13:17:08 UTC
Verified on VDSM version: vdsm-4.9-63.el6.x86_64
All VMs with Windows OS created thinly-provisioned over iSCSI.
All got lv size which is not above 3G.
After discuss with Danken, the size of the lv for each VM got bigger  - Didn't see that issue used that vdsm ver.


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