Discussion:
[linux-lvm] Szenario for lvmetad
Oliver Rath
2014-08-19 11:52:08 UTC
Permalink
Hi list,

does it make sense to use lvmetad in one pc with 4 disks, which are used
for lvm? Are the metadata cached in a non-lvmetad environment?

Tfh!
Oliver
Peter Rajnoha
2014-08-19 13:09:49 UTC
Permalink
Post by Oliver Rath
Hi list,
does it make sense to use lvmetad in one pc with 4 disks, which are used
for lvm? Are the metadata cached in a non-lvmetad environment?
Without lvmetad all the block devs are scanned (minus the ones that
are filtered) for each LVM command execution - there's no other persistent
cache. If you don't have numerous block disks in the system, you probably won't
lose much by switching off lvmetad.

However, LVM autoactivation depends on lvmetad use so if you disable lvmetad,
the LVM volumes must be always activated directly (either as part of bootup
script - which is normally left there in case someone disables lvmetad) or
the volumes must be activated on cmd line directly if you attach any PVs
when the system is already up and running (e.g. attaching iSCSI or FCoE
devices, flash disks, external storage...).
--
Peter
Loading...