<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Using LVM mirroring to migrate from array to array in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404112#M560985</link>
    <description>You are about to use pvmove to move the "c12" lun back to the "c4" lun. Why not use pvmove to move the "c4" luns forward to the other "c12' luns? No mirroring is needed.</description>
    <pubDate>Wed, 22 Apr 2009 19:48:18 GMT</pubDate>
    <dc:creator>TTr</dc:creator>
    <dc:date>2009-04-22T19:48:18Z</dc:date>
    <item>
      <title>Using LVM mirroring to migrate from array to array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404101#M560974</link>
      <description>Hey, guys.  I am working on migrating a bunch of volume groups from an XP1024 onto an XP12K using LVM mirroring.  I'm able to create the mirrors without any problem so that my data is now on both arrays.  I'm having trouble figuring out the best way to remove the old array from the volume group.&lt;BR /&gt;&lt;BR /&gt;I used physical volume groups to do the mirror.  I made a new PVG when I extended the volume group that contained all of the new disks that I presented to the host from the XP12K.  I then lvextended each of the LVs in the VG with mirror copy = 1 and specified the new PVG.&lt;BR /&gt;&lt;BR /&gt;My problem is that I can't lvreduce out a physical volume group.  It would be easy to remove the XP1024 disks if that was the case.  Please help me with the procedure to reduce out these disks:&lt;BR /&gt;&lt;BR /&gt;#  vgdisplay -v v42&lt;BR /&gt;&lt;BR /&gt;...&lt;BR /&gt;&lt;BR /&gt;   --- Physical volume groups ---&lt;BR /&gt;   PVG Name                    vg42_pri&lt;BR /&gt;   PV Name                     /dev/dsk/c36t0d0&lt;BR /&gt;   PV Name                     /dev/dsk/c36t0d1&lt;BR /&gt;   PV Name                     /dev/dsk/c36t0d2&lt;BR /&gt;   PV Name                     /dev/dsk/c36t0d3&lt;BR /&gt;   PV Name                     /dev/dsk/c36t0d4&lt;BR /&gt;   PV Name                     /dev/dsk/c36t0d5&lt;BR /&gt;   PV Name                     /dev/dsk/c36t0d6&lt;BR /&gt;   PV Name                     /dev/dsk/c36t0d7&lt;BR /&gt;   PV Name                     /dev/dsk/c36t1d0&lt;BR /&gt;   PV Name                     /dev/dsk/c36t1d1&lt;BR /&gt;   PV Name                     /dev/dsk/c36t1d2&lt;BR /&gt;   PV Name                     /dev/dsk/c36t1d3&lt;BR /&gt;&lt;BR /&gt;   PVG Name                    vg42_xp1024&lt;BR /&gt;   PV Name                     /dev/dsk/c32t0d2&lt;BR /&gt;   PV Name                     /dev/dsk/c32t0d4&lt;BR /&gt;   PV Name                     /dev/dsk/c32t0d6&lt;BR /&gt;   PV Name                     /dev/dsk/c32t1d0&lt;BR /&gt;   PV Name                     /dev/dsk/c32t1d2&lt;BR /&gt;   PV Name                     /dev/dsk/c32t1d4&lt;BR /&gt;   PV Name                     /dev/dsk/c32t0d3&lt;BR /&gt;   PV Name                     /dev/dsk/c32t0d5&lt;BR /&gt;   PV Name                     /dev/dsk/c32t0d7&lt;BR /&gt;   PV Name                     /dev/dsk/c32t1d1&lt;BR /&gt;   PV Name                     /dev/dsk/c32t1d3&lt;BR /&gt;   PV Name                     /dev/dsk/c32t1d5&lt;BR /&gt;&lt;BR /&gt;----------------------------------------------&lt;BR /&gt;&lt;BR /&gt;casjoh2@baclaw:/home/casjoh2# lvdisplay /dev/vg42/lvol1&lt;BR /&gt;--- Logical volumes ---&lt;BR /&gt;LV Name                     /dev/vg42/lvol1&lt;BR /&gt;VG Name                     /dev/vg42&lt;BR /&gt;LV Permission               read/write&lt;BR /&gt;LV Status                   available/syncd&lt;BR /&gt;Mirror copies               1&lt;BR /&gt;Consistency Recovery        MWC&lt;BR /&gt;Schedule                    parallel&lt;BR /&gt;LV Size (Mbytes)            388000&lt;BR /&gt;Current LE                  24250&lt;BR /&gt;Allocated PE                48500&lt;BR /&gt;Stripes                     0&lt;BR /&gt;Stripe Size (Kbytes)        0&lt;BR /&gt;Bad block                   NONE&lt;BR /&gt;Allocation                  PVG-strict/distributed&lt;BR /&gt;IO Timeout (Seconds)        default&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;vg42_pri is the PVG containing the XP12K disks.&lt;BR /&gt;vg42_xp1024 is the PVG containing the XP1024 disks that I want to remove.  There are three LVMs in this VG that I need to take care of and right now all three of them are mirrored between the two PVGs.&lt;BR /&gt;&lt;BR /&gt;Thanks!</description>
      <pubDate>Mon, 20 Apr 2009 14:10:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404101#M560974</guid>
      <dc:creator>No idea what I'm doing</dc:creator>
      <dc:date>2009-04-20T14:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: Using LVM mirroring to migrate from array to array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404102#M560975</link>
      <description>Hi:&lt;BR /&gt;&lt;BR /&gt;Since LVM mirroring occurs at the logical volume level, you need to work there.  You can do:&lt;BR /&gt;&lt;BR /&gt;# lvreduce -m 0 lv_path pv_path&lt;BR /&gt;&lt;BR /&gt;...to target a specific physical volume.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 20 Apr 2009 14:25:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404102#M560975</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-04-20T14:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Using LVM mirroring to migrate from array to array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404103#M560976</link>
      <description>Thank you for the response.  I believed I tried this the first time around.&lt;BR /&gt;&lt;BR /&gt;I began reducing out each of the PV Names but once I was done with the first one, the mirror was broken.  And I then got an error message telling me that the mirror was no longer established when I started reducing the second PV Name.  Do I need to remove the &lt;BR /&gt;"-m 0" option after the mirror is broke with the first lvreduce command?</description>
      <pubDate>Mon, 20 Apr 2009 14:50:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404103#M560976</guid>
      <dc:creator>No idea what I'm doing</dc:creator>
      <dc:date>2009-04-20T14:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: Using LVM mirroring to migrate from array to array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404104#M560977</link>
      <description>No, actually you need to use -m 0 switch on all logical volumes that have been mirrored on the drive that you are removing. But looking at the number of the disks you are migration out of, I see that it is very easy to make a typographical error, especially if you have an ample amount of logical volumes.&lt;BR /&gt;&lt;BR /&gt;You can querry the pv's with&lt;BR /&gt;&lt;BR /&gt;pvdisplay /dev/dsk/cXtXdX&lt;BR /&gt;&lt;BR /&gt;command to find out which ones have attachments to which logical volumes so that remove these disks from the proper logical volume mirrors.&lt;BR /&gt;&lt;BR /&gt;Hope this helps</description>
      <pubDate>Mon, 20 Apr 2009 15:13:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404104#M560977</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-04-20T15:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: Using LVM mirroring to migrate from array to array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404105#M560978</link>
      <description>&lt;!--!*#--&gt;Hi:&lt;BR /&gt;&lt;BR /&gt;If any of the physical volumes are alternate links (pvlinks) your first reduction of the mirror copies to zero whould yield a subsequent error:&lt;BR /&gt;&lt;BR /&gt;lvreduce: "MirrorCopies" parameter "0" is not smaller than existing number "0";&lt;BR /&gt;therefore no mirrors are removed.&lt;BR /&gt;&lt;BR /&gt;Using Mel's suggestion, you might do :&lt;BR /&gt;&lt;BR /&gt;# cat ./zappvmirrors&lt;BR /&gt;#!/usr/bin/sh&lt;BR /&gt;typeset VG=vg42&lt;BR /&gt;for PV in c32t0d2 c32t0d4 c32t0d6 c32t1d0 \&lt;BR /&gt;          c32t1d2 c32t1d4 c32t0d3 c32t0d5 \&lt;BR /&gt;          c32t0d7 c32t1d1 c32t1d3 c32t1d5&lt;BR /&gt;do&lt;BR /&gt;    for LV in lvol1 lvol2 lvol3&lt;BR /&gt;    do&lt;BR /&gt;        pvdisplay -v /dev/dsk/${PV} 2&amp;gt; /dev/null | grep -q /dev/${VG}/${LV} &amp;amp;&amp;amp; \&lt;BR /&gt;            lvreduce -m 0 /dev/${VG}/${LV} /dev/dsk/${PV} || echo "skipped ${PV}:${LV}"&lt;BR /&gt;    done&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Mon, 20 Apr 2009 15:48:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404105#M560978</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-04-20T15:48:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using LVM mirroring to migrate from array to array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404106#M560979</link>
      <description>Shalom,&lt;BR /&gt;&lt;BR /&gt;This plan absolutely can work.&lt;BR /&gt;&lt;BR /&gt;Its just a matter of using lvextend -m 0 and then -m 1 to reduce the mirrors and create new mirrors on the new disk array.&lt;BR /&gt;&lt;BR /&gt;Note: EVA type arrays come with management tools that can do the job more quickly than mirror/ux which is the tool you are using with lvextend.&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Mon, 20 Apr 2009 16:35:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404106#M560979</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2009-04-20T16:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using LVM mirroring to migrate from array to array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404107#M560980</link>
      <description>James.  Your script did the trick.  Thanks for everyone's help!</description>
      <pubDate>Mon, 20 Apr 2009 17:43:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404107#M560980</guid>
      <dc:creator>No idea what I'm doing</dc:creator>
      <dc:date>2009-04-20T17:43:38Z</dc:date>
    </item>
    <item>
      <title>Re: Using LVM mirroring to migrate from array to array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404108#M560981</link>
      <description>&lt;BR /&gt;Why did you not just add the new XP luns to the volume group and then just &lt;BR /&gt;&lt;BR /&gt;pvmove /dev/dsk/olddisk&lt;BR /&gt;vgreduce /dev/vgXXX /dev/dsk/olddisk</description>
      <pubDate>Tue, 21 Apr 2009 00:21:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404108#M560981</guid>
      <dc:creator>Emil Velez</dc:creator>
      <dc:date>2009-04-21T00:21:26Z</dc:date>
    </item>
    <item>
      <title>Re: Using LVM mirroring to migrate from array to array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404109#M560982</link>
      <description>As an answer to Emil's suggestion: pvmove is a glacially slow command and very prone to corrupting data, should something happen to the process performing the pvmove. &lt;BR /&gt;&lt;BR /&gt;My choice of utilities would be vxdump and vxrestore which are much faster and they do not explicitly destroy the source data as pvmove does. But looks like Mirror-UX worked well for the person who asked the question.</description>
      <pubDate>Tue, 21 Apr 2009 12:50:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404109#M560982</guid>
      <dc:creator>Mel Burslan</dc:creator>
      <dc:date>2009-04-21T12:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Using LVM mirroring to migrate from array to array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404110#M560983</link>
      <description>IMHO the problem was that the LVOLs are using Allocation PVG-strict/distributed, this means each LVOL is on each disk. For lvreduce the mirror you must specify all involved PVs (all of the PVG).</description>
      <pubDate>Tue, 21 Apr 2009 16:33:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404110#M560983</guid>
      <dc:creator>Torsten.</dc:creator>
      <dc:date>2009-04-21T16:33:08Z</dc:date>
    </item>
    <item>
      <title>Re: Using LVM mirroring to migrate from array to array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404111#M560984</link>
      <description>I am still having much difficulty reducing out these disks from the logical volume.  Here is my problem:&lt;BR /&gt;&lt;BR /&gt;Jim, I had been using your script to attempt this.  I am essentially trying to run through each logical volume(lvol1-lvol11) and reduce out each of the c4t0d&lt;X&gt; devices.  After the first device is reduced(/dev/dsk/c4t0d0), the mirror is broken and the /dev/dsk/c12t0d1 disk device slides into the spot where /dev/dsk/c4t0d0 was.  So it goes from this:&lt;BR /&gt;&lt;BR /&gt;--- Logical volumes ---&lt;BR /&gt;LV Name                     /dev/vg20/lvol1&lt;BR /&gt;VG Name                     /dev/vg20&lt;BR /&gt;LV Permission               read/write&lt;BR /&gt;LV Status                   available/syncd&lt;BR /&gt;Mirror copies               1&lt;BR /&gt;Consistency Recovery        MWC&lt;BR /&gt;Schedule                    parallel&lt;BR /&gt;LV Size (Mbytes)            7000&lt;BR /&gt;Current LE                  875&lt;BR /&gt;Allocated PE                1750&lt;BR /&gt;Stripes                     0&lt;BR /&gt;Stripe Size (Kbytes)        0&lt;BR /&gt;Bad block                   NONE&lt;BR /&gt;Allocation                  PVG-strict/distributed&lt;BR /&gt;IO Timeout (Seconds)        default&lt;BR /&gt;&lt;BR /&gt;   --- Distribution of logical volume ---&lt;BR /&gt;   PV Name            LE on PV  PE on PV&lt;BR /&gt;   /dev/dsk/c4t0d1    175       175&lt;BR /&gt;   /dev/dsk/c4t0d2    175       175&lt;BR /&gt;   /dev/dsk/c4t0d3    175       175&lt;BR /&gt;   /dev/dsk/c4t0d7    175       175&lt;BR /&gt;   /dev/dsk/c12t0d1   175       175&lt;BR /&gt;   /dev/dsk/c12t0d3   175       175&lt;BR /&gt;   /dev/dsk/c12t0d5   175       175&lt;BR /&gt;   /dev/dsk/c12t0d2   175       175&lt;BR /&gt;   /dev/dsk/c12t0d4   175       175&lt;BR /&gt;   /dev/dsk/c4t0d0    175       175&lt;BR /&gt;&lt;BR /&gt;   --- Logical extents ---&lt;BR /&gt;   LE    PV1                PE1   Status 1 PV2                PE2   Status 2&lt;BR /&gt;   00000 /dev/dsk/c4t0d0    00000 current  /dev/dsk/c12t0d1   00000 current&lt;BR /&gt;   00001 /dev/dsk/c4t0d1    00000 current  /dev/dsk/c12t0d3   00000 current&lt;BR /&gt;   00002 /dev/dsk/c4t0d2    00000 current  /dev/dsk/c12t0d5   00000 current&lt;BR /&gt;   00003 /dev/dsk/c4t0d3    00000 current  /dev/dsk/c12t0d2   00000 current&lt;BR /&gt;   00004 /dev/dsk/c4t0d7    00000 current  /dev/dsk/c12t0d4   00000 current&lt;BR /&gt;   00005 /dev/dsk/c4t0d0    00001 current  /dev/dsk/c12t0d1   00001 current&lt;BR /&gt;   00006 /dev/dsk/c4t0d1    00001 current  /dev/dsk/c12t0d3   00001 current&lt;BR /&gt;   00007 /dev/dsk/c4t0d2    00001 current  /dev/dsk/c12t0d5   00001 current&lt;BR /&gt;   00008 /dev/dsk/c4t0d3    00001 current  /dev/dsk/c12t0d2   00001 current&lt;BR /&gt;   00009 /dev/dsk/c4t0d7    00001 current  /dev/dsk/c12t0d4   00001 current&lt;BR /&gt;   00010 /dev/dsk/c4t0d0    00002 current  /dev/dsk/c12t0d1   00002 current&lt;BR /&gt;   00011 /dev/dsk/c4t0d1    00002 current  /dev/dsk/c12t0d3   00002 current&lt;BR /&gt;   00012 /dev/dsk/c4t0d2    00002 current  /dev/dsk/c12t0d5   00002 current&lt;BR /&gt;   00013 /dev/dsk/c4t0d3    00002 current  /dev/dsk/c12t0d2   00002 current&lt;BR /&gt;   00014 /dev/dsk/c4t0d7    00002 current  /dev/dsk/c12t0d4   00002 current&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;to this:&lt;BR /&gt;&lt;BR /&gt;root@rachp23:/root# lvdisplay -v /dev/vg20/lvol1 | more&lt;BR /&gt;--- Logical volumes ---&lt;BR /&gt;LV Name                     /dev/vg20/lvol1&lt;BR /&gt;VG Name                     /dev/vg20&lt;BR /&gt;LV Permission               read/write&lt;BR /&gt;LV Status                   available/syncd&lt;BR /&gt;Mirror copies               0&lt;BR /&gt;Consistency Recovery        MWC&lt;BR /&gt;Schedule                    parallel&lt;BR /&gt;LV Size (Mbytes)            7000&lt;BR /&gt;Current LE                  875&lt;BR /&gt;Allocated PE                875&lt;BR /&gt;Stripes                     0&lt;BR /&gt;Stripe Size (Kbytes)        0&lt;BR /&gt;Bad block                   NONE&lt;BR /&gt;Allocation                  PVG-strict/distributed&lt;BR /&gt;IO Timeout (Seconds)        default&lt;BR /&gt;&lt;BR /&gt;   --- Distribution of logical volume ---&lt;BR /&gt;   PV Name            LE on PV  PE on PV&lt;BR /&gt;   /dev/dsk/c4t0d1    175       175&lt;BR /&gt;   /dev/dsk/c4t0d2    175       175&lt;BR /&gt;   /dev/dsk/c4t0d3    175       175&lt;BR /&gt;   /dev/dsk/c4t0d7    175       175&lt;BR /&gt;   /dev/dsk/c12t0d1   175       175&lt;BR /&gt;&lt;BR /&gt;   --- Logical extents ---&lt;BR /&gt;   LE    PV1                PE1   Status 1&lt;BR /&gt;   00000 /dev/dsk/c12t0d1   00000 current&lt;BR /&gt;   00001 /dev/dsk/c4t0d1    00000 current&lt;BR /&gt;   00002 /dev/dsk/c4t0d2    00000 current&lt;BR /&gt;   00003 /dev/dsk/c4t0d3    00000 current&lt;BR /&gt;   00004 /dev/dsk/c4t0d7    00000 current&lt;BR /&gt;   00005 /dev/dsk/c12t0d1   00001 current&lt;BR /&gt;   00006 /dev/dsk/c4t0d1    00001 current&lt;BR /&gt;   00007 /dev/dsk/c4t0d2    00001 current&lt;BR /&gt;   00008 /dev/dsk/c4t0d3    00001 current&lt;BR /&gt;   00009 /dev/dsk/c4t0d7    00001 current&lt;BR /&gt;   00010 /dev/dsk/c12t0d1   00002 current&lt;BR /&gt;   00011 /dev/dsk/c4t0d1    00002 current&lt;BR /&gt;   00012 /dev/dsk/c4t0d2    00002 current&lt;BR /&gt;   00013 /dev/dsk/c4t0d3    00002 current&lt;BR /&gt;   00014 /dev/dsk/c4t0d7    00002 current&lt;BR /&gt;   00015 /dev/dsk/c12t0d1   00003 current&lt;BR /&gt;   00016 /dev/dsk/c4t0d1    00003 current&lt;BR /&gt;   00017 /dev/dsk/c4t0d2    00003 current&lt;BR /&gt;   00018 /dev/dsk/c4t0d3    00003 current&lt;BR /&gt;   00019 /dev/dsk/c4t0d7    00003 current&lt;BR /&gt;   00020 /dev/dsk/c12t0d1   00004 current&lt;BR /&gt;   00021 /dev/dsk/c4t0d1    00004 current&lt;BR /&gt;   00022 /dev/dsk/c4t0d2    00004 current&lt;BR /&gt;   00023 /dev/dsk/c4t0d3    00004 current&lt;BR /&gt;   00024 /dev/dsk/c4t0d7    00004 current&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;At that point, I'm in a bad spot because I now have extents on both the old array and the new array.  Not extents on just one or other other.  I end up having to pvmove /dev/dsk/c12t0d1(new array) back to /c4t0d0(old array).  Then I have to remirror them to get the data back on the new array.&lt;BR /&gt;&lt;BR /&gt;So I'm still stuck on how to break the mirror properly so that I can reduce out the old array disks.  This would be ten times easier if lvreduce would take a physical volume group as an option.&lt;/X&gt;</description>
      <pubDate>Wed, 22 Apr 2009 19:37:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404111#M560984</guid>
      <dc:creator>No idea what I'm doing</dc:creator>
      <dc:date>2009-04-22T19:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using LVM mirroring to migrate from array to array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404112#M560985</link>
      <description>You are about to use pvmove to move the "c12" lun back to the "c4" lun. Why not use pvmove to move the "c4" luns forward to the other "c12' luns? No mirroring is needed.</description>
      <pubDate>Wed, 22 Apr 2009 19:48:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404112#M560985</guid>
      <dc:creator>TTr</dc:creator>
      <dc:date>2009-04-22T19:48:18Z</dc:date>
    </item>
    <item>
      <title>Re: Using LVM mirroring to migrate from array to array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404113#M560986</link>
      <description>Would the following work:&lt;BR /&gt;&lt;BR /&gt;# lvreduce -m 0 /dev/vg20/lvol1 /dev/dsk/c4t0d0 /dev/dsk/c4t0d1 /dev/dsk/c4t0d2 /dev/dsk/c4t0d3 /dev/dsk/c4t0d7&lt;BR /&gt;&lt;BR /&gt;where you list ALL disks you want to remove from the mirror on the command line.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Apr 2009 19:53:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404113#M560986</guid>
      <dc:creator>Patrick Wallek</dc:creator>
      <dc:date>2009-04-22T19:53:36Z</dc:date>
    </item>
    <item>
      <title>Re: Using LVM mirroring to migrate from array to array</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404114#M560987</link>
      <description>Yes!  Thank you, Patrick.  That was what I needed.  I wasn't putting all of the PVs in the one lvreduce command.  I didn't pay enough attention to the ellipses after PhysicalVolumePath in the lvreduce man page.&lt;BR /&gt;&lt;BR /&gt;This is the script I'm now using to handle this.&lt;BR /&gt;&lt;BR /&gt;# FILE should contain all the primary links to the disks in the VG&lt;BR /&gt;# FILE2 should contain both the primary and alternate links&lt;BR /&gt;typeset VG=vg20&lt;BR /&gt;# FILE should contain only the primary links&lt;BR /&gt;FILE=/tmp/newdisks&lt;BR /&gt;# FILE2 should contain both the primary and alternate links&lt;BR /&gt;FILE2=/tmp/newdisks2&lt;BR /&gt;for LV in 3 4 5 6 7 8 9 10 11&lt;BR /&gt; do&lt;BR /&gt;  echo "Breaking mirrors, lvreducing PVs..."&lt;BR /&gt;  lvreduce -m 0 /dev/${VG}/lvol${LV} $(cat ${FILE})&lt;BR /&gt; done&lt;BR /&gt;echo "VGreducing the PVs from $VG..."&lt;BR /&gt;vgreduce $VG $(cat ${FILE2})&lt;BR /&gt;</description>
      <pubDate>Wed, 22 Apr 2009 20:09:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/using-lvm-mirroring-to-migrate-from-array-to-array/m-p/4404114#M560987</guid>
      <dc:creator>No idea what I'm doing</dc:creator>
      <dc:date>2009-04-22T20:09:23Z</dc:date>
    </item>
  </channel>
</rss>

