Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

core: adjust volume size when converting to cow/preallocated #282

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

bennyz
Copy link
Member

@bennyz bennyz commented Apr 17, 2022

When converting to COW/Prellocated from RAW additional size may be required for the qcow header. We already measure required size, however we only use it for the initial size of the volume which is not used when the target is a preallocated volume on block storage.

This patch uses required size to increase the target volume if it's larger than the current size of the volume to ensure there is enough space to perform the conversion.

Bug-Url: https://bugzilla.redhat.com/2076047

@bennyz bennyz requested a review from ahadas as a code owner April 17, 2022 12:55
@bennyz bennyz changed the title core: handle missing allocation policy/format when converting core: adjust volume size when converting to cow/preallocated Apr 17, 2022
@bennyz bennyz added the storage label Apr 17, 2022
@bennyz bennyz force-pushed the use-measured-size branch 2 times, most recently from b885694 to 34c5d77 Compare April 18, 2022 10:40
@bennyz bennyz requested a review from sleviim April 18, 2022 12:06
@bennyz bennyz force-pushed the use-measured-size branch 3 times, most recently from eebd01d to 8d083d4 Compare April 26, 2022 17:40
@bennyz
Copy link
Member Author

bennyz commented Apr 26, 2022

New OST test passed oVirt/ovirt-system-tests#121 (not merged yet)

When converting to COW/Prellocated from RAW additional size may be
required for the qcow header. We already measure required size, however
we only use it for the initial size of the volume which is not used when
the target is a preallocated volume on block storage.

This patch uses required size to increase the target volume if it's
larger than the current size of the volume to ensure there is enough
space to perform the conversion.

Bug-Url: https://bugzilla.redhat.com/2076047
Signed-off-by: Benny Zlotnik <bzlotnik@redhat.com>
@ahadas ahadas merged commit 20f4a88 into oVirt:master Apr 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants