linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] Detecting active/inactive volume groups
@ 2010-07-23 21:44 Keegan Quinn
  2010-07-23 23:13 ` Alasdair G Kergon
  0 siblings, 1 reply; 2+ messages in thread
From: Keegan Quinn @ 2010-07-23 21:44 UTC (permalink / raw)
  To: linux-lvm

Hello world,

I am searching for a way to determine which volume groups on a system 
are active; ideally I'd like to be able to list all active volume groups 
and all inactive volume groups separately, from the command line.

With older versions of LVM, I believe this was possible by using the -D 
flag to vgdisplay. Unfortunately, with current versions of LVM - I'm 
running 2.02.66 presently - the -D flag no longer exists, and I cannot 
find equivalent functionality in vgdisplay or in any other command. In 
fact, vgdisplay now appears to always list all VGs, regardless of their 
state, and makes no mention whatsoever of active or inactive state.

Is it possible to determine which VGs are active or inactive, with 
recent versions of LVM? How should I go about doing this?

Thanks,

  - Keegan

-- 
Keegan Quinn  <kquinn@storix.com>
Software Support Engineer
Storix, Inc.
(619) 543-0200

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

* Re: [linux-lvm] Detecting active/inactive volume groups
  2010-07-23 21:44 [linux-lvm] Detecting active/inactive volume groups Keegan Quinn
@ 2010-07-23 23:13 ` Alasdair G Kergon
  0 siblings, 0 replies; 2+ messages in thread
From: Alasdair G Kergon @ 2010-07-23 23:13 UTC (permalink / raw)
  To: Keegan Quinn; +Cc: linux-lvm

The concept of 'active' (or 'available') and 'inactive' in respect of Volume
Groups has been removed.  Under the LVM1 architecture it made sense - VG
metadata was cached in-kernel - but with device-mapper it doesn't - the kernel
doesn't know anything about VGs, only LVs.

Do your detection at the LV level instead.

Alasdair

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

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

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-23 21:44 [linux-lvm] Detecting active/inactive volume groups Keegan Quinn
2010-07-23 23:13 ` Alasdair G Kergon

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