linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] lvm.conf parameter for PVs to use for lvcreate ?
@ 2017-05-23 15:57 Oliver Rath
  2017-05-29 18:32 ` Zdenek Kabelac
  0 siblings, 1 reply; 2+ messages in thread
From: Oliver Rath @ 2017-05-23 15:57 UTC (permalink / raw)
  To: LVM general discussion and development

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [linux-lvm] lvm.conf parameter for PVs to use for lvcreate ?
  2017-05-23 15:57 [linux-lvm] lvm.conf parameter for PVs to use for lvcreate ? Oliver Rath
@ 2017-05-29 18:32 ` Zdenek Kabelac
  0 siblings, 0 replies; 2+ messages in thread
From: Zdenek Kabelac @ 2017-05-29 18:32 UTC (permalink / raw)
  To: LVM general discussion and development, Oliver Rath

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-05-29 18:32 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-23 15:57 [linux-lvm] lvm.conf parameter for PVs to use for lvcreate ? Oliver Rath
2017-05-29 18:32 ` Zdenek Kabelac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).