How to remove a specific leg of a mirror?

Solution Unverified - Updated -

Issue

I have a volume group that consists of five physical volumes. I have added one large physical volume to the volume group and created a mirror via 'lvconvert -m 1 --corelog....'.
The volume group currently looks like this:

# vgdisplay -v dcon1
    Using volume group(s) on command line
    Finding volume group "dcon1"
  --- Volume group ---
  VG Name               dcon1
  System ID             
  Format                lvm2
  Metadata Areas        6
  Metadata Sequence No  34
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                6
  Act PV                6
  VG Size               2.74 TB
  PE Size               4.00 MB
  Total PE              719350
  Alloc PE / Size       670704 / 2.56 TB
  Free  PE / Size       48646 / 190.02 GB
  VG UUID               ae5UGs-cds5-eox2-8X5S-mLSA-B6Yf-RMsQNP

  --- Logical volume ---
  LV Name                /dev/dcon1/dcon1
  VG Name                dcon1
  LV UUID                EVYpx0-9dbk-YtrP-gWLs-99pj-iCH4-7wXW1T
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.28 TB
  Current LE             335352
  Mirrored volumes       2
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:21

  --- Physical volumes ---
  PV Name               /dev/mpath/350002ac003d505b8p1     
  PV UUID               uRC6hB-fa7M-ebBR-abI5-2zRd-bd11-4e8zNb
  PV Status             allocatable
  Total PE / Free PE    51199 / 0

  PV Name               /dev/mpath/350002ac003e705b8p1     
  PV UUID               aChVsh-j0AH-gUXf-c5cr-RGcR-GBYx-bFF8A9
  PV Status             allocatable
  Total PE / Free PE    76798 / 0

  PV Name               /dev/mpath/350002ac0041205b8p1     
  PV UUID               Mg3fAi-D7Ee-vwN5-A8zs-agx0-rLwQ-EJ1fdR
  PV Status             allocatable
  Total PE / Free PE    51199 / 0

  PV Name               /dev/mpath/350002ac0042805b8p1     
  PV UUID               YLZjau-3nGe-ctW4-lXxY-xmLX-uI0g-F41TsE
  PV Status             allocatable
  Total PE / Free PE    53758 / 0

  PV Name               /dev/mpath/350002ac0043205b8p1     
  PV UUID               kqj1WF-7vFA-4Uee-wCE5-ltIo-9qPn-8izjcj
  PV Status             allocatable
  Total PE / Free PE    102398 / 0

  PV Name               /dev/mpath/360000970000195900557533030353842p1     
  PV UUID               xMTJdP-0cIS-p4sZ-4cgi-NxwB-fi5l-HC0GpB
  PV Status             allocatable
  Total PE / Free PE    383998 / 48646

The device /dev/mpath/360000970000195900557533030353842p1 is the device that was added for the mirror.

Once that mirror completes, I need to remove all the old devices (/dev/mpath/3500*) and leave the dcon1 volume with just the new device (/dev/mpath/36000...).

With the current output of 'vgdisplay -v dcon1' at the top, can you please provide the correct steps to break the mirror leaving the new device active (/dev/mpath/36000...), and then remove the old devices (/dev/mpath/3500*)?

Environment

  • Redhat Enterprise Linux 5.8
  • LVM mirror

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content