public inbox for pve-devel@lists.proxmox.com
 help / color / mirror / Atom feed
From: "Michael Köppl" <m.koeppl@proxmox.com>
To: "Lukas Sichert" <l.sichert@proxmox.com>, <pve-devel@lists.proxmox.com>
Subject: Re: [PATCH docs/manager/storage v8 0/5] fix #7339: lvmthick: add option to free storage for deleted VMs
Date: Wed, 08 Jul 2026 18:35:53 +0200	[thread overview]
Message-ID: <DJTC3UHU6SCU.EZAH3X7ZKHAU@proxmox.com> (raw)
In-Reply-To: <20260707143252.101757-1-l.sichert@proxmox.com>

Thanks for the patches!

For this version I didn't have a SAN setup readily available, so I
tested with a loop-backed LVM thin pool. On top of a thin LV I created a
LVM-thick storage with discard enabled, created a VM on it, wrote some
data (dd), confirmed that the thin pool's allocation grew, and then
removed the VM. I observed the thin pool's usage drop back down again,
as expected. I saw the "discard (TRIM) data on image vm-9999-disk-0
(/dev/testlvm/del-vm-9999-disk-0)" as expected as well.

When also enabling saferemove, I could observe the usage in the thin
pool drop range by range, as well as observe the "zeroed-out ..." logs.
A thing I noticed is that it doesn't print the 100% log. For my case,
the last log line read 99.80% and then Logical volume
"del-vm-9999-disk-0" successfully removed. I don't think it's a
problem, though. Just looked a bit weird at first.

I also tested what happens if there's a failure during
discard+saferemove removal by making the LV readonly, removing the disk
(which shows "cleanup failed for lv vm-9999-disk-0..."), creating a new
disk with the same base name, removing it again, again yielding "cleanup
failed". Then I checked that `lvs testlvm` reports
failed-1-del-vm-9999-disk-0 and failed-2-del-vm-9999-disk-0, as expected.

Haven't had time yet to do a full review of the code, but added 2
comments on the individual patches.

Consider this:
Tested-by: Michael Köppl <m.koeppl@proxmox.com>

On Tue Jul 7, 2026 at 4:32 PM CEST, Lukas Sichert wrote:
> Logical volumes (LV) in an LVM (thick) volume group (VG) are
> thick-provisioned, but the underlying backing storage can be
> thin-provisioned. In particular, this can be the case if the VG resides
> on a LUN provided by a SAN via iSCSI/FC/SAS [1], where the LUN may be

[snip]




      parent reply	other threads:[~2026-07-08 16:36 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-07-07 14:32 [PATCH docs/manager/storage v8 0/5] fix #7339: lvmthick: add option to free storage for deleted VMs Lukas Sichert
2026-07-07 14:32 ` [PATCH storage v8 1/5] lvm: saferemove: keep LVs where zero-out failed for manual zero-out Lukas Sichert
2026-07-08 16:25   ` Michael Köppl
2026-07-07 14:32 ` [PATCH storage v8 2/5] lvm: saferemove: zero out volumes range by range Lukas Sichert
2026-07-08 16:26   ` Michael Köppl
2026-07-07 14:32 ` [PATCH storage v8 3/5] fix #7339: lvm: add discard action for removed volumes Lukas Sichert
2026-07-07 14:32 ` [PATCH manager v8 4/5] fix #7339: lvmthick: ui: add UI option to free storage Lukas Sichert
2026-07-07 14:32 ` [PATCH docs v8 5/5] fix #7339: lvm: document discard option Lukas Sichert
2026-07-08 16:35 ` Michael Köppl [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=DJTC3UHU6SCU.EZAH3X7ZKHAU@proxmox.com \
    --to=m.koeppl@proxmox.com \
    --cc=l.sichert@proxmox.com \
    --cc=pve-devel@lists.proxmox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal