<?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: Mirror Steps Help in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-steps-help/m-p/2809784#M637620</link>
    <description>Hi Steven:&lt;BR /&gt;&lt;BR /&gt;Always apply the low-quorum to the boot string of 'mkboot':&lt;BR /&gt;&lt;BR /&gt;# # mkboot ???a ???hpux ???lq??? /dev/rdsk/cXtYdZ&lt;BR /&gt;&lt;BR /&gt;Make sure that you mirror your logical volumes in order (at least the first three!);&lt;BR /&gt;&lt;BR /&gt;# for LV in 1 2 3 4 5 6 7 8&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; lvextend ???m 1 /dev/vg00/lvol${LV} /dev/dsk/cXtYdZ&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&lt;BR /&gt;The "acid" test for a mirrored boot disk is to boot from it.&lt;BR /&gt;&lt;BR /&gt;Following any boot, should you wish to know from which disk you booted, do:&lt;BR /&gt;&lt;BR /&gt;# echo boot_string/S|adb /stand/vmunix /dev/mem&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
    <pubDate>Thu, 19 Sep 2002 14:46:48 GMT</pubDate>
    <dc:creator>James R. Ferguson</dc:creator>
    <dc:date>2002-09-19T14:46:48Z</dc:date>
    <item>
      <title>Mirror Steps Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-steps-help/m-p/2809783#M637619</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;I would like to get this new post following the mirror readiness post, for it may be more specific to the point.&lt;BR /&gt;&lt;BR /&gt;I have got the steps from hp engineer about mirroring the existing up-and-running root (vg00), i.e. to get 2nd to mirror the root drive.    I would like to seek comments on them so that I would get thing done right.&lt;BR /&gt;&lt;BR /&gt;The followings are the steps:&lt;BR /&gt;&lt;BR /&gt;---------------------&lt;BR /&gt;&lt;BR /&gt;Mirroring the root volume group: &lt;BR /&gt;&lt;BR /&gt;1) swlist -l bundle&lt;BR /&gt;&lt;BR /&gt;This will display MirrorDisk/UX if installed on the system. If MirrorDisk/UX isn't found, then it will need to be loaded. This product **is not**  part of the standard Core-OS, It must be purchased.&lt;BR /&gt;&lt;BR /&gt;2) pvcreate -fB /dev/rdsk/c1t2d0  The -B option is used to create a bootable Physical Volume.&lt;BR /&gt;&lt;BR /&gt;3) vgextend vg00 /dev/dsk/c1t2d0   This adds the Physical Volume to the root volume group.&lt;BR /&gt;&lt;BR /&gt;4) mkboot /dev/rdsk/c1t2d0  Make sure to use the character device file when using mkboot.&lt;BR /&gt;&lt;BR /&gt;5) mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c1t2d0  ****  or  ****&lt;BR /&gt;    mkboot -a "hpux -lq" /dev/rdsk/cXtXdX    **** on both disks !!! ***&lt;BR /&gt;&lt;BR /&gt;6) lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c1t2d0 &lt;BR /&gt;&lt;BR /&gt;This command extends the mirror to the specified Physical Volume.&lt;BR /&gt;&lt;BR /&gt;**NOTE: The lvextend command must be done on all logical volumes on the primary disk. This means that lvextend has to be done on lvol1 -&amp;gt; lvolX. This also includes /dev/vg00/lvol2, which by default is primary swap. lvol1 must be the first logical volume mirrored; if it is not, then you will not be able to boot from the mirror.&lt;BR /&gt;&lt;BR /&gt;7) lvlnboot -b /dev/vg00/lvol1  Specifies the boot "/stand"  logical volume (10.20 &amp;amp; 11.0)&lt;BR /&gt;&lt;BR /&gt;8) lvlnboot -r /dev/vg00/lvol3  Specifies the root "/" logical volume.&lt;BR /&gt;&lt;BR /&gt;***NOTE: The root logical volume is /dev/vg00/lvol1 for HP-UX 10.01 &amp;amp; 10.10, and /dev/vg00/lvol3 (as in this example) is the root logical volume in 10.20 &amp;amp; 11.0. &lt;BR /&gt;&lt;BR /&gt;9) lvlnboot -s /dev/vg00/lvol2  Specifies the swap logical volume.&lt;BR /&gt;&lt;BR /&gt;To determine where the swap logical volume is located use the swapinfo command.&lt;BR /&gt;&lt;BR /&gt;10) lvlnboot -d /dev/vg00/lvol2  Specifies the dump logical volume.&lt;BR /&gt;&lt;BR /&gt;11) lvlnboot -R    Recovers any BDRA info.     &lt;BR /&gt;&lt;BR /&gt;12) lvlnboot -v    Verify boot, root, swap and dump settings.    &lt;BR /&gt;&lt;BR /&gt;13) setboot    This displays the currently set Primary and Alternate boot paths.&lt;BR /&gt;&lt;BR /&gt;14) setboot -a mirror_disk_hardware_address    Changes the Alternate Boot Path to the path of the Root Mirror.&lt;BR /&gt;&lt;BR /&gt;15) shutdown -r  now   Reboot with no grace period.&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;&lt;BR /&gt;Appreciated.&lt;BR /&gt;&lt;BR /&gt;Steven&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Sep 2002 14:37:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-steps-help/m-p/2809783#M637619</guid>
      <dc:creator>Steven Chen_1</dc:creator>
      <dc:date>2002-09-19T14:37:08Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror Steps Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-steps-help/m-p/2809784#M637620</link>
      <description>Hi Steven:&lt;BR /&gt;&lt;BR /&gt;Always apply the low-quorum to the boot string of 'mkboot':&lt;BR /&gt;&lt;BR /&gt;# # mkboot ???a ???hpux ???lq??? /dev/rdsk/cXtYdZ&lt;BR /&gt;&lt;BR /&gt;Make sure that you mirror your logical volumes in order (at least the first three!);&lt;BR /&gt;&lt;BR /&gt;# for LV in 1 2 3 4 5 6 7 8&lt;BR /&gt;&amp;gt; do&lt;BR /&gt;&amp;gt; lvextend ???m 1 /dev/vg00/lvol${LV} /dev/dsk/cXtYdZ&lt;BR /&gt;&amp;gt; done&lt;BR /&gt;&lt;BR /&gt;The "acid" test for a mirrored boot disk is to boot from it.&lt;BR /&gt;&lt;BR /&gt;Following any boot, should you wish to know from which disk you booted, do:&lt;BR /&gt;&lt;BR /&gt;# echo boot_string/S|adb /stand/vmunix /dev/mem&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Sep 2002 14:46:48 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-steps-help/m-p/2809784#M637620</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-09-19T14:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror Steps Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-steps-help/m-p/2809785#M637621</link>
      <description>My comments ..&lt;BR /&gt;step 5&lt;BR /&gt;======&lt;BR /&gt;# mkboot -a "hpux -lq" /dev/rdsk/cXtXdX&lt;BR /&gt;==&amp;gt; Yes do this on both disks because you would want both (primary and secondary) disks to escape quorum in an event of a disk failure.&lt;BR /&gt;step 6&lt;BR /&gt;======&lt;BR /&gt;Before you lvextended your LVs, double check your primary root disk ..&lt;BR /&gt;# pvdisplay -v /dev/dsk/cXtYdZ&lt;BR /&gt;and take note of the order of the LVs. Perform the lvextend mirror for each of the LV as they appear in that order.&lt;BR /&gt;&lt;BR /&gt;The rest looks good !</description>
      <pubDate>Thu, 19 Sep 2002 14:52:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-steps-help/m-p/2809785#M637621</guid>
      <dc:creator>S.K. Chan</dc:creator>
      <dc:date>2002-09-19T14:52:11Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror Steps Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-steps-help/m-p/2809786#M637622</link>
      <description>One final note. After you have rebooted off of the mirrored drive, you need not shut down and reboot off of the primary. In other words once the system is up and running, after booting off of the alternate drive, you can leave it up and running until you need to reboot again. Some people think that after booting from the alternate that you are running on that disk. This is not so, you only used the alternate to boot from and once the vg becomes active and mirroring starts there is no master or slave disk. &lt;BR /&gt;&lt;BR /&gt;This just might save you 20 minutes or so rebooting again after testing the mirrored disk.</description>
      <pubDate>Fri, 20 Sep 2002 14:54:31 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-steps-help/m-p/2809786#M637622</guid>
      <dc:creator>John Dvorchak</dc:creator>
      <dc:date>2002-09-20T14:54:31Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror Steps Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-steps-help/m-p/2809787#M637623</link>
      <description>Thanks for the decent help.&lt;BR /&gt;&lt;BR /&gt;Can someone clarify further:&lt;BR /&gt;&lt;BR /&gt;-- I have c1t2d0 that is root drive.&lt;BR /&gt;&lt;BR /&gt;-- I have c2t2d0 that is going to be mirrored to root.&lt;BR /&gt;&lt;BR /&gt;-- So the pvcreate should be on c2t2d0, not c1t2d0.   Correct?   Or the root drive is formated.&lt;BR /&gt;&lt;BR /&gt;Can someone reply?&lt;BR /&gt;&lt;BR /&gt;Very appreciated.&lt;BR /&gt;&lt;BR /&gt;Steven</description>
      <pubDate>Wed, 25 Sep 2002 19:14:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-steps-help/m-p/2809787#M637623</guid>
      <dc:creator>Steven Chen_1</dc:creator>
      <dc:date>2002-09-25T19:14:55Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror Steps Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-steps-help/m-p/2809788#M637624</link>
      <description>Hi Steven:&lt;BR /&gt;&lt;BR /&gt;Yes, you are correct.  The drive you are adding which will serve as the mirror is 'c2t2d0', so that is the *only* drive to which you issue a 'pvcreate -B'.&lt;BR /&gt;&lt;BR /&gt;Regards!&lt;BR /&gt;&lt;BR /&gt;...JRF...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 25 Sep 2002 19:23:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-steps-help/m-p/2809788#M637624</guid>
      <dc:creator>James R. Ferguson</dc:creator>
      <dc:date>2002-09-25T19:23:21Z</dc:date>
    </item>
    <item>
      <title>Re: Mirror Steps Help</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirror-steps-help/m-p/2809789#M637625</link>
      <description>Hi Steven,&lt;BR /&gt;&lt;BR /&gt;Few precautions:&lt;BR /&gt;&lt;BR /&gt;1. Take a note of "lvlnboot -v" output before you do anything. Note down the logical volumes corresponding to boot, root, swap and dump. Mostly they will be lvol1, lvol3, lvol2 and lvol2 respectively.&lt;BR /&gt;&lt;BR /&gt;After doing "mkboot -a "hpux -lq"" on both the disks make sure you run lvlnboot on all these logical volumes.&lt;BR /&gt;&lt;BR /&gt;lvlnboot -b /dev/vg00/lvol1&lt;BR /&gt;lvlnboot -r /dev/vg00/lvol3&lt;BR /&gt;lvlnboot -s /dev/vg00/lvol2&lt;BR /&gt;lvlnboot -d /dev/vg00/lvol2&lt;BR /&gt;lvlnboot -R&lt;BR /&gt;&lt;BR /&gt;2. Do pvcreate only on the disk that is going to be the mirror *not* the primary disk. In your case it is c2t2d0.&lt;BR /&gt;&lt;BR /&gt;3. Run setboot command and set the paths. Look at the man page of setboot on setting up the paths.&lt;BR /&gt;&lt;BR /&gt;-Sri</description>
      <pubDate>Wed, 25 Sep 2002 19:23:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirror-steps-help/m-p/2809789#M637625</guid>
      <dc:creator>Sridhar Bhaskarla</dc:creator>
      <dc:date>2002-09-25T19:23:28Z</dc:date>
    </item>
  </channel>
</rss>

