all lists on lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH manager] postinst: add nbd devices to global lvm filter.
@ 2026-07-06  7:03 Daniel Herzig
  2026-07-07 14:44 ` Fiona Ebner
  2026-07-08  7:02 ` superseeded: " Daniel Herzig
  0 siblings, 2 replies; 4+ messages in thread
From: Daniel Herzig @ 2026-07-06  7:03 UTC (permalink / raw)
  To: pve-devel

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




^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [PATCH manager] postinst: add nbd devices to global lvm filter.
  2026-07-06  7:03 [PATCH manager] postinst: add nbd devices to global lvm filter Daniel Herzig
@ 2026-07-07 14:44 ` Fiona Ebner
  2026-07-08  6:53   ` Daniel Herzig
  2026-07-08  7:02 ` superseeded: " Daniel Herzig
  1 sibling, 1 reply; 4+ messages in thread
From: Fiona Ebner @ 2026-07-07 14:44 UTC (permalink / raw)
  To: Daniel Herzig, pve-devel

Am 06.07.26 um 9:03 AM schrieb Daniel Herzig:
> This patch adds nbd-devices to the global filter list of LVM for new

Nit: I'd prefer the more explicit "/dev/nbdX devices" or "kernel NBD
devices" rather than "nbd-devices". The hyphen makes it seems off IMHO.

> installation.

s/installation/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 (eg. nested Proxmox VE systems with LVM/ext4

s/eg./e.g./

> installation on an LVM/ext4 host).

You could add that some external backup solutions use these /dev/nbdX
devices, so there are quite a few setups in practice that would benefit.

Missing your Signed-off-by.

With that added and the comments addressed:

Reviewed-by: Fiona Ebner <f.ebner@proxmox.com>
Tested-by: Fiona Ebner <f.ebner@proxmox.com>

> ---
>  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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [PATCH manager] postinst: add nbd devices to global lvm filter.
  2026-07-07 14:44 ` Fiona Ebner
@ 2026-07-08  6:53   ` Daniel Herzig
  0 siblings, 0 replies; 4+ messages in thread
From: Daniel Herzig @ 2026-07-08  6:53 UTC (permalink / raw)
  To: Fiona Ebner; +Cc: pve-devel

Hi Fiona,

thanks for your review and testing the patch.

I'm sending a v2 with your input incorporated.


Fiona Ebner <f.ebner@proxmox.com> writes:

> Am 06.07.26 um 9:03 AM schrieb Daniel Herzig:
>> This patch adds nbd-devices to the global filter list of LVM for new




^ permalink raw reply	[flat|nested] 4+ messages in thread

* superseeded: [PATCH manager] postinst: add nbd devices to global lvm filter.
  2026-07-06  7:03 [PATCH manager] postinst: add nbd devices to global lvm filter Daniel Herzig
  2026-07-07 14:44 ` Fiona Ebner
@ 2026-07-08  7:02 ` Daniel Herzig
  1 sibling, 0 replies; 4+ messages in thread
From: Daniel Herzig @ 2026-07-08  7:02 UTC (permalink / raw)
  To: pve-devel

superseeded by v2:
https://lore.proxmox.com/pve-devel/20260708065936.30842-1-d.herzig@proxmox.com/




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2026-07-08  7:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-06  7:03 [PATCH manager] postinst: add nbd devices to global lvm filter Daniel Herzig
2026-07-07 14:44 ` Fiona Ebner
2026-07-08  6:53   ` Daniel Herzig
2026-07-08  7:02 ` superseeded: " Daniel Herzig

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