Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 1566587 - Unable to resize image with preallocation=full mode [rhel-7.5.z]
Unable to resize image with preallocation=full mode [rhel-7.5.z]
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm-rhev (Show other bugs)
7.5
Unspecified Unspecified
high Severity high
: rc
: ---
Assigned To: Max Reitz
Ping Li
: ZStream
: 1537985 (view as bug list)
Depends On: 1549231
Blocks:
  Show dependency treegraph
 
Reported: 2018-04-12 10:57 EDT by Oneata Mircea Teodor
Modified: 2018-05-10 12:06 EDT (History)
17 users (show)

See Also:
Fixed In Version: qemu-kvm-rhev-2.10.0-21.el7_5.2
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: 1549231
Environment:
Last Closed: 2018-05-10 12:04:49 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2018:1369 None None None 2018-05-10 12:06 EDT

  None (edit)
Description Oneata Mircea Teodor 2018-04-12 10:57:32 EDT
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 07:24:34 EDT
Fix included in qemu-kvm-rhev-2.10.0-21.el7_5.2
Comment 4 Tingting Mao 2018-04-17 00:43:46 EDT
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 Berrange 2018-04-17 09:45:11 EDT
*** Bug 1537985 has been marked as a duplicate of this bug. ***
Comment 8 errata-xmlrpc 2018-05-10 12:04:49 EDT
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.