Skip to contentSkip to conversation

LVM fast mode

linux-lvm Demi Marie Obenour 2 participants 2 messages Mar 7, 2022

lore
Share & tools
lore
#0 lore raw

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.

Signature · 3 lines
Sincerely,
Demi Marie Obenour (she/her/hers)
Invisible Things Lab

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

#1 lore raw
Quoted 4 lines · Demi Marie Obenour

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

Quoted 3 lines

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
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/