From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from firstgate.proxmox.com (firstgate.proxmox.com [IPv6:2a01:7e0:0:424::9]) by lore.proxmox.com (Postfix) with ESMTPS id A15751FF179 for ; Wed, 29 Oct 2025 14:27:55 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id 0B76DABFA; Wed, 29 Oct 2025 14:28:29 +0100 (CET) To: pve-devel@lists.proxmox.com Date: Wed, 29 Oct 2025 14:27:45 +0100 In-Reply-To: <20251029132745.3127244-1-alwin@antreich.com> References: <20251029132745.3127244-1-alwin@antreich.com> MIME-Version: 1.0 Message-ID: List-Id: Proxmox VE development discussion List-Post: From: Alwin Antreich via pve-devel Precedence: list Cc: Alwin Antreich X-Mailman-Version: 2.1.29 X-BeenThere: pve-devel@lists.proxmox.com List-Subscribe: , List-Unsubscribe: , List-Archive: Reply-To: Proxmox VE development discussion List-Help: Subject: [pve-devel] [PATCH docs 2/2] pve-storage-lvm: add saferemove-stepsize Content-Type: multipart/mixed; boundary="===============7418976649099704050==" Errors-To: pve-devel-bounces@lists.proxmox.com Sender: "pve-devel" --===============7418976649099704050== Content-Type: message/rfc822 Content-Disposition: inline Return-Path: X-Original-To: pve-devel@lists.proxmox.com Delivered-To: pve-devel@lists.proxmox.com Received: from firstgate.proxmox.com (firstgate.proxmox.com [212.224.123.68]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by lists.proxmox.com (Postfix) with ESMTPS id 1CDAFD6547 for ; Wed, 29 Oct 2025 14:28:27 +0100 (CET) Received: from firstgate.proxmox.com (localhost [127.0.0.1]) by firstgate.proxmox.com (Proxmox) with ESMTP id F367FAACB for ; Wed, 29 Oct 2025 14:27:56 +0100 (CET) Received: from mx.antreich.com (mx.antreich.com [173.249.42.230]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by firstgate.proxmox.com (Proxmox) with ESMTPS for ; Wed, 29 Oct 2025 14:27:56 +0100 (CET) Received: from mx.antreich.com (localhost [127.0.0.1]) by mx.antreich.com (Proxmox) with ESMTP id 0DD37760C1D for ; Wed, 29 Oct 2025 14:27:56 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=antreich.com; h= cc:content-transfer-encoding:date:from:from:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to; s=2025; bh=FlxvDcUvqyBuGbMLQRgeZMBWDu6cWbwlUdRzdZFIH48=; b= rzCpCiJvSqdJR66zgCuOGH+hPRBGlThzzZYieYJcHN4LCdJ3Sf0LjC6ZebQcQAr0 BhahgAdd2dTwpPRG9L52sFZSej0CL8ZQjUI3Qb6i2oKc1dd6KCd1igK9axV/ACsR pTQ7D2+UhqDZtqPVPwc2889zjEXWQ/TrNMKt4ZOA+kceW3G9dsf3qmilEYp2d74A UtFBl8eqLZW1hz25W5PzaAcF1ccZBcDPA9+SDoO/4PsR48o8TI8n+d0IuWTb3pYo 1LlhOKr8Xu1KOnfMXYmffwJmlJ5zmPlbn+EsVbqdZnUj37f+vofThYRjT1TUi9aK XdBYQhuxTizVAG6glV32EQ== From: Alwin Antreich To: pve-devel@lists.proxmox.com Subject: [PATCH docs 2/2] pve-storage-lvm: add saferemove-stepsize Date: Wed, 29 Oct 2025 14:27:45 +0100 Message-Id: <20251029132745.3127244-2-alwin@antreich.com> In-Reply-To: <20251029132745.3127244-1-alwin@antreich.com> References: <20251029132745.3127244-1-alwin@antreich.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 0 AWL 0.072 Adjusted score from AWL reputation of From: address BAYES_00 -1.9 Bayes spam probability is 0 to 1% DKIM_SIGNED 0.1 Message has a DKIM or DK signature, not necessarily valid DKIM_VALID -0.1 Message has at least one valid DKIM or DK signature DKIM_VALID_AU -0.1 Message has a valid DKIM or DK signature from author's domain DKIM_VALID_EF -0.1 Message has a valid DKIM or DK signature from envelope-from domain DMARC_PASS -0.1 DMARC pass policy SPF_HELO_PASS -0.001 SPF: HELO matches SPF record SPF_PASS -0.001 SPF: sender matches SPF record and mention the different tools used for saferemove to choose the right option for configuration. Signed-off-by: Alwin Antreich --- I've added th is patch in response to: https://lore.proxmox.com/all/mailman.253.1761222252.362.pve-devel@lists.proxmox.com/T/#u pve-storage-lvm.adoc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pve-storage-lvm.adoc b/pve-storage-lvm.adoc index 527c732..5dd034e 100644 --- a/pve-storage-lvm.adoc +++ b/pve-storage-lvm.adoc @@ -43,6 +43,15 @@ When removing a volume, this makes sure that all data gets erased and cannot be accessed by other LVs created later (which happen to be assigned the same physical extents). This is a costly operation, but may be required as a security measure in certain environments. ++ +Storage devices that support the write zeroes operation will use blockdiscard +to zero blocks. Otherwise, a fallback to cstream is performed. + +`saferemove-stepsize`:: + +Wipe step size in MiB (`blockdiscard -p` paramater value), capped to the maximum +step size supported by the underlying storage. Up to 32 MiB (maximum) by +default. `saferemove_throughput`:: -- 2.39.5 --===============7418976649099704050== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ pve-devel mailing list pve-devel@lists.proxmox.com https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel --===============7418976649099704050==--