[linux-lvm] lvm.conf parameter for PVs to use for lvcreate ?

Zdenek Kabelac zdenek.kabelac at gmail.com
Mon May 29 18:32:48 UTC 2017


Dne 23.5.2017 v 17:57 Oliver Rath napsal(a):
> Hi list,
> 
> if I use mulitiple PVs, Im able to select these PVs which should be used
> by my lv, i.e.
> 
> lvcreate --size 10G --name mylv myvg /dev/sda3 /dev/sdb3
> 
> Is it possible to set these "/dev/sda3 /dev/sdb3" as default in lvm.conf
> if nothing is explicitly given?
> 


You can set which PV is not 'allocatable'
(see 'man pvchange --allocatable)

This should be approximately what you want aim to have.

Regards

Zdenek





More information about the linux-lvm mailing list