Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] Allocation maps of a mirrored LV?
@ 2009-01-13 10:09 Lupe Christoph
  2009-01-14 20:58 ` David Robinson
  0 siblings, 1 reply; 5+ messages in thread
From: Lupe Christoph @ 2009-01-13 10:09 UTC (permalink / raw)
  To: linux-lvm

Hi!

I'm about to integrate support for LVM mirrors into the configuration
management system I'm maintaining for a client. This system has a "scan"
function that retrieves the current configuration and compares it
against a database.

My problem is that I'm unable to get the allocation info for the parts
of a mirrored volume under SLES 10 (lvm2 RPM is at 2.02.17, even
OpenSuSE 10.3 has only lvm2 2.02.25).

lvdisplay --maps only gives me:

  --- Segments ---
  Logical extent 0 to 24:
    Type		mirror
    Mirrors		2
    Mirror size		25
    Mirror log volume	testlv0_mlog
    Mirror region size	512.00 KB
    Mirror original:
      Logical volume	testlv0_mimage_0
      Logical extents	0 to 24
    Mirror destinations:
      Logical volume	testlv0_mimage_1
      Logical extents	0 to 24

This is lacking the names of the PVs. (Has this been implemented in the
meantime? It would be useful - nudge, nudge...)

BTW, a simple volume *has* this information:

  --- Segments ---
  Logical extent 0 to 31:
    Type		linear
    Physical volume	/dev/sda3
    Physical extents	1261 to 1292

I'm unable to convince lvdisplay to give me any information on, e.g.,
testlv0_mimage_0. And pvdisplay --maps does not display allocation maps
up to 2.02.27, AFAIK.

So does anybody have a way to find out on which PV the mirror parts are?
Short of installing our own lvm2 RPM, of course. Or parsing the raw LVM
config info on the disks...

Thanks for any hint,
Lupe Christoph
-- 
| There is no substitute for bad design except worse design.             |
| /me                                                                    |

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

end of thread, other threads:[~2009-01-15 10:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-13 10:09 [linux-lvm] Allocation maps of a mirrored LV? Lupe Christoph
2009-01-14 20:58 ` David Robinson
2009-01-15  8:36   ` Lupe Christoph
2009-01-15  9:30     ` Jaroslav Stava
2009-01-15 10:03       ` Lupe Christoph

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox