linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] LVM mirror logic bug?
@ 2013-02-06 11:43 Robert
  2013-02-06 12:25 ` Lars Ellenberg
  0 siblings, 1 reply; 3+ messages in thread
From: Robert @ 2013-02-06 11:43 UTC (permalink / raw)
  To: linux-lvm

Hi,

Today I created a mirror due to some data migrations I am doing, and
the funny thing is that two mirror legs ended up on the same physical
volume:

# lvs -a -o +devices
  LV                VG     Attr   LSize   Origin Snap%  Move Log Copy%
 Convert Devices
  oraarch           sapvg  -wi-ao  20.00G
         /dev/dm-18(0)
  oracle            sapvg  -wi-ao   5.00G
         /dev/dm-18(5120)
  orapta            sapvg  mwi-ao 299.12G
100.00         orapta_mimage_0(0),orapta_mimage_1(0)
  [orapta_mimage_0] sapvg  iwi-ao 299.12G
         /dev/dm-5(11520)
  [orapta_mimage_0] sapvg  iwi-ao 299.12G
         /dev/dm-3(12800)
  [orapta_mimage_0] sapvg  iwi-ao 299.12G
         /dev/dm-3(30002)
  [orapta_mimage_0] sapvg  iwi-ao 299.12G
         /dev/dm-4(0)
  [orapta_mimage_0] sapvg  iwi-ao 299.12G
         /dev/dm-4(9913)
  [orapta_mimage_0] sapvg  iwi-ao 299.12G
         /dev/dm-6(0)
  [orapta_mimage_1] sapvg  iwi-ao 299.12G
         /dev/dm-6(34249)
  [orapta_mimage_1] sapvg  iwi-ao 299.12G
         /dev/dm-16(0)
  [orapta_mimage_1] sapvg  iwi-ao 299.12G
         /dev/dm-17(0)
...
...

Here you can see /dev/dm-6 contains part of both mirror legs.

I have to admit I just used the command:
lvconvert -m1 --corelog sapvg/orapta
not specifying the target pv's as I thought LVM would calculate it for itself.

There should be a rule in place to never use the same PV for the
second leg of a mirror that is used by the first shoudln't there?

I am using a statically compiled version of LVM so I can use it on
different machines that are older than SLES11SP2 as the older distro
won't allow me to mirror multi segmented LV's.

# /tmp/lvm.static version
  LVM version:     2.02.98(2) (2012-10-15)
  Library version: 1.02.77 (2012-10-15)
  Driver version:  4.15.0

Thanks!
Robert

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

end of thread, other threads:[~2013-02-06 12:50 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-06 11:43 [linux-lvm] LVM mirror logic bug? Robert
2013-02-06 12:25 ` Lars Ellenberg
2013-02-06 12:50   ` 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).