Skip to contentSkip to conversation

Szenario for lvmetad

linux-lvm Oliver Rath 2 participants 2 messages Aug 19, 2014

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 4 lines · 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...).

Signature · 1 line
Peter