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 1566587 - Unable to resize image with preallocation=full mode [rhel-7.5.z]
Summary: Unable to resize image with preallocation=full mode [rhel-7.5.z]
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev
Version: 7.5
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: rc
: ---
Assignee: Hanna Czenczek
QA Contact: Ping Li
URL:
Whiteboard:
: 1537985 (view as bug list)
Depends On: 1549231
Blocks:
TreeView+ depends on / blocked
 
Reported: 2018-04-12 14:57 UTC by Oneata Mircea Teodor
Modified: 2022-07-09 09:44 UTC (History)
17 users (show)

Fixed In Version: qemu-kvm-rhev-2.10.0-21.el7_5.2
Doc Type: If docs needed, set a value
Doc Text:
Clone Of: 1549231
Environment:
Last Closed: 2018-05-10 16:04:49 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1369 0 None None None 2018-05-10 16:06:08 UTC

Description Oneata Mircea Teodor 2018-04-12 14:57:32 UTC
This bug has been copied from bug #1549231 and has been proposed to be backported to 7.5 z-stream (EUS).

Comment 2 Miroslav Rezanina 2018-04-13 11:24:34 UTC
Fix included in qemu-kvm-rhev-2.10.0-21.el7_5.2

Comment 4 Tingting Mao 2018-04-17 04:43:46 UTC
Verified the issue with below packages and steps.
Package version:
kernel-3.10.0-862.el7.x86_64
qemu-kvm-rhev-2.10.0-21.el7_5.2.x86_64

Steps:
1. Preallocate with mode off, falloc and full in turn
1.1 Create image and resize with preallocation=off mode
# qemu-img create -f raw test1.img 5G
# qemu-img resize -f raw --preallocation=off test1.img +1G
1.2 Resize again with preallocation=falloc mode
# qemu-img resize -f raw --preallocation=falloc test1.img +1G
1.3 Resize with preallocation=full last
# qemu-img resize -f raw --preallocation=full test1.img +1G
1.4 Check the result
# qemu-img map --output=json test1.img
[{ "start": 0, "length": 7516192768, "depth": 0, "zero": true, "data": false, "offset": 0},
{ "start": 7516192768, "length": 1073741824, "depth": 0, "zero": false, "data": true, "offset": 7516192768}

2. Preallocate with mode off and full.
2.1 Create image and resize with preallocation=off
# qemu-img create -f raw test2.img 5G
# qemu-img resize -f raw --preallocation=off test2.img +1G
2.2 Resize image with preallocation=full last
# qemu-img resize -f raw --preallocation=full test2.img +1G
2.3 Check the result
# qemu-img map --output=json test2.img
[{ "start": 0, "length": 6442450944, "depth": 0, "zero": true, "data": false, "offset": 0},
{ "start": 6442450944, "length": 1073741824, "depth": 0, "zero": false, "data": true, "offset": 6442450944}]

3. Repeat to preallocate with mode full
3.1 Create image and resize with preallocation=full
# qemu-img create -f raw test3.img 5G
# qemu-img resize -f raw --preallocation=full test3.img +1G
3.2 Resize image with preallocation=full again
# qemu-img resize -f raw --preallocation=full test3.img +1G
3.3 Check the result
# qemu-img map --output=json test3.img
[{ "start": 0, "length": 5368709120, "depth": 0, "zero": true, "data": false, "offset": 0},
{ "start": 5368709120, "length": 2147483648, "depth": 0, "zero": false, "data": true, "offset": 5368709120}]

Comment 5 Daniel Berrangé 2018-04-17 13:45:11 UTC
*** Bug 1537985 has been marked as a duplicate of this bug. ***

Comment 8 errata-xmlrpc 2018-05-10 16:04:49 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.

https://access.redhat.com/errata/RHSA-2018:1369


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