linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] when to vgscan/pvscan/lvscan
@ 2010-06-23 11:46 Philippe Cerfon
  0 siblings, 0 replies; 4+ messages in thread
From: Philippe Cerfon @ 2010-06-23 11:46 UTC (permalink / raw)
  To: linux-lvm

(seems that this did not came through the first time?!)

Hi.

(Talking always about lvm2...)

Is there a real technical difference between pvscan, vgscan and lvscan?
I mean as far as I understand one always needs all information about
PVs,VGs and LVs in order to get the later.
So apart from different textual "debug" output, do all the same, i.e.
scanning over all configured block devices, looking for PVs and
scanning their VG-descriptors in order to get the information about al
LVs?


Is there ever the need to rund pvscan/vgscan/lvscan manually and if so
in which cases? I mean the vgscan manpage says that this happens
automatically in lvm2, so if I e.g. have my init-scripts and want to
make the LVs available, is it generally enough to do
vgchange -an
or can there be cases when the preceding vgscan is still required?


Thanks,
Philippe.

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

* [linux-lvm] when to vgscan/pvscan/lvscan
@ 2010-06-30 20:34 Philippe Cerfon
  2010-06-30 20:57 ` Alasdair G Kergon
  0 siblings, 1 reply; 4+ messages in thread
From: Philippe Cerfon @ 2010-06-30 20:34 UTC (permalink / raw)
  To: linux-lvm

[-- Attachment #1: Type: text/plain, Size: 799 bytes --]

Hi.

(Talking always about lvm2...)

Is there a real technical difference between pvscan, vgscan and lvscan?
I mean as far as I understand one always needs all information about
PVs,VGs and LVs in order to get the later.
So apart from different textual "debug" output, do all the same, i.e.
scanning over all configured block devices, looking for PVs and
scanning their VG-descriptors in order to get the information about al
LVs?


Is there ever the need to rund pvscan/vgscan/lvscan manually and if so
in which cases? I mean the vgscan manpage says that this happens
automatically in lvm2, so if I e.g. have my init-scripts and want to
make the LVs available, is it generally enough to do
vgchange -an
or can there be cases when the preceding vgscan is still required?


Thanks,
Philippe.


      

[-- Attachment #2: Type: text/html, Size: 1134 bytes --]

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

* Re: [linux-lvm] when to vgscan/pvscan/lvscan
  2010-06-30 20:34 Philippe Cerfon
@ 2010-06-30 20:57 ` Alasdair G Kergon
  0 siblings, 0 replies; 4+ messages in thread
From: Alasdair G Kergon @ 2010-06-30 20:57 UTC (permalink / raw)
  To: Philippe Cerfon; +Cc: linux-lvm

The code is supposed to auto-detect changes, but there are still
(mostly obscure) ways that confuse it.

The safest approach if you want to remove the vgscan at boot is to
specify the precise VGs you want to activate by name on the vgchange
command line instead of letting it default to 'all'.

So 'vgchange -ay root_vg home_vg' etc. instead of 'vgchange -ay'.

Then it knows what VGs are supposed to be there, and if it didn't think
it needed to scan but doesn't see one or more of them that'll be enough
to trigger the scan.

Alasdair

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

* Re: [linux-lvm] when to vgscan/pvscan/lvscan
@ 2010-07-01 23:24 Philippe Cerfon
  0 siblings, 0 replies; 4+ messages in thread
From: Philippe Cerfon @ 2010-07-01 23:24 UTC (permalink / raw)
  To: linux-lvm

Hi.
Thanks for your reply.

--- On Wed, 6/30/10, Alasdair G Kergon <agk@redhat.com> wrote:
>The safest approach if you want to remove the vgscan at boot is
>to specify the precise VGs you want to activate by name on the
>vgchange command line instead of letting it default to 'all'.
Is it also possible to scan for a specific LV?

When I use udev, will newly added devices be automatically scanned for LVM stuff (i.e. PVs) if they're block devices?

>Then it knows what VGs are supposed to be there, and if it didn't
>think it needed to scan but doesn't see one or more of them that'll
>be enough to trigger the scan.
Nice.

Thanks,
Philippe.


      

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

end of thread, other threads:[~2010-07-01 23:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-06-23 11:46 [linux-lvm] when to vgscan/pvscan/lvscan Philippe Cerfon
  -- strict thread matches above, loose matches on Subject: below --
2010-06-30 20:34 Philippe Cerfon
2010-06-30 20:57 ` Alasdair G Kergon
2010-07-01 23:24 Philippe Cerfon

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).