<?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 boot disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335205#M189679</link>
    <description>mkboot -a defines the AUTO file in the LIF area.  The system reads this file prior to loading the kernel.  It tells the system what utilily will be used to load the kernel ("hpux"), what options to use when loading the kernel ("-lq"), and where the kernel is located ("HW-Path/stand/vmunix")&lt;BR /&gt;&lt;BR /&gt;The "-lq" allows you to boot without a LVM quorum.   By default, HP-UX will not activate a volume group unless a quorum of disks is present.  This option is required if you have mirrored vg00 with two disks.  Without this option, your system will not boot if one of your disks are dead even though they are mirrored.&lt;BR /&gt;&lt;BR /&gt;These boot files are located in your LIF area .  They can be listed using the "lifls" command.  Also, you can view the contents of your AUTO file by running:&lt;BR /&gt;lifcp /dev/rdsk/&lt;DEVICEFILE&gt;:AUTO -&lt;/DEVICEFILE&gt;</description>
    <pubDate>Mon, 19 Jul 2004 09:39:12 GMT</pubDate>
    <dc:creator>john kingsley</dc:creator>
    <dc:date>2004-07-19T09:39:12Z</dc:date>
    <item>
      <title>mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335199#M189673</link>
      <description>HP-UX 11.11  We are trying to set up our mirror for the boot disk.  vg00 is on both c0t6d0(primary) and c2t6d0(mirror).  We ran the mkboot /dev/rdsk/c2t6d0 command.  What are our next steps?</description>
      <pubDate>Mon, 16 Sep 2024 09:25:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335199#M189673</guid>
      <dc:creator>Scott Frye_1</dc:creator>
      <dc:date>2024-09-16T09:25:51Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335200#M189674</link>
      <description>Heres my step list:&lt;BR /&gt;-Make both disks ready for LVM. Make c4t5d0 bootable. Example.&lt;BR /&gt;# pvcreate -B /dev/rdsk/c4t5d0&lt;BR /&gt;&lt;BR /&gt;# pvcreate /dev/rdsk/c4t4d0&lt;BR /&gt;&lt;BR /&gt;-Add disks to vg00:&lt;BR /&gt;# vgextend /dev/vg00 /dev/dsk/c4t5d0 /dev/dsk/c4t4d0&lt;BR /&gt;&lt;BR /&gt;-Make c3t4d0 bootable, add AUTO area to LIF header.&lt;BR /&gt;# mkboot /dev/rdsk/c4t5d0&lt;BR /&gt;&lt;BR /&gt;# mkboot -a "hpux -lq (10/4/4.5.0)/stand/vmunix" /dev/rdsk/c4t5d0&lt;BR /&gt;&lt;BR /&gt;-Mirror lvol1 thru lvol8 to /dev/dsk/c4t5d0:&lt;BR /&gt;# for i in 1 2 3 4 5 6 7 8&lt;BR /&gt;&lt;BR /&gt;do&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol${i} /dev/dsk/c4t5d0&lt;BR /&gt;&lt;BR /&gt;done&lt;BR /&gt;&lt;BR /&gt;#&lt;BR /&gt;&lt;BR /&gt;-Mirror 2nd swap partition, /dev/vg00/swap2 to c4t4d0:&lt;BR /&gt;# lvextend -m 1 /dev/vg00/swap2 /dev/dsk/c4t4d0&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2004 09:21:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335200#M189674</guid>
      <dc:creator>Dave Hutton</dc:creator>
      <dc:date>2004-07-19T09:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335201#M189675</link>
      <description>What exactly is this command "mkboot -a "hpux -lq (10/4/4.5.0)/stand/vmunix" /dev/rdsk/c4t5d0&lt;BR /&gt;" and what does it do.  I've got a sys admin manual that came with the box.  It tells me to run "mkboot -a "hpux (;0)/stand/vmunix" /dev/rdsk/c2t6d0".  I have no idea what this does.  What is the difference between my command and yours?</description>
      <pubDate>Mon, 19 Jul 2004 09:24:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335201#M189675</guid>
      <dc:creator>Scott Frye_1</dc:creator>
      <dc:date>2004-07-19T09:24:10Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335202#M189676</link>
      <description>You are assigning "no quorum" so your system will boot of the second disk when the first one failes...and you are giving it a hardware path to look for.</description>
      <pubDate>Mon, 19 Jul 2004 09:29:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335202#M189676</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2004-07-19T09:29:20Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335203#M189677</link>
      <description>Forgot one thing... yours doesnt do that... the example with -lq does provide for no quorum to allow your box to reboot...&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2004 09:31:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335203#M189677</guid>
      <dc:creator>Todd McDaniel_1</dc:creator>
      <dc:date>2004-07-19T09:31:14Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335204#M189678</link>
      <description>so the hardware path is the path to my mirrored disk?  And if my primary fails, all I do not have to do anything special to allow it to boot from my mirror?</description>
      <pubDate>Mon, 19 Jul 2004 09:32:41 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335204#M189678</guid>
      <dc:creator>Scott Frye_1</dc:creator>
      <dc:date>2004-07-19T09:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335205#M189679</link>
      <description>mkboot -a defines the AUTO file in the LIF area.  The system reads this file prior to loading the kernel.  It tells the system what utilily will be used to load the kernel ("hpux"), what options to use when loading the kernel ("-lq"), and where the kernel is located ("HW-Path/stand/vmunix")&lt;BR /&gt;&lt;BR /&gt;The "-lq" allows you to boot without a LVM quorum.   By default, HP-UX will not activate a volume group unless a quorum of disks is present.  This option is required if you have mirrored vg00 with two disks.  Without this option, your system will not boot if one of your disks are dead even though they are mirrored.&lt;BR /&gt;&lt;BR /&gt;These boot files are located in your LIF area .  They can be listed using the "lifls" command.  Also, you can view the contents of your AUTO file by running:&lt;BR /&gt;lifcp /dev/rdsk/&lt;DEVICEFILE&gt;:AUTO -&lt;/DEVICEFILE&gt;</description>
      <pubDate>Mon, 19 Jul 2004 09:39:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335205#M189679</guid>
      <dc:creator>john kingsley</dc:creator>
      <dc:date>2004-07-19T09:39:12Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335206#M189680</link>
      <description>You actually want to run the "-lq" on both boot disks or you actually make the box less likely to boot. Unless the no quorun flag is asserted on both disks, the failure of the mirror will cause the primary not to be bootable either because of lack of quorum within the volume group. As long as -lq is specified on both disks then you will always be able to boot from the primary or the alternate. You should also run the setboot command to set the alternate boot path to your mirror. This will let you talk someone through the boot if necessary much, much more easily --- if required at all. &lt;BR /&gt;&lt;BR /&gt;The good news is that because you are mirrored (and I assume these are hot-plug drives), you can now replace a failed disk (even boot) without ever shutting down.&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2004 09:43:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335206#M189680</guid>
      <dc:creator>A. Clay Stephenson</dc:creator>
      <dc:date>2004-07-19T09:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335207#M189681</link>
      <description>I was just reviewing Dave's procedure.  It looks like he left out the last few steps for creating a mirror.&lt;BR /&gt;&lt;BR /&gt;After you finish createing your mirrors (lvextend -m 1 /dev/vg00/lvol..... ), you also need to update the root, boot, primary swap, and dump volumes so they know about the new disk.  Start by running:&lt;BR /&gt;   # lvlnboot -v /dev/vg00&lt;BR /&gt;This will show you the current definition.&lt;BR /&gt;   # lvlnboot -r /dev/vg00/lvol3 /dev/vg00&lt;BR /&gt;   # lvlnboot -b /dev/vg00/lvol1 /dev/vg00&lt;BR /&gt;   # lvlnboot -s /dev/vg00/lvol2 /dev/vg00&lt;BR /&gt;   # lvlnboot -d /dev/vg00/lvol2 /dev/vg00&lt;BR /&gt;Now run lvlnboot -v /dev/vg00 again, and you should see that your new disk is listed with the root, boot, swap volumes.</description>
      <pubDate>Mon, 19 Jul 2004 09:51:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335207#M189681</guid>
      <dc:creator>john kingsley</dc:creator>
      <dc:date>2004-07-19T09:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335208#M189682</link>
      <description>Here's a full procedure I use:&lt;BR /&gt;&lt;BR /&gt;Say /dev/dsk/c0t6d0 is the root disk and /dev/dsk/c3t6d0 is the disk you want to make a mirror of.&lt;BR /&gt;&lt;BR /&gt;1. Create a bootable LVM disk to be used for the mirror.&lt;BR /&gt;pvcreate -B /dev/rdsk/c3t6d0&lt;BR /&gt;2. Add this disk to the current root volume group.&lt;BR /&gt;vgextend /dev/vg00 /dev/dsk/c3t6d0&lt;BR /&gt;3. Make the new disk a boot disk.&lt;BR /&gt;mkboot -l /dev/rdsk/c3t6d0&lt;BR /&gt;4. Copy the correct AUTO file into the new LIF area.&lt;BR /&gt;mkboot -a "hpux -lq (;0)/vmunix" /dev/rdsk/c3t6d0&lt;BR /&gt;5. Mirror the boot, root and primary swap logical volumes to the new&lt;BR /&gt;bootable disk. Ensure that all devices in vg00, such as /usr, /swap,&lt;BR /&gt;etc., are mirrored.&lt;BR /&gt;The following is an example of mirroring the boot logical volume:&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol1 /dev/dsk/c3t6d0&lt;BR /&gt;The following is an example of mirroring the primary swap logical&lt;BR /&gt;volume:&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol2 /dev/dsk/c3t6d0&lt;BR /&gt;The following is an example of mirroring the root logical volume:&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol3 /dev/dsk/c3t6d0&lt;BR /&gt;6. Update the boot information contained in the BDRA for the mirror&lt;BR /&gt;copies of boot, primary swap and root.&lt;BR /&gt;/usr/sbin/lvlnboot -b /dev/vg00/lvol1&lt;BR /&gt;/usr/sbin/lvlnboot -s /dev/vg00/lvol2&lt;BR /&gt;/usr/sbin/lvlnboot -r /dev/vg00/lvol3&lt;BR /&gt;7. Check if the BDRA is correct.&lt;BR /&gt;/usr/sbin/lvlnboot -R /dev/vg00&lt;BR /&gt;8. Verify that the mirrors were properly created.&lt;BR /&gt;lvlnboot -v /dev/vg00&lt;BR /&gt;The output of this command is shown in a display like the following:&lt;BR /&gt;Boot Definitions for Volume Group /dev/vg00:&lt;BR /&gt;Boot Definitions for Volume Group /dev/vg00:&lt;BR /&gt;Physical Volumes belonging in Root Volume Group:&lt;BR /&gt;/dev/dsk/c0t6d0 (1/0/0/3/0.6.0) -- Boot Disk&lt;BR /&gt;/dev/dsk/c3t6d0 (1/0/1/0/0/1/1.6.0) -- Boot Disk&lt;BR /&gt;Boot: lvol1 on: /dev/dsk/c0t6d0&lt;BR /&gt;/dev/dsk/c3t6d0&lt;BR /&gt;Root: lvol3 on: /dev/dsk/c0t6d0&lt;BR /&gt;/dev/dsk/c3t6d0&lt;BR /&gt;Swap: lvol2 on: /dev/dsk/c0t6d0&lt;BR /&gt;/dev/dsk/c3t6d0&lt;BR /&gt;Dump: lvol2 on: /dev/dsk/c0t6d0, 0&lt;BR /&gt;&lt;BR /&gt;vgdisplay -v vg00&lt;BR /&gt;&lt;BR /&gt;Then lvextend for all other lvols:&lt;BR /&gt;&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol4 /dev/dsk/c3t6d0&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol5 /dev/dsk/c3t6d0&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol6 /dev/dsk/c3t6d0&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol7 /dev/dsk/c3t6d0&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol8 /dev/dsk/c3t6d0&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol9 /dev/dsk/c3t6d0&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol10 /dev/dsk/c3t6d0&lt;BR /&gt;lvextend -m 1 /dev/vg00/lvol11 /dev/dsk/c3t6d0&lt;BR /&gt;&lt;BR /&gt;I atached as well (in case cut'n'paste messed up).&lt;BR /&gt;&lt;BR /&gt;Rgds...Geoff&lt;BR /&gt;</description>
      <pubDate>Mon, 19 Jul 2004 10:02:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335208#M189682</guid>
      <dc:creator>Geoff Wild</dc:creator>
      <dc:date>2004-07-19T10:02:24Z</dc:date>
    </item>
    <item>
      <title>Re: mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335209#M189683</link>
      <description>I'm including as a reference a complete procedure.  The disk names are changed to protect the guilty.&lt;BR /&gt;&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;SEP</description>
      <pubDate>Mon, 19 Jul 2004 10:02:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mirroring-boot-disk/m-p/3335209#M189683</guid>
      <dc:creator>Steven E. Protter</dc:creator>
      <dc:date>2004-07-19T10:02:49Z</dc:date>
    </item>
  </channel>
</rss>

