Bug 1256500 - [RFE][scale] Snapshot deletion of poweredoff VM takes longer time.
Summary: [RFE][scale] Snapshot deletion of poweredoff VM takes longer time.
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Virtualization Manager
Classification: Red Hat
Component: ovirt-engine
Version: 3.5.3
Hardware: All
OS: Linux
high
medium
Target Milestone: ovirt-4.1.0-beta
: ---
Assignee: Ala Hino
QA Contact: Raz Tamir
URL: https://github.com/alhino/ovirt-site/...
Whiteboard:
Depends On: 1246114
Blocks: 1420198
TreeView+ depends on / blocked
 
Reported: 2015-08-24 18:30 UTC by Amador Pahim
Modified: 2020-01-17 15:32 UTC (History)
17 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Previously, deleting a snapshot while the virtual machine was down took a long time. With this release, snapshot deletion while a virtual machine is down uses 'qemu-img commit' instead of 'qemu-img rebase', improving the performance of the operation.
Clone Of:
Environment:
Last Closed: 2017-04-25 00:48:59 UTC
oVirt Team: Storage
Target Upstream Version:
Embargoed:
bmcclain: priority_rfe_tracking+
gklein: testing_plan_complete-


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHEA-2017:0997 0 normal SHIPPED_LIVE Red Hat Virtualization Manager (ovirt-engine) 4.1 GA 2017-04-18 20:11:26 UTC

Description Amador Pahim 2015-08-24 18:30:03 UTC
Currently the merge operation is very expensive and requires the equivalent storage space available for the _MERGE image. See the flow on removing snapshot1:

  (raw 10G)
------------------------
| ca8b5daa (snapshot1) |
------------------------
     |            (cow)
     |        ------------
     ---------| 00d83dd2 |----
              ------------   |
                (active)     |
                             | qemu-img convert
    (raw 10G)                |
------------------ <----------
| 00d83dd2_MERGE | -----------
------------------           |
                             | 
                             | rename
 (raw 10G)                   | 
------------                 |
| 00d83dd2 |  <---------------
------------
  (active)

In consequence of the _MERGE image creation, storage can run out-of-space, since many users believe removing snapshots will free some storage space and they do that when the storage is close to the limit. The _MERGE volume is not desired at all in that scenario.

Qemu has support for 'qemu-img commit', wich can commit the changes in a cow image to its backing file. After the commit, we can drop the cow image and use the backing file directly.

Please change the offline merge method to use 'qemu-img commit' instead of the external merge image.

Comment 1 Nir Soffer 2015-08-24 18:55:55 UTC
Related to bug 1206328 (offline merge too slow).

Amador, please add relevant customer cases so we can schedule this.

Comment 3 Tal Nisan 2017-01-12 13:21:20 UTC
Ala, please update the doc text with the feature page or a relevant text


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