Skip to content

Fix missing QCOW2 overhead on LVM cluster LVs - #3537

Merged
stgraber merged 2 commits into
lxc:mainfrom
stgraber:lvm
Jun 25, 2026
Merged

stgraber merged 2 commits into
lxc:mainfrom
stgraber:lvm

Conversation

@stgraber

Copy link
Copy Markdown
Member

No description provided.

stgraber added 2 commits June 25, 2026 11:02
On lvmcluster, block volumes are stored as a qcow2 image written directly
onto the backing logical volume. The LV was sized to the qcow2 virtual size,
leaving no room for qcow2 metadata. A fully-allocated image (e.g. after a full
backup restore) then overflows the LV, causing QEMU to report ENOSPC.

Size the backing LV to the qcow2 fully-allocated size while keeping the qcow2
virtual size at the requested size.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
Retroactively grow the backing logical volume of existing lvmcluster qcow2
block volumes to include the qcow2 metadata overhead, so a fully-allocated
image no longer overflows the volume.

Signed-off-by: Stéphane Graber <stgraber@stgraber.org>
@stgraber
stgraber merged commit 3e616f8 into lxc:main Jun 25, 2026
106 of 109 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants