linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] LVM fast mode
@ 2022-03-07 14:55 Demi Marie Obenour
  2022-03-07 16:23 ` David Teigland
  0 siblings, 1 reply; 2+ messages in thread
From: Demi Marie Obenour @ 2022-03-07 14:55 UTC (permalink / raw)
  To: LVM general discussion and development


[-- Attachment #1.1.1.1: Type: text/plain, Size: 740 bytes --]

Would it be possible to have a fast, but less-safe mode for lvm2?
Right now lvm2 always enumerates every single block device on
the system, which is hugely wasteful when one knows exactly which
block devices are the PVs that will be affected by the operation.
“Less-safe” means that this is intended for use by programs that
know what they are doing, and that know that e.g. clustering is not
in use.  Using this in conjunction with clustering is a bug in the
application.  Commands that enumerate devices will, in fast mode, only
return LVs on the provided list of PVs.  Attempts to modify an LV on a
different PV would fail as of the LV did not exist.
-- 
Sincerely,
Demi Marie Obenour (she/her/hers)
Invisible Things Lab

[-- Attachment #1.1.1.2: OpenPGP public key --]
[-- Type: application/pgp-keys, Size: 4963 bytes --]

[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

[-- Attachment #2: Type: text/plain, Size: 202 bytes --]

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

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

* Re: [linux-lvm] LVM fast mode
  2022-03-07 14:55 [linux-lvm] LVM fast mode Demi Marie Obenour
@ 2022-03-07 16:23 ` David Teigland
  0 siblings, 0 replies; 2+ messages in thread
From: David Teigland @ 2022-03-07 16:23 UTC (permalink / raw)
  To: Demi Marie Obenour; +Cc: LVM general discussion and development

On Mon, Mar 07, 2022 at 09:55:08AM -0500, Demi Marie Obenour wrote:
> Would it be possible to have a fast, but less-safe mode for lvm2?
> Right now lvm2 always enumerates every single block device on
> the system, which is hugely wasteful when one knows exactly which
> block devices are the PVs that will be affected by the operation.

You can do this by listing the PVs you know are needed with the --devices
option (or using a filter on older versions.)

> know what they are doing, and that know that e.g. clustering is not
> in use.  Using this in conjunction with clustering is a bug in the
> application.  

lvm won't be doing any cluster-related activity unless you have enabled
lvmlockd and have created a shared vg.

Dave
_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


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

end of thread, other threads:[~2022-03-07 16:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-07 14:55 [linux-lvm] LVM fast mode Demi Marie Obenour
2022-03-07 16:23 ` David Teigland

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).