From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gate001.proxmox.com (gate001.proxmox.com [45.144.208.40]) by lore.proxmox.com (Postfix) with ESMTPS id 608691FF153 for ; Mon, 06 Jul 2026 09:03:45 +0200 (CEST) Received: from gate001.proxmox.com (localhost.localdomain [127.0.0.1]) by gate001.proxmox.com (Proxmox) with ESMTP id 3844A21437; Mon, 06 Jul 2026 09:03:44 +0200 (CEST) From: Daniel Herzig To: pve-devel@lists.proxmox.com Subject: [PATCH manager] postinst: add nbd devices to global lvm filter. Date: Mon, 6 Jul 2026 09:03:05 +0200 Message-ID: <20260706070306.36846-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: 2 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: 5HET4RNEJUW6GJUZTVSVGIMKNWHZXMR5 X-Message-ID-Hash: 5HET4RNEJUW6GJUZTVSVGIMKNWHZXMR5 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 nbd-devices to the global filter list of LVM for new installation. 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 (eg. nested Proxmox VE systems with LVM/ext4 installation on an LVM/ext4 host). --- 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