Align sizes up for growable LVs
Resolves: RHEL-8036 Resolves: RHEL-19725
This commit is contained in:
parent
8a6573b516
commit
9a609139d1
30
0029-Align-sizes-up-for-growable-LVs.patch
Normal file
30
0029-Align-sizes-up-for-growable-LVs.patch
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
From 6a6eca0c9604a9bd508d98b75c5608f20a3a7bf6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Vojtech Trefny <vtrefny@redhat.com>
|
||||||
|
Date: Thu, 24 Oct 2024 12:18:58 +0200
|
||||||
|
Subject: [PATCH] Align sizes up for growable LVs
|
||||||
|
|
||||||
|
Growable LVs usually start at minimum size so adjusting it down
|
||||||
|
can change the size below allowed minimum.
|
||||||
|
|
||||||
|
Resolves: RHEL-8036
|
||||||
|
Resolves: RHEL-19725
|
||||||
|
---
|
||||||
|
blivet/devices/lvm.py | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/blivet/devices/lvm.py b/blivet/devices/lvm.py
|
||||||
|
index 62974443..1293cae2 100644
|
||||||
|
--- a/blivet/devices/lvm.py
|
||||||
|
+++ b/blivet/devices/lvm.py
|
||||||
|
@@ -2574,7 +2574,7 @@ class LVMLogicalVolumeDevice(LVMLogicalVolumeBase, LVMInternalLogicalVolumeMixin
|
||||||
|
if not isinstance(newsize, Size):
|
||||||
|
raise ValueError("new size must be of type Size")
|
||||||
|
|
||||||
|
- newsize = self.vg.align(newsize)
|
||||||
|
+ newsize = self.vg.align(newsize, roundup=self.growable)
|
||||||
|
log.debug("trying to set lv %s size to %s", self.name, newsize)
|
||||||
|
# Don't refuse to set size if we think there's not enough space in the
|
||||||
|
# VG for an existing LV, since it's existence proves there is enough
|
||||||
|
--
|
||||||
|
2.47.0
|
||||||
|
|
@ -23,7 +23,7 @@ Version: 3.6.0
|
|||||||
|
|
||||||
#%%global prerelease .b2
|
#%%global prerelease .b2
|
||||||
# prerelease, if defined, should be something like .a1, .b1, .b2.dev1, or .c2
|
# prerelease, if defined, should be something like .a1, .b1, .b2.dev1, or .c2
|
||||||
Release: 19%{?prerelease}%{?dist}
|
Release: 20%{?prerelease}%{?dist}
|
||||||
Epoch: 1
|
Epoch: 1
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
%global realname blivet
|
%global realname blivet
|
||||||
@ -58,6 +58,7 @@ Patch24: 0025-Stratis-fixes-backport.patch
|
|||||||
Patch25: 0026-XFS-resize-test-fix.patch
|
Patch25: 0026-XFS-resize-test-fix.patch
|
||||||
Patch26: 0027-RHEL96-bugfixes-1.patch
|
Patch26: 0027-RHEL96-bugfixes-1.patch
|
||||||
Patch27: 0028-Fix-checking-for-NVMe-plugin-availability.patch
|
Patch27: 0028-Fix-checking-for-NVMe-plugin-availability.patch
|
||||||
|
Patch28: 0029-Align-sizes-up-for-growable-LVs.patch
|
||||||
|
|
||||||
# Versions of required components (done so we make sure the buildrequires
|
# Versions of required components (done so we make sure the buildrequires
|
||||||
# match the requires versions of things).
|
# match the requires versions of things).
|
||||||
@ -221,6 +222,11 @@ configuration.
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Oct 24 2024 Vojtech Trefny <vtrefny@redhat.com> - 3.6.0-20
|
||||||
|
- Align sizes up for growable LVs
|
||||||
|
Resolves: RHEL-8036
|
||||||
|
Resolves: RHEL-19725
|
||||||
|
|
||||||
* Mon Sep 23 2024 Vojtech Trefny <vtrefny@redhat.com> - 3.6.0-19
|
* Mon Sep 23 2024 Vojtech Trefny <vtrefny@redhat.com> - 3.6.0-19
|
||||||
- Fix checking for NVMe plugin availability
|
- Fix checking for NVMe plugin availability
|
||||||
Resolves: RHEL-28124
|
Resolves: RHEL-28124
|
||||||
|
Loading…
Reference in New Issue
Block a user