How can I change one PV in one leg of an LVM mirrored LV to a PV in another leg on Red Hat Enterprise Linux

Solution Verified - Updated -


  • We have LV mirror on top of PVs coming from two storage units.
    • When one storage fails we expect that mirror will not fail and one copy of it will be running.
    • We want to remove one of the storage units and keep the LV running (without mirror)


  • Red Hat Enterprise Linux (RHEL) 5, 6, 7
  • LVM mirrored logical Volume (LV) with its data (PV's) on top of 2 physical storage units

  • Storage layout:

    • Storage A - /dev/mapper/storage_a_1, /dev/mapper/storage_a_2
    • Storage B - /dev/mapper/storage_b_1, /dev/mapper/storage_b_2
# lvs -a -o +devices

 LV                   VG      Attr   LSize Origin Snap% Move Log Copy% Convert Devices
 lv_mirror            vg_test Mwi-ao 1.0G                        100.00        lv_mirror_mimage_0(0),lv_mirror_mimage_1(0)
 [lv_mirror_mimage_0] vg_test iwi-ao 1.0G                                      /dev/mapper/storage_a_1(0)
 [lv_mirror_mimage_0] vg_test iwi-ao 1.0G                                      /dev/mapper/storage_b_1(0)
 [lv_mirror_mimage_1] vg_test iwi-ao 1.0G                                      /dev/mapper/storage_a_2(0)
 [lv_mirror_mimage_1] vg_test iwi-ao 1.0G                                      /dev/mapper/storage_b_2(0)

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