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

Wu Guanghao wuguanghao3 at huawei.com
Tue Nov 17 11:20:49 UTC 2020


Thank you for your answer, we will solve this problem in our own way.

在 2020/11/17 0:41, David Teigland 写道:
> 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