All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Teigland <teigland@redhat.com>
To: lvm-devel@redhat.com
Subject: [PATCH] pvscan --cache /dev/xx needs to scan all disks and aliases when enable device filter
Date: Wed, 7 Dec 2022 09:29:36 -0600	[thread overview]
Message-ID: <20221207152936.GA12874@redhat.com> (raw)
In-Reply-To: <971ecec87dad4fe2a1771f3c75c5cffb@huawei.com>

On Wed, Dec 07, 2022 at 09:34:13AM +0000, wangzhiqiang (Q) wrote:
> When the system restarts and the disk goes online, the udev rule will be triggered to scan the metadata on
> the disk to automatically activate the logical volume, If we specify the scanned disk alias in lvm.conf, reject
> other unspecified disks, then lv cannot activate since the aliases mismatch with disk name.
> 
> If device filtering is configured in lvm.conf, then pvscan --cache /dev/xx needs to scan all disks and aliases

Hi, if I understand correctly, pvscan is already attempting to handle this
case.  See the use of "_filter_uses_symlinks" in pvscan.c.  Perhaps it
needs check for other symlink substrings?  The problem with your patch is
that it's a significant performance penalty for a common configuration.

Dave


  reply	other threads:[~2022-12-07 15:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-07  9:34 [PATCH] pvscan --cache /dev/xx needs to scan all disks and aliases when enable device filter wangzhiqiang
2022-12-07 15:29 ` David Teigland [this message]
2022-12-09  1:27   ` 答复: " wangzhiqiang

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=20221207152936.GA12874@redhat.com \
    --to=teigland@redhat.com \
    --cc=lvm-devel@redhat.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.