[linux-lvm] Re: LVM2 on top of RAID1? (x86_64)

Kevin P. Fleming kpfleming at backtobasicsmgmt.com
Thu Feb 12 13:40:04 UTC 2004

Luca Berra wrote:

> i still believe it would be better if lvm ignored md component devices 
> completely.

In kernel 2.6 land this is easy to do as well (for everything, not just 
MD). When vgscan tries to open the device to read metadata, open it with 
O_EXCL. If any other kernel subsystem is currently using the device, 
then the open() will fail and vgscan can ignore the device.

More information about the linux-lvm mailing list