<?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: two mirror copies in the same command in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500439#M556418</link>
    <description>JRF thanks for this fast response&lt;BR /&gt;&lt;BR /&gt;I have one existing lvol, i want to mirror 2 times, first copie on the first new LUN and second copie on the second  new LUN?&lt;BR /&gt;Is the command &lt;BR /&gt;lvextend -m 2 /dev/vgxx/lvol /dev/dsk/c0t0d3 /dev/dsk/c0t0d4 will insure me that all copies are on different disks ? or do I have to play with LV or VG attribute ?&lt;BR /&gt;&lt;BR /&gt;Re- thanks in advance&lt;BR /&gt;&lt;BR /&gt;pat</description>
    <pubDate>Fri, 18 Sep 2009 18:55:32 GMT</pubDate>
    <dc:creator>RUET</dc:creator>
    <dc:date>2009-09-18T18:55:32Z</dc:date>
    <item>
      <title>two mirror copies in the same command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500437#M556416</link>
      <description>Hi guys&lt;BR /&gt;I'm adding two big LUN to my existing vg, to make some mirror copies. The actual VG has one big LUN at the moment.&lt;BR /&gt;&lt;BR /&gt;Is there is a way to build the two mirros in the same command , by example, starting from this single LUN vg, and running the lvextend -m 2 on the lvol ?&lt;BR /&gt;&lt;BR /&gt;My goal is if possible to avoid the lvextend -m 1 and then lvextend -m 2 because of I don't have a big time to recreate the mirror copies ..&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;Pat</description>
      <pubDate>Fri, 18 Sep 2009 18:45:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500437#M556416</guid>
      <dc:creator>RUET</dc:creator>
      <dc:date>2009-09-18T18:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: two mirror copies in the same command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500438#M556417</link>
      <description>Hi Pat:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; Is there is a way to build the two mirros in the same command , by example, starting from this single LUN vg, and running the lvextend -m 2 on the lvol ?&lt;BR /&gt;&lt;BR /&gt;Yes, do, either:&lt;BR /&gt;&lt;BR /&gt;# lvextend -m 2 /dev/vgNN/lvolX&lt;BR /&gt;&lt;BR /&gt;...or specifically specify the volumes like:&lt;BR /&gt;&lt;BR /&gt;# lvextend -m 2 /dev/vgNN/lvolX /dev/dsk/cXtYdZ /dev/dsk/cXXtYYdZZ&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 18 Sep 2009 18:50:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500438#M556417</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-09-18T18:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: two mirror copies in the same command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500439#M556418</link>
      <description>JRF thanks for this fast response&lt;BR /&gt;&lt;BR /&gt;I have one existing lvol, i want to mirror 2 times, first copie on the first new LUN and second copie on the second  new LUN?&lt;BR /&gt;Is the command &lt;BR /&gt;lvextend -m 2 /dev/vgxx/lvol /dev/dsk/c0t0d3 /dev/dsk/c0t0d4 will insure me that all copies are on different disks ? or do I have to play with LV or VG attribute ?&lt;BR /&gt;&lt;BR /&gt;Re- thanks in advance&lt;BR /&gt;&lt;BR /&gt;pat</description>
      <pubDate>Fri, 18 Sep 2009 18:55:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500439#M556418</guid>
      <dc:creator>RUET</dc:creator>
      <dc:date>2009-09-18T18:55:32Z</dc:date>
    </item>
    <item>
      <title>Re: two mirror copies in the same command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500440#M556419</link>
      <description>Hi (again) Pat:&lt;BR /&gt;&lt;BR /&gt;By default, when you did your 'lvcreate' the allocation policy was set to 'strict'.  This means that mirrored copies cannot share a common physical volume.  You can verify the policy with a simple 'lvdisplay'.  Hence either command I showed should work equally well.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Fri, 18 Sep 2009 19:08:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500440#M556419</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-09-18T19:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: two mirror copies in the same command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500441#M556420</link>
      <description>Great&lt;BR /&gt;I have now to check that one lvextend -m 2 is faster than two sequential lvextend -m 1 ...&lt;BR /&gt;&lt;BR /&gt;many thankks jfr&lt;BR /&gt;&lt;BR /&gt;pat</description>
      <pubDate>Fri, 18 Sep 2009 19:10:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500441#M556420</guid>
      <dc:creator>RUET</dc:creator>
      <dc:date>2009-09-18T19:10:20Z</dc:date>
    </item>
    <item>
      <title>Re: two mirror copies in the same command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500442#M556421</link>
      <description>And one last question&lt;BR /&gt;If I do a mirror to a new LUN with a specific path, if I change the path later is the mirror still OK, or is the mirror broken ?&lt;BR /&gt;</description>
      <pubDate>Sat, 19 Sep 2009 10:26:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500442#M556421</guid>
      <dc:creator>RUET</dc:creator>
      <dc:date>2009-09-19T10:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: two mirror copies in the same command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500443#M556422</link>
      <description>Hi (again) Pat:&lt;BR /&gt;&lt;BR /&gt;&amp;gt; If I do a mirror to a new LUN with a specific path, if I change the path later is the mirror still OK, or is the mirror broken ?&lt;BR /&gt;&lt;BR /&gt;First, you can't have more than 2-copies (3-sets) of a logical volumes extents.&lt;BR /&gt;&lt;BR /&gt;If you want to eliminate mirrored extents from one physical volume and establish them on another physical volume, you 'lvreduce'  the mirror on the physical volume you no longer want used, deallocating (freeing) its physical extents; and then you 'lvextend' new mirrored extents on the new physical volume.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sat, 19 Sep 2009 13:12:26 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500443#M556422</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-09-19T13:12:26Z</dc:date>
    </item>
    <item>
      <title>Re: two mirror copies in the same command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500444#M556423</link>
      <description>Hi (again) Pat:&lt;BR /&gt;&lt;BR /&gt;One more comment.  If you are really paranoid, and have 1-mirror (2-copies of a logical volume) and you want to move a mirror from an old physical volume to a new one, you can _add_ another mirror to the _new_ physical volume ('lvextend -m 2') and then 'lvreduce' the extents on the physical volume you no longer want.  In this scenario and fashion, you always maintain two copies of your data at all times.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...</description>
      <pubDate>Sat, 19 Sep 2009 15:54:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500444#M556423</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2009-09-19T15:54:04Z</dc:date>
    </item>
    <item>
      <title>Re: two mirror copies in the same command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500445#M556424</link>
      <description>Hi again JRF ..&lt;BR /&gt;thanks for all the comments, I appreciate them.&lt;BR /&gt;&lt;BR /&gt;I"'m not paranoid, maybe my customer ..&lt;BR /&gt;My last question was may be not clear ..&lt;BR /&gt;my idea, is, I have a lvol on an old LUN&lt;BR /&gt;I made a mirror to a new LUN, but because of not today complete SAN architecture, i will move later this new LUN owning the mirror to a new FC card, so a new LUN PATH.. &lt;BR /&gt;&lt;BR /&gt;If I extend the VG with this new path , is my this new path will be seen owning correctly the mirror, or do I have to reduce mirror to 0, reduce the VG with the old path and extend the VG with new path and redo the mirror&lt;BR /&gt;&lt;BR /&gt;thanks again ...</description>
      <pubDate>Sat, 19 Sep 2009 17:49:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500445#M556424</guid>
      <dc:creator>RUET</dc:creator>
      <dc:date>2009-09-19T17:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: two mirror copies in the same command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500446#M556425</link>
      <description>Hi Pat ,&lt;BR /&gt;&lt;BR /&gt;If you can arrange a downtime for that VG ,I would go with a Vgexport import process as it is less time consuming.&lt;BR /&gt;&lt;BR /&gt;Steps.&lt;BR /&gt;&lt;BR /&gt;#Note down vg minror and major number&lt;BR /&gt;ll /dev/&lt;VGNAME&gt;/group&lt;BR /&gt;create map files for the vg( vgexport in preview mode)&lt;BR /&gt;&lt;BR /&gt;#vgexport -p -s -v -m /tmp/&lt;VGNAME&gt;.map    /dev/vgname&lt;BR /&gt;&lt;BR /&gt;unmount all fs using that volume group&lt;BR /&gt;&lt;BR /&gt;deactivate vg &lt;BR /&gt;#vgchange -a n &lt;VGNAME&gt;&lt;BR /&gt;&lt;BR /&gt;export vg from system&lt;BR /&gt;&lt;BR /&gt;#vgexport /dev/&lt;VGNAME&gt;&lt;BR /&gt;&lt;BR /&gt;present the lun through new Fc and do ioscan,insf to create device file for new path&lt;BR /&gt;&lt;BR /&gt;create vg directory and group special file with mknod command&lt;BR /&gt;&lt;BR /&gt;import vg with map file (-s option allows lvm to  create vg by searching PV ID in each disk)&lt;BR /&gt;#vgimport -s -v -m /tmp/&lt;VGNAME&gt;.map  /dev&lt;VGNAME&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;If it is 11iv3 with pdsf device attched to Vg ,you dont have to worry about all these..as lvm maps disk with LUN wwn number.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&amp;gt;&amp;gt;If I extend the VG with this new path , is my this new path will be seen owning correctly the mirror, or do I have to reduce mirror to 0, reduce the VG with the old path and extend the VG with new path and redo the mirror&lt;BR /&gt;&lt;BR /&gt;If you are moving only one LUN ,then you can reduce mirror to one from two and extend it later to 2 with new path ..&lt;BR /&gt;&lt;BR /&gt;#lvreduce -m 1 &lt;LVNAME&gt; &lt;DISK path="" you="" are="" going="" to="" remove=""&gt;&lt;BR /&gt;&lt;BR /&gt;then reduce it from vg if there no lv created on that disk&lt;BR /&gt;vgreduce vgname&amp;gt; &lt;DISK path=""&gt;&lt;BR /&gt;&lt;BR /&gt;after san activity&lt;BR /&gt;add the disk to vg &lt;BR /&gt;then extend mirror&lt;BR /&gt;#lvextend -m 2 &lt;LVNAME&gt; &lt;NEW disk="" path=""&gt;&lt;BR /&gt;&lt;BR /&gt;Regards !&lt;BR /&gt;Johnson&lt;BR /&gt;&lt;/NEW&gt;&lt;/LVNAME&gt;&lt;/DISK&gt;&lt;/DISK&gt;&lt;/LVNAME&gt;&lt;/VGNAME&gt;&lt;/VGNAME&gt;&lt;/VGNAME&gt;&lt;/VGNAME&gt;&lt;/VGNAME&gt;&lt;/VGNAME&gt;</description>
      <pubDate>Mon, 16 Nov 2009 04:47:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500446#M556425</guid>
      <dc:creator>johnsonpk</dc:creator>
      <dc:date>2009-11-16T04:47:25Z</dc:date>
    </item>
    <item>
      <title>Re: two mirror copies in the same command</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500447#M556426</link>
      <description>If you do not have data on the original LUN, there is a very fast method for mirroring. Create the LUN without a size (it will show as size 0). Then extend the LUN for 1 or 2 mirrors. This will complete instantly because the data on the primary is 0 length. Now extend the LUN to the desired size. The volume will now mirror the data as it is restored to the LUN -- no separate mirroring step.</description>
      <pubDate>Mon, 16 Nov 2009 13:22:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/two-mirror-copies-in-the-same-command/m-p/4500447#M556426</guid>
      <dc:creator>Bill Hassell</dc:creator>
      <dc:date>2009-11-16T13:22:18Z</dc:date>
    </item>
  </channel>
</rss>

