From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [IPv6:2a0f:8001:1:32::40]) by lore.proxmox.com (Postfix) with ESMTPS id 1470F1FF13A for ; Wed, 08 Jul 2026 09:00:14 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 5935421445; Wed, 08 Jul 2026 09:00:13 +0200 (CEST) From: Daniel Herzig To: pve-devel@lists.proxmox.com Subject: [PATCH manager v2] postinst: add nbd devices to global lvm filter. Date: Wed, 8 Jul 2026 08:59:35 +0200 Message-ID: <20260708065936.30842-1-d.herzig@proxmox.com> X-Mailer: git-send-email 2.47.3 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-SPAM-LEVEL: Spam detection results: 1 AWL -0.572 Adjusted score from AWL reputation of From: address DMARC_MISSING 0.1 Missing DMARC policy KAM_DMARC_STATUS 0.01 Test Rule for DKIM or SPF Failure with Strict Alignment (newer systems) KAM_LAZY_DOMAIN_SECURITY 1 Sending domain does not have any anti-forgery methods RDNS_NONE 1.274 Delivered to internal network by a host with no rDNS SPF_HELO_NONE 0.001 SPF: HELO does not publish an SPF Record SPF_NONE 0.001 SPF: sender does not publish an SPF Record Message-ID-Hash: N2UV32SFEACPUS75NYQ2GESG6OKZEVMJ X-Message-ID-Hash: N2UV32SFEACPUS75NYQ2GESG6OKZEVMJ X-MailFrom: dherzig@emma.proxmox.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Proxmox VE development discussion List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: This patch adds kernel NBD devices to the global filter list of LVM for new installations. This is to avoid clashes with existing VGs/LVs on the host system, if external disks mapped via the nbd kernel driver contain the same naming scheme (e.g. nested Proxmox VE systems with LVM/ext4 installation on an LVM/ext4 host). As kernel NBD devices are used by some external backup providers for certain operations, this may prevent unexpected situations on systems that make use of these tools. Reviewed-by: Fiona Ebner Tested-by: Fiona Ebner Signed-off-by: Daniel Herzig --- Superseeds v1: https://lore.proxmox.com/pve-devel/20260706070306.36846-1-d.herzig@proxmox.com/ Changes since v1: * fixed commit message. debian/postinst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/postinst b/debian/postinst index 924e078d..eb7f3356 100755 --- a/debian/postinst +++ b/debian/postinst @@ -26,7 +26,7 @@ set_lvm_conf() { export LVM_SUPPRESS_FD_WARNINGS=1 OLD_VALUE="$(lvmconfig --typeconfig diff devices/global_filter || true)" - NEW_VALUE='global_filter=["r|/dev/zd.*|","r|/dev/rbd.*|"]' + NEW_VALUE='global_filter=["r|/dev/zd.*|","r|/dev/rbd.*|","r|/dev/nbd.*|"]' # update global_filter if: # it is empty and there is no marker OR exactly the one we set before 8.1.4 -- 2.47.3