<?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: mirroring VG in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534530#M222102</link>
    <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Let say I have four disk, I need to create one VG with three LV.  The disk size is 146G.&lt;BR /&gt;&lt;BR /&gt;I need to create the following LV and mirroring&lt;BR /&gt;&lt;BR /&gt;DataLV 80G&lt;BR /&gt;DataLV2 30G&lt;BR /&gt;DataLV3 rest of space.&lt;BR /&gt;&lt;BR /&gt;I think I need to create the LV on two disks and mirrors to another two disk.&lt;BR /&gt;&lt;BR /&gt;How could I accomplish this</description>
    <pubDate>Thu, 28 Apr 2005 22:48:59 GMT</pubDate>
    <dc:creator>kholikt</dc:creator>
    <dc:date>2005-04-28T22:48:59Z</dc:date>
    <item>
      <title>mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534525#M222097</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;What's the proper steps to mirror a non root vg volume group?  How to test out the mirror disk after setup?</description>
      <pubDate>Thu, 28 Apr 2005 22:00:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534525#M222097</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2005-04-28T22:00:45Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534526#M222098</link>
      <description>use vgdisplay &lt;VOLUME grup="" name=""&gt;&lt;BR /&gt;and look for free PE to verify enough space is available in the vg for mirrioring.&lt;BR /&gt;&lt;BR /&gt;Then use &lt;BR /&gt;lvextend -m 1 &lt;LOGICAL volume="" to="" be="" mirrored=""&gt; &lt;MIRROR copy="" disk=""&gt;&lt;BR /&gt;for mirroring.&lt;BR /&gt;&lt;BR /&gt;Use lvdisplay -v &lt;LOGICAL volume=""&gt; and verify nothig is shown as stale.This confirm mirror is fine.&lt;BR /&gt;&lt;BR /&gt;#vgdisplay -v /dev/vg01&lt;BR /&gt;#lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c0t5d0  (assuming this disk is already added to vg01)&lt;BR /&gt;&lt;BR /&gt;#lvdisplay -v /dev/vg01/lvol1&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;You can go through man pages for details of the command.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sudeesh&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/LOGICAL&gt;&lt;/MIRROR&gt;&lt;/LOGICAL&gt;&lt;/VOLUME&gt;</description>
      <pubDate>Thu, 28 Apr 2005 22:20:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534526#M222098</guid>
      <dc:creator>Sudeesh</dc:creator>
      <dc:date>2005-04-28T22:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534527#M222099</link>
      <description>in this case if the disk failed, how can I switch to the mirror.  Is this auto?</description>
      <pubDate>Thu, 28 Apr 2005 22:33:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534527#M222099</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2005-04-28T22:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534528#M222100</link>
      <description>How to test:&lt;BR /&gt;pull or disable the primary drive and see if access remains online.&lt;BR /&gt;&lt;BR /&gt;Then re-enable, allow for resynch and test the reverse.&lt;BR /&gt;&lt;BR /&gt;Procedure for root:&lt;BR /&gt;pvcreate -B /dev/rdsk/c1t0d0 #use real disk&lt;BR /&gt;&lt;BR /&gt;mkboot -l /dev/rdsk/c1t0d0&lt;BR /&gt;mkboot -a "hpux -lq (;0)/stand/vmunix" /dev/rdsk/c1t0d0 # use real disk&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;# mkboot -b /usr/sbin/diag/lif/updatediaglif -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?&lt;BR /&gt;&lt;BR /&gt;If you are running 64-bit OS:&lt;BR /&gt;&lt;BR /&gt;# mkboot -b /usr/sbin/diag/lif/updatediaglif2 -p ISL -p AUTO -p HPUX -p PAD -p LABEL /dev/rdsk/c?t?d?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0&lt;BR /&gt;&lt;BR /&gt;# real disk. repeat for other lvols&lt;BR /&gt;&lt;BR /&gt;lvlnboot -r /dev/vg00/lvol3 # root fs /&lt;BR /&gt;lvlnboot -s /dev/vg00/lvol2 #swap&lt;BR /&gt;lvlnboot -d /dev/vg00/lvol2 #swap/dump&lt;BR /&gt;lvlnboot -b /dev/vg00/lvol1&lt;BR /&gt;lvlnboot -R&lt;BR /&gt;lvlnboot -v&lt;BR /&gt;setboot&lt;BR /&gt;setboot -a 52.1.0 # second disk&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Procedure for non-root&lt;BR /&gt;pvcreate -B /dev/rdsk/c1t0d0 #use real disk&lt;BR /&gt;&lt;BR /&gt;vgextend /dev/vg00 /dev/dsk/c1t0d0 # same thing&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0&lt;BR /&gt;&lt;BR /&gt;# real disk. repeat for other lvols&lt;BR /&gt;&lt;BR /&gt;SEP</description>
      <pubDate>Thu, 28 Apr 2005 22:33:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534528#M222100</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2005-04-28T22:33:30Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534529#M222101</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;You may not have to use the -B option to create a PV for a non root disk.&lt;BR /&gt;&lt;BR /&gt;pvcreate -f /dev/rdsk/c1t0d0 #use real disk&lt;BR /&gt;&lt;BR /&gt;vgextend /dev/vg01 /dev/dsk/c1t0d0 # same thing&lt;BR /&gt;&lt;BR /&gt;lvcreate /dev/vg01&lt;BR /&gt;lvchange -s /dev/vg01/lvol1&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t0d0&lt;BR /&gt;&lt;BR /&gt;# real disk. repeat for other lvols&lt;BR /&gt;&lt;BR /&gt;I also recommend to change the allocation policy to strict so that the mirror copies reside on different PVs.  This has to be done before creating the mirror.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Naveej</description>
      <pubDate>Thu, 28 Apr 2005 22:45:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534529#M222101</guid>
      <dc:creator>Naveej.K.A</dc:creator>
      <dc:date>2005-04-28T22:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534530#M222102</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Let say I have four disk, I need to create one VG with three LV.  The disk size is 146G.&lt;BR /&gt;&lt;BR /&gt;I need to create the following LV and mirroring&lt;BR /&gt;&lt;BR /&gt;DataLV 80G&lt;BR /&gt;DataLV2 30G&lt;BR /&gt;DataLV3 rest of space.&lt;BR /&gt;&lt;BR /&gt;I think I need to create the LV on two disks and mirrors to another two disk.&lt;BR /&gt;&lt;BR /&gt;How could I accomplish this</description>
      <pubDate>Thu, 28 Apr 2005 22:48:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534530#M222102</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2005-04-28T22:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534531#M222103</link>
      <description>If one of the disks fail system will automatically switch to mirror copy. No manual intervention required.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Apr 2005 22:49:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534531#M222103</guid>
      <dc:creator>Sudeesh</dc:creator>
      <dc:date>2005-04-28T22:49:44Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534532#M222104</link>
      <description>Oops sorry the physical disk size is 72GB not 146GB</description>
      <pubDate>Thu, 28 Apr 2005 22:51:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534532#M222104</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2005-04-28T22:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534533#M222105</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;With 4 x 72 GB hard disk how can I accomplish the following LV.&lt;BR /&gt;&lt;BR /&gt;DATA1   ---  30GB&lt;BR /&gt;DATA2  -- 80GB&lt;BR /&gt;DATA3 â   Rest of the space&lt;BR /&gt;&lt;BR /&gt;And I need to mirror to the other two di</description>
      <pubDate>Thu, 28 Apr 2005 22:53:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534533#M222105</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2005-04-28T22:53:01Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534534#M222106</link>
      <description>First add two disks to vg01&lt;BR /&gt;c0t1d0&lt;BR /&gt;c0t2d0&lt;BR /&gt;&lt;BR /&gt;#lvreate -L 81920 -n /dev/vg01/Data1 /dev/vg01&lt;BR /&gt;#lvcreate -L 30720 -n /dev/vg01/Data2 /dev/vg01&lt;BR /&gt;#lvcreate -L &lt;FREE space="" available="" in="" mb=""&gt; -n /dev/vg01/Data3 /dev/vg01&lt;BR /&gt;&lt;BR /&gt;u can execute newfs now...&lt;BR /&gt;add next two disks to vg01&lt;BR /&gt;c0t4d0&lt;BR /&gt;c0t5d0&lt;BR /&gt;&lt;BR /&gt;#lvextend -m 1 /dev/vg01/Data1 &lt;BR /&gt;#lvextend -m 1 /dev/vg01/Data2 &lt;BR /&gt;#lvextend -m 1 /dev/vg01/Data3 &lt;BR /&gt;&lt;BR /&gt;u r done&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Sudeesh&lt;/FREE&gt;</description>
      <pubDate>Thu, 28 Apr 2005 23:10:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534534#M222106</guid>
      <dc:creator>Sudeesh</dc:creator>
      <dc:date>2005-04-28T23:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534535#M222107</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;pvcreate all Physical volumes (use raw device files)&lt;BR /&gt;&lt;BR /&gt;say PV1, PV2, PV3, PV4&lt;BR /&gt;&lt;BR /&gt;mkdir /dev/vgdata&lt;BR /&gt;mknod /dev/vgdata/group c 64 0x030000&lt;BR /&gt;(check the conflict of minor numbers)&lt;BR /&gt;&lt;BR /&gt;vgcreate vgdata PV1 PV2 PV3 PV4&lt;BR /&gt;&lt;BR /&gt;lvcreate -n data1 -L 30000 /dev/vgdata&lt;BR /&gt;lvchange -s y -C y /dev/vgdata/data1&lt;BR /&gt;lvextend -m 1 /dev/vgdata/data1 PV2&lt;BR /&gt;&lt;BR /&gt;lvcreate -n data2 -L 80000 /dev/vgdata&lt;BR /&gt;lvchange -s y -C y/dev/vgdata/data2&lt;BR /&gt;lvextend -m 1 /dev/vgdata/data2 PV3&lt;BR /&gt;&lt;BR /&gt;lvcreate -n data3 -L 34000 /dev/vgdata&lt;BR /&gt;lvextend -m 1 /dev/vgdata/data3 PV4&lt;BR /&gt;&lt;BR /&gt;In any case, one of the LV's mirror copy or part of mirror copy will reside on the same PV.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Naveej&lt;BR /&gt;</description>
      <pubDate>Thu, 28 Apr 2005 23:11:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534535#M222107</guid>
      <dc:creator>Naveej.K.A</dc:creator>
      <dc:date>2005-04-28T23:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534536#M222108</link>
      <description>Steps I have given will ensure Mirror copies are created on diffrent PVs.</description>
      <pubDate>Thu, 28 Apr 2005 23:22:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534536#M222108</guid>
      <dc:creator>Sudeesh</dc:creator>
      <dc:date>2005-04-28T23:22:13Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534537#M222109</link>
      <description>pvcreate -f /dev/rdsk/c3t2t0&lt;BR /&gt;pvcreate -f /dev/rdsk/c3t2t1&lt;BR /&gt;mkdir /dev/vg09&lt;BR /&gt;mknod /dev/vg09/group c 64 0x090000&lt;BR /&gt;vgcreate vgd09 /dev/dsk/c3t2t0 /dev/dsk/c3t2t1&lt;BR /&gt;#####lvcreate&lt;BR /&gt;lvcreate -n lvol001 /dev/vg09&lt;BR /&gt;#mirror to /dev/dsk/c3t2t1&lt;BR /&gt;lvextend -m 1 /dev/vgdata/data1 /dev/dsk/c3t2t1&lt;BR /&gt;&lt;BR /&gt;check mirror by:&lt;BR /&gt;#[server1:/] vgdisplay -v vg09</description>
      <pubDate>Fri, 29 Apr 2005 02:13:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534537#M222109</guid>
      <dc:creator>Nguyen Anh Tien</dc:creator>
      <dc:date>2005-04-29T02:13:05Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534538#M222110</link>
      <description>Any idea how long it take to complete a 40GB mirroring if there is no data in the disk</description>
      <pubDate>Fri, 29 Apr 2005 02:31:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534538#M222110</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2005-04-29T02:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534539#M222111</link>
      <description>In my case it's 10-15 mins. it's depend on CPU speed and I/O's</description>
      <pubDate>Fri, 29 Apr 2005 02:49:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534539#M222111</guid>
      <dc:creator>Ravi_8</dc:creator>
      <dc:date>2005-04-29T02:49:08Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534540#M222112</link>
      <description>but it took more than 1 hrs now</description>
      <pubDate>Fri, 29 Apr 2005 02:55:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534540#M222112</guid>
      <dc:creator>kholikt</dc:creator>
      <dc:date>2005-04-29T02:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534541#M222113</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;This document is the official way of mirroring you root and other disks:&lt;BR /&gt;&lt;A href="http://www5.itrc.hp.com/service/iv/node.do?admit=552267591+1108810758895+28353475&amp;amp;node=prodITRC/WW_Start/N1" target="_blank"&gt;http://www5.itrc.hp.com/service/iv/node.do?admit=552267591+1108810758895+28353475&amp;amp;node=prodITRC/WW_Start/N1&lt;/A&gt;|16|11&lt;BR /&gt;&lt;BR /&gt;You can use this script to see how fare the mirroring process are:&lt;BR /&gt;&lt;BR /&gt;#!/usr/bin/ksh&lt;BR /&gt;for i in /dev/vg00/lvol?&lt;BR /&gt;do&lt;BR /&gt; echo $i&lt;BR /&gt; lvdisplay -v $i | grep -i stale | wc -l&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;The script will count the stale partitions that has not been mirrored yet.</description>
      <pubDate>Fri, 29 Apr 2005 03:34:40 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534541#M222113</guid>
      <dc:creator>Jannik</dc:creator>
      <dc:date>2005-04-29T03:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring VG</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534542#M222114</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;It can take this much time. The volume of data do not effect the mirroring time as it mirrors at physical extent level i.e. one level below the data level. It has to mirror full irrespective of data in LVOLs.Allthough it is possible that mirroring will be slow if there is some application using the system. In that case I/Os from the drives will be shared between the applications and mirroring casing mirror to get less IOs and subseqentially more time.&lt;BR /&gt;&lt;BR /&gt;It is also possible if you have two different drives then mirroring will be done at the rate what is supported by the slower of the two  drives.&lt;BR /&gt;&lt;BR /&gt;A good thought here would be that you can mirror two LVOL's at almost half time and  double throughput if you have two Vg's created in your 4 disks i.e. two disks in each VG. This way you can mirror one LVOL of each VG at a time and all 4 disks will be used equally for mirroring. Whereas if you have one VG in 4 disks only two disks will be in use at a time and other 2 will be idle because of limitation of LVm that do not allow to  mirror more that one LVOL in a VG at a time.&lt;BR /&gt;&lt;BR /&gt;This anyway is not a major problem as you have to establish mirror only once. This can be of great use if you break mirrors for backup etc. frequently.&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Sat, 30 Apr 2005 00:21:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-vg/m-p/3534542#M222114</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-04-30T00:21:59Z</dc:date>
    </item>
  </channel>
</rss>

