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

LVMPV format size #1334

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

vojtechtrefny
Copy link
Member

This makes the LVM code to check the actual LVM PV format size instead of assuming it's always the same size as the underlying block device.

Fixes: #1320

No need for a special code for this, we can reuse the existing
code from LVM static data.
Unfortunately LVM substracts VG metadata from the reported PV size
so we need to make sure to update the size after the vgextend and
vgreduce operation.
For existing PVs we need to check the format size instead of
simply expecting the format is fully resized to match the size of
the underlying block device.
@vojtechtrefny vojtechtrefny marked this pull request as ready for review January 22, 2025 10:03
@vojtechtrefny
Copy link
Member Author

I ran some LVM and autopart kickstart tests on this and together with the new tests I added, I am pretty sure this shouldn't break anything, so marking this a s ready for review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LVM resize fails with calculation error - pv metadata unaccounted for
1 participant