All of lore.kernel.org
 help / color / mirror / Atom feed
* Filtering out LVs?
@ 2011-03-29 11:08 Jun'ichi Nomura
  2011-03-31  6:33 ` Alasdair G Kergon
  0 siblings, 1 reply; 2+ messages in thread
From: Jun'ichi Nomura @ 2011-03-29 11:08 UTC (permalink / raw)
  To: lvm-devel

Hi,

LVM2 commands scan /dev for metadata read-in and validation.
By default, it includes DM devices.

On the other hand, LV deactivation checks its open count
and fails if it's open.

So there is a race that one of multiple vgchange instances prevents other;
"vgchange -an vg0" might fail to deactivate the VG if "vgchange -an vg1"
opens vg0/lv0 at the very time for scanning.

E.g. try this:
   From one console,
     # while true; do vgscan; done
   and from other console,
     # while true; do vgchange -ay $VG; vgchange -an $VG || break; done

While device filter can be configured to avoid LV devices,
and also someone may want to use LV as PV,
it seems inconvenient default behavior.

Does it make sense to add a filter to avoid LVs?
(It has to cope with multiple udev-oriented aliases...)

-- 
Jun'ichi Nomura, NEC Corporation



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

end of thread, other threads:[~2011-03-31  6:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-29 11:08 Filtering out LVs? Jun'ichi Nomura
2011-03-31  6:33 ` Alasdair G Kergon

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.