all lists on lists.proxmox.com
 help / color / mirror / Atom feed
From: "DERUMIER, Alexandre via pve-devel" <pve-devel@lists.proxmox.com>
To: "w.bumiller@proxmox.com" <w.bumiller@proxmox.com>
Cc: "DERUMIER, Alexandre" <alexandre.derumier@groupe-cyllene.com>,
	"pve-devel@lists.proxmox.com" <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] [PATCH pve-storage] lvm: use blkdiscard instead cstream to saferemove drive
Date: Thu, 14 Aug 2025 13:11:00 +0000	[thread overview]
Message-ID: <mailman.82.1755177106.385.pve-devel@lists.proxmox.com> (raw)
In-Reply-To: <kkrxayfuo4vhyzqswghw3evwll4b37okjulkxlmwq2ztanlyd6@5td4beeats46>

[-- Attachment #1: Type: message/rfc822, Size: 15476 bytes --]

From: "DERUMIER, Alexandre" <alexandre.derumier@groupe-cyllene.com>
To: "w.bumiller@proxmox.com" <w.bumiller@proxmox.com>
Cc: "pve-devel@lists.proxmox.com" <pve-devel@lists.proxmox.com>
Subject: Re: [pve-devel] [PATCH pve-storage] lvm: use blkdiscard instead cstream to saferemove drive
Date: Thu, 14 Aug 2025 13:11:00 +0000
Message-ID: <89d59912c82b9b98e1422786aad88a1606108c96.camel@groupe-cyllene.com>

-------- Message initial --------
De: Wolfgang Bumiller <w.bumiller@proxmox.com>
À: "DERUMIER, Alexandre" <alexandre.derumier@groupe-cyllene.com>
Cc: pve-devel@lists.proxmox.com <pve-devel@lists.proxmox.com>
Objet: Re: [pve-devel] [PATCH pve-storage] lvm: use blkdiscard instead
cstream to saferemove drive
Date: 14/08/2025 14:05:51

On Thu, Aug 14, 2025 at 10:07:59AM +0000, DERUMIER, Alexandre wrote:
> > +        saferemove_discard => {
> > +            description => "Wipe with discard instead zeroing.",
> > +            type => 'boolean',
> 
> > > Not sure we need this (not sure when this is actually useful),
> > > but
> > > it's
> > > cheap enough to have around. Should add a `default => 0` for
> > > documentation purposes, though.
> 
> Some storage allow overprovisioning. (create a lun bigger than the
> real
> storage size), it can be interesting to discard instead zeroing (to
> free space on storage side).
> as snapshots currently use lvm volume with same size than the main
> volume, it can be interesting to have overprovisioning.

>>But this does not guarantee that the data is actually erased/zeroed, 
some san array are able to zeroing on discard (but also, some san array
have buggy discard implementation, even if they expose the feature)

>>in
>>which case I'd just disable the thing altogether (but then again I
>>use
>>`issue_discards` in lvm.conf to cause `lvremove` to discard the whole
>>thing... ;-)

yes, this is mostly to avoid the need to tune issue_discards, as if you
have multiple storage, afaik, it's not easy to enable issue_discard for
1 storage and not another.  

I was talking about it with blockbridge guy, I think He's better than
me of this subject :

https://forum.proxmox.com/threads/inside-proxmox-ve-9-san-snapshot-support.169675/
"The main issue we see is ensuring the raw device is fully zeroed
before layering a QCOW on top. QCOW doesn't serialize metadata and data
writes, and it lacks a journal. If the backing device doesn't read
zeros, a power loss or process termination can lead to data corruption.

Addressing this is tricky. Zeroing semantics for unmap/discard vary by
device and implementation, but they can usually be checked via the
device's VPD pages. Offloaded zeroing is worth exploring, though older
systems might not support it, and multiple device vendors have buggy
implementations that the kernel disabled via quirks."


[-- Attachment #2: Type: text/plain, Size: 160 bytes --]

_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

  reply	other threads:[~2025-08-14 13:10 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-08-14  9:24 Alexandre Derumier via pve-devel
2025-08-14  9:37 ` Wolfgang Bumiller
2025-08-14 10:07   ` DERUMIER, Alexandre via pve-devel
     [not found]   ` <9d5353263ee0aa3ee67d8d331f674f8a00044b1e.camel@groupe-cyllene.com>
2025-08-14 12:05     ` Wolfgang Bumiller
2025-08-14 13:11       ` DERUMIER, Alexandre via pve-devel [this message]
2025-08-15  5:10       ` DERUMIER, Alexandre via pve-devel
2025-08-15  5:47         ` DERUMIER, Alexandre via pve-devel

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=mailman.82.1755177106.385.pve-devel@lists.proxmox.com \
    --to=pve-devel@lists.proxmox.com \
    --cc=alexandre.derumier@groupe-cyllene.com \
    --cc=w.bumiller@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