-
Epic
-
Resolution: Unresolved
-
Undefined
-
None
-
Low
-
[Epic]: [storage] LVM grow_to_fill feature doesn't work with latest blivet
-
rhel-system-roles
-
None
-
Dev ack
-
False
-
False
-
-
Yes
-
Red Hat Enterprise Linux
-
None
-
None
-
None
A recent blivet fix for LVM VG size calculation (see RHEL-74076) uncovered a bug in the storage role breaking the grow_to_fill feature.
Steps to reproduce:
1. Create a VG on a PV with size smaller than the size of the underlying block device:
- pvcreate /dev/vdb
- pvresize --setphysicalvolumesize 10g /dev/vdb
- vgcreate myvg /dev/vdb
2. Try to grow the PV using the grow_to_fill feature
roles:
- name: linux-system-roles.storage
storage_pools: - name: myvg
disks: ["vdb"]
type: lvm
grow_to_fill: true
3. Run the playbook and check the PV size after.
Result:
The PV is not resized
- pvs
PV VG Fmt Attr PSize PFree
/dev/vdb myvg lvm2 a-- <10,00g <10,00g
Expected result:
The PV is resized to its max size (size of the underlying block device):
- pvs
PV VG Fmt Attr PSize PFree
/dev/vdb myvg lvm2 a-- <20,00g <20,00g
- links to