Re: Why does every lvm command insist on touching every pv?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 6/15/2010 12:47 PM, Alasdair G Kergon wrote:
> It shouldn't normally scan unless it detects something might have changed, but
> if you know the volume group name(s) already, put them on the command line: 
>   lvs vg1 vg2
> 
> (As always -vvvv may give you clues as to what is triggering the scan.)

I can see from the output with -vvvv that it is indeed trying to find a
pv label on every block device in /dev.  I thought that I had figured
out this was because lvm.conf was setting scan = [ "/dev" ] in the
devices section, but I tried removing /dev, and just setting it to "",
as well as "none" and lvs -vvvv STILL is opening every block device in /dev.

Shouldn't this not happen if you leave the value of scan empty, and
shouldn't it be left empty when you have udev running lvscan
automatically on block devices that contain physical volumes?

_______________________________________________
linux-lvm mailing list
linux-lvm@redhat.com
https://www.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/


[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux