Bug 1308375
Summary: | Live snapshot deletion causing actual disk size to grow | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Virtualization Manager | Reporter: | Marina Kalinin <mkalinin> | ||||||||
Component: | vdsm | Assignee: | Ala Hino <ahino> | ||||||||
Status: | CLOSED ERRATA | QA Contact: | Elad <ebenahar> | ||||||||
Severity: | high | Docs Contact: | |||||||||
Priority: | urgent | ||||||||||
Version: | 3.5.7 | CC: | aarrichi, ahino, alitke, amureini, aperotti, bazulay, lsurette, mkalinin, pablo.iranzo, ycui, yeylon, ykaul, ylavi | ||||||||
Target Milestone: | ovirt-3.6.3 | Keywords: | Reopened | ||||||||
Target Release: | 3.6.0 | ||||||||||
Hardware: | Unspecified | ||||||||||
OS: | Unspecified | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2016-03-09 19:47:26 UTC | Type: | Bug | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | Storage | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Attachments: |
|
Description
Marina Kalinin
2016-02-14 22:11:02 UTC
Created attachment 1127125 [details]
vdsm log from my testing
Created attachment 1127126 [details]
engine.log from my testing
Created attachment 1127128 [details]
messages file from the host from my reproducer
On block storage, we have to resize the snapshot in order to allow the merge to succeed. Tacking the watermark should allow us to do a better job with it. It's currently targeted for 4.0 (see bug 1168327), and once we implement it we'll re-consider if it's feasible to backport to a 3.6.z branch. *** This bug has been marked as a duplicate of bug 1168327 *** I missed the fact the original disk was PREALLOCATED. This is a different than bug 1168327, reopening. This does, however, seem like the usecase described in https://gerrit.ovirt.org/#/c/53317/. Adam/Ala, can you please confirm (and if so - push forwards with this patch). Adam, Would it fix all snapshot deletion issue, the patch? MArina, Ala, On a block storage, created a VM with 10G preallocated disk attached, started it, created a live snapshot and live merged it. After live merge finished, I ended up with an image which its volume is 1G bigger than its creation size (before I took the snapshot). This means that the image actual size still grows after live merge (by 1G instead of 2G as before the fix). Is this the desired behaviour? Hm, Elad, I do not think this is right. Why would it remain bigger if the snapshot is gone? (in general, why the size of preallocated disk grows with each snapshot creation? but this is a separate discussion). For my understanding - once the snapshot was deleted, the extra size allocated with its creation should go as well. I.e. if the disk's original size is 10G, after creating a snapshot and deleting the snapshot, it should go back to 10G. What's your input on this Ala? Elad, let's meet on Sunday and see what's going on. Basically, I tried to do the same but couldn't see that base image size grows. Tested using latest code: vdsm-4.17.23-0.el7ev.noarch rhevm-3.6.3.3-0.1.el6.noarch Steps: 1) Created a VM with 10G disk attached 2) Started the VM and created a snapshot. Image actual size increased to 11G 3) Deleted the snapshot while the VM was running (live merge) Image size got decreased to 10G as expected. Before snapshot creation: 687c921c-b6e7-4062-bfaa-85a94ecc5577 10.00g IU_c2392de3-cb92-467d-9fc1-e7972bd398cc,MD_7,PU_00000000-0000-0000-0000-000000000000 After snapshot creation: 687c921c-b6e7-4062-bfaa-85a94ecc5577 10.00g IU_c2392de3-cb92-467d-9fc1-e7972bd398cc,MD_7,PU_00000000-0000-0000-0000-000000000000 8aec505e-fe09-483a-b2dc-d56bf3026b46 1.00g IU_c2392de3-cb92-467d-9fc1-e7972bd398cc,MD_8,PU_687c921c-b6e7-4062-bfaa-85a94ecc5577 After snapshot deletion: 687c921c-b6e7-4062-bfaa-85a94ecc5577 10.00g IU_c2392de3-cb92-467d-9fc1-e7972bd398cc,MD_7,PU_00000000-0000-0000-0000-000000000000 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/RHBA-2016-0362.html RHEV 3.6.0 has been released, setting status to CLOSED |