all lists on 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 manager/storage v6 0/2] fix #7339: lvmthick: add option to free storage for deleted VMs
Date: Mon, 08 Jun 2026 16:43:14 +0200	[thread overview]
Message-ID: <DJ3QX8QNC75O.3L529E9FJG26I@proxmox.com> (raw)
In-Reply-To: <20260522130419.94386-1-l.sichert@proxmox.com>

Gave this a spin. Used a LUN provided by a SAN via ISCSI with the
underlying storage being thin-provisioned. Then created an LVM-thick
storage with discard enabled, created a new VM with a disk on said
storage and then checked that when removing the VM, the disk space was
reclaimed. Used 
`watch -n 0.5 'lvs -a -o lv_name,data_percent,metadata_percent vgsan'`
to see if the storage was reclaimed as expected.

I also tested what happens if discard is activated and the underlying
storage does not support it. It's obvious from the code that a warning
is printed and then the function carries on, but I think the warning
message could make it more clear what the consequences of the failed
`blkdiscard` command are because right now the warning that is printed
is this:
    command '/sbin/blkdiscard /dev/<vg>/<vol>' failed: exit code 2
I noted on the pve-storage patch that IMO this would benefit from a more
explicit "Disk space could not be reclaimed with discard" or something
similar.

Also had a closer look at the implementation, left some comments on the
individual patches. I also noticed that this lacks a pve-docs patch for
the new discard option.

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

On Fri May 22, 2026 at 3:04 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

[snip]




      parent reply	other threads:[~2026-06-08 14:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-22 13:04 [PATCH manager/storage v6 0/2] fix #7339: lvmthick: add option to free storage for deleted VMs Lukas Sichert
2026-05-22 13:04 ` [PATCH storage v6 1/2] fix #7339: lvmthick: add worker to free space of to be " Lukas Sichert
2026-06-08 14:06   ` Michael Köppl
2026-05-22 13:04 ` [PATCH manager v6 2/2] fix #7339: lvmthick: ui: add UI option to free storage Lukas Sichert
2026-06-08 14:06   ` Michael Köppl
2026-06-08 14:43 ` 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=DJ3QX8QNC75O.3L529E9FJG26I@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal