Discussion:
[linux-lvm] lvm.conf parameter for PVs to use for lvcreate ?
Oliver Rath
2017-05-23 15:57:51 UTC
Permalink
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?

Tfh!
Oliver
Zdenek Kabelac
2017-05-29 18:32:48 UTC
Permalink
Post by Oliver Rath
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

Loading...