[lvm-devel] [LVM2 RFCv1 1/5] lvmlockd: idm: Introduce new locking scheme

David Teigland teigland at redhat.com
Thu Apr 29 15:31:39 UTC 2021


On Thu, Apr 29, 2021 at 11:26:45AM +0800, Leo Yan wrote:
> As a side topic, just curious if LVM doesn't use LVB for invalidation
> the cached metadata, then now LVM uses which mechanism for metadata
> invalidation?  

Every command reads metadata from disk, so there is no cache that needs to
be invalidated.  There is the /run/lvm/hints file, but that is not used
for shared VGs (it caches which devices on the system are LVM PVs).

> No sure if I understand your question or not.  But I think you are
> suggesting to check "vg->lock_type" is IDM and then create pv_list for
> IDM type.  Will refine code for this.

Yes that's what I was thinking, thanks.

Dave




More information about the lvm-devel mailing list