[lvm-devel] [QEUSTION] VG refresh: remove disk and reinsert disk, VG not refresh

David Teigland teigland at redhat.com
Mon Nov 16 16:41:03 UTC 2020


On Mon, Nov 16, 2020 at 11:15:50AM +0800, Wu Guanghao wrote:
> So I want to know how to add vg refresh function in the 2.02.187 and
> later to keep it the same as 2.02.181, and why delete vg refresh
> function?

Sorry, I don't think I quite knew what a proper use of that looked like
when removing it.  All the cases I saw were unnecessary or were causing
problems.  The motivation was numerous problems reported about failed
activation during boot, some involving unwanted refreshes.  A better fix
might have found a way to preserve it in the stable branch.

If you're compiling your own lvm it would be simple to restore, enable the
if 0 section in pvscan.c.

More generally, refresh didn't fit correctly where it was implemented.  It
depended on lvmetad (now removed), and was not really related to
autoactivation.  If an automatic refresh feature is warranted, it should
be designed and implemented to stand on its own.

Dave




More information about the lvm-devel mailing list