<?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: mkboot for mirroring boot disk in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544968#M622702</link>
    <description>Shahril,&lt;BR /&gt;&lt;BR /&gt;Those are four slight variations of essentially the same command.  The first assumes defaults , the second gets slightly more specific and so on, but they all essentially do the same thing.&lt;BR /&gt;&lt;BR /&gt;Here is an extract from my standard Mirroring notes:&lt;BR /&gt;&lt;BR /&gt;3. Use mkboot to place the boot utilities in the boot area and add the AUTO file&lt;BR /&gt;"mkboot /dev/rdsk/c1t6d0"&lt;BR /&gt;"mkboot -a "hpux -lq" /dev/rdsk/c1t6d0"&lt;BR /&gt;&lt;BR /&gt;4. Use mkboot to update the AUTO file on the primary boot disk&lt;BR /&gt;"mkboot -a "hpux -lq" /dev/rdsk/c0t6d0"&lt;BR /&gt;&lt;BR /&gt;That's all you really need.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
    <pubDate>Mon, 16 May 2005 05:09:00 GMT</pubDate>
    <dc:creator>Pete Randall</dc:creator>
    <dc:date>2005-05-16T05:09:00Z</dc:date>
    <item>
      <title>mkboot for mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544965#M622699</link>
      <description>Hi folks,&lt;BR /&gt;&lt;BR /&gt;I have done my research on this and found various versions for the mkboot command.  I am wondering how they are different, if at all.  Note that this is for a 10.20 system, although I wonder if there is any difference on 11.x?&lt;BR /&gt;&lt;BR /&gt;Here are the 4 common versions I found:&lt;BR /&gt;"hpux -lq"&lt;BR /&gt;"hpux -lq /stand/vmunix"&lt;BR /&gt;"hpux -lq (;0)/vmunix"&lt;BR /&gt;"hpux –lq (;0)/stand/vmunix" &lt;BR /&gt;&lt;BR /&gt;I also understand I need to -lq the primary disk to protect against the scenario where the secondary is down.  What AUTO string should be used for the primary disk?&lt;BR /&gt;&lt;BR /&gt;TIA.&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Shahril&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 16 May 2005 02:54:32 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544965#M622699</guid>
      <dc:creator>Shahril M</dc:creator>
      <dc:date>2005-05-16T02:54:32Z</dc:date>
    </item>
    <item>
      <title>Re: mkboot for mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544966#M622700</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;lifls -l /dev/rdsk/c1t6d0&lt;BR /&gt;will give you the list of the files in the lif volume which contains AUTO (which is a file in the lif volume)&lt;BR /&gt;&lt;BR /&gt;The file contains the name of the secondary loader (which is by default hpux)and also the arguments which has to be passed along with the loader (like -lq -lm ,etc)&lt;BR /&gt;&lt;BR /&gt;hpux with the options then loads the kernel.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Naveej</description>
      <pubDate>Mon, 16 May 2005 03:38:29 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544966#M622700</guid>
      <dc:creator>Naveej.K.A</dc:creator>
      <dc:date>2005-05-16T03:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: mkboot for mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544967#M622701</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;Look at the attached script, I use it for mirroring of system disks.&lt;BR /&gt;&lt;BR /&gt;HTH</description>
      <pubDate>Mon, 16 May 2005 05:02:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544967#M622701</guid>
      <dc:creator>Victor Fridyev</dc:creator>
      <dc:date>2005-05-16T05:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: mkboot for mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544968#M622702</link>
      <description>Shahril,&lt;BR /&gt;&lt;BR /&gt;Those are four slight variations of essentially the same command.  The first assumes defaults , the second gets slightly more specific and so on, but they all essentially do the same thing.&lt;BR /&gt;&lt;BR /&gt;Here is an extract from my standard Mirroring notes:&lt;BR /&gt;&lt;BR /&gt;3. Use mkboot to place the boot utilities in the boot area and add the AUTO file&lt;BR /&gt;"mkboot /dev/rdsk/c1t6d0"&lt;BR /&gt;"mkboot -a "hpux -lq" /dev/rdsk/c1t6d0"&lt;BR /&gt;&lt;BR /&gt;4. Use mkboot to update the AUTO file on the primary boot disk&lt;BR /&gt;"mkboot -a "hpux -lq" /dev/rdsk/c0t6d0"&lt;BR /&gt;&lt;BR /&gt;That's all you really need.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Pete</description>
      <pubDate>Mon, 16 May 2005 05:09:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544968#M622702</guid>
      <dc:creator>Pete Randall</dc:creator>
      <dc:date>2005-05-16T05:09:00Z</dc:date>
    </item>
    <item>
      <title>Re: mkboot for mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544969#M622703</link>
      <description>Shahril,&lt;BR /&gt;&lt;BR /&gt;If i have not mistaken your question,&lt;BR /&gt;&lt;BR /&gt;"hpux -lq"&lt;BR /&gt;"hpux -lq /stand/vmunix"&lt;BR /&gt;"hpux -lq (;0)/vmunix"&lt;BR /&gt;"hpux -lq (;0)/stand/vmunix"&lt;BR /&gt;&lt;BR /&gt;I don't find any issues with 1,2 and 4, but really doubt if the third one will work!!!&lt;BR /&gt;&lt;BR /&gt;The best way would be to use the first one.&lt;BR /&gt;hpux -lq.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Naveej</description>
      <pubDate>Mon, 16 May 2005 05:16:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544969#M622703</guid>
      <dc:creator>Naveej.K.A</dc:creator>
      <dc:date>2005-05-16T05:16:16Z</dc:date>
    </item>
    <item>
      <title>Re: mkboot for mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544970#M622704</link>
      <description>Hi,&lt;BR /&gt;I'll try to remember my trainer time ...&lt;BR /&gt;let's split up the command.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;The full thing would be:&lt;BR /&gt;&lt;BR /&gt;ISL&amp;gt; hpux -lq boot (8/8/0.3.0;0)/stand/vmunix&lt;BR /&gt;&lt;BR /&gt;Here are the parts of it:&lt;BR /&gt;&lt;BR /&gt;ISL&lt;BR /&gt;is a command interpreter which has some internal commands. It understands the LIF (Logical Interchange Format) filesystem format, a very basic thing which specifies file locations by distance from the first block. Inside this LIF filesystem is (hopefully, at least :-) one "file" called "hpux" (there may be more, e.g. "ODE", Offline Diagnostic Environment).&lt;BR /&gt;&lt;BR /&gt;hpux&lt;BR /&gt;is a file residing inside the LIF filesystem part of the boot disk. It knows about the HFS filesystem structures and thus is able to read the kernel file from the /stand filesystem.&lt;BR /&gt;&lt;BR /&gt;-lq&lt;BR /&gt;an option for the hpux command. "lq" stands for "low quorum". The quorum rule of LVM requires that MORE than 50% of the VG's disk are available at boot time. If there are only 50% or less disks of the root VG available, the quorum rule can be turned off with "-lq". In most cases, the root VG consists of only two disks - if one fails, there are exactly 50% of the root VG disks available and the quorum is not reached. If you have three disks in the VG, the system would perfectly boot if one fails - if all required filesystems (etc) are found on the remaining disks.&lt;BR /&gt;&lt;BR /&gt;boot&lt;BR /&gt;directs the hpux command that we want to boot the system. "boot" is the default, it may be omitted. There are more commands available, e.g. "ls" : the hpux command has the ability to do the same as the UNIX command "ls". So, "hpux ls (;0)/" gives you a directory listing of the HFS on LVOL1.&lt;BR /&gt;&lt;BR /&gt;(8/8/0.3.0&lt;BR /&gt;specifies the disk device on which the "hpux" command should look for the kernel file. Well, since a cross-device boot is not possible, it's useless to specify anything else than the disk where the ISL and hpux command are loaded from. So, in nearly all cases, this part is left out, falling back to the disk we started from.&lt;BR /&gt;&lt;BR /&gt;;0)&lt;BR /&gt;specifies the disk SECTION to start from. Some years ago (before we got the blessings of LVM), disks were hard-sectioned in areas 1 - 15. This isn't used any more, I suppose ... When using LVM, the section is always 0. This is the default, so it can be omitted.&lt;BR /&gt;&lt;BR /&gt;/stand/vmunix&lt;BR /&gt;is the name of the kernel to load. Actually, the directory part "/stand" needn't to be specified, since the "hpux" command searches the HFS filesystem on LVOL1 which is later mounted to /stand - in fact, the kernel file's absolute path on that LVOL1 filesystem is "/vmunix" :-) The boot process normally uses LVOL3 as / (root) and then mounts LVOL1 to /stand - so the file vmunix is in the top layer directory of LVOL1 filesystem. The human insanity "remembers" the file's name from the running (= mounted) system, i.e. /stand/vmunix, so the programmers adapted to our dumbness and allowed to put /stand in front of the file's name. The default for this thing is "/stand/vmunix" - it can be omitted.&lt;BR /&gt;&lt;BR /&gt;So ... there are lots of defaults:&lt;BR /&gt;&lt;BR /&gt;hpux -lq&lt;BR /&gt;hpux -lq boot&lt;BR /&gt;hpux -lq boot (;0)&lt;BR /&gt;hpux -lq boot (;0)/stand/vmunix&lt;BR /&gt;hpux -lq boot (;0/vmunix&lt;BR /&gt;&lt;BR /&gt;all do the same ... read the kernel file from LVOL1 :-)&lt;BR /&gt;&lt;BR /&gt;Regards&lt;BR /&gt;uli&lt;BR /&gt;</description>
      <pubDate>Wed, 25 May 2005 08:22:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544970#M622704</guid>
      <dc:creator>Uli Manschke</dc:creator>
      <dc:date>2005-05-25T08:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: mkboot for mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544971#M622705</link>
      <description>Hi Pete,&lt;BR /&gt;&lt;BR /&gt;Thanx for your reply.&lt;BR /&gt;&lt;BR /&gt;You mention the first one assumes defaults.  What are the defaults and under what known circumstances would either one of the other 3 be used instead?&lt;BR /&gt;&lt;BR /&gt;Referring to my second question, you also recommend to -lq the primary disk.  Is this to allow boot up from this disk should the secondary be down?&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Rgds,&lt;BR /&gt;Shahril</description>
      <pubDate>Wed, 25 May 2005 19:35:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544971#M622705</guid>
      <dc:creator>Shahril M</dc:creator>
      <dc:date>2005-05-25T19:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: mkboot for mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544972#M622706</link>
      <description>Hi Uli,&lt;BR /&gt;&lt;BR /&gt;An excellent and comprehensive answer, thanx.&lt;BR /&gt;&lt;BR /&gt;A perfect 10 reply if not for missing out my 2nd query.  Well, I hold the points till then.&lt;BR /&gt;&lt;BR /&gt;TIA,&lt;BR /&gt;Shahril&lt;BR /&gt;</description>
      <pubDate>Wed, 25 May 2005 19:38:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544972#M622706</guid>
      <dc:creator>Shahril M</dc:creator>
      <dc:date>2005-05-25T19:38:12Z</dc:date>
    </item>
    <item>
      <title>Re: mkboot for mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544973#M622707</link>
      <description>Shahril,&lt;BR /&gt;&lt;BR /&gt;HPUX is the secondry loader what load the kernel with the arguments set in the AUTO file. If -lq option is set on any disk means that quorum check will be bypassed on the root VG causing it to boot from only a single disk even if VG has originally two disks. This can be set on both primary as well as secondry disk to byepass check for the other one.&lt;BR /&gt;&lt;BR /&gt;Option 1 , 2 &amp;amp; 4 will achive the same task. &lt;BR /&gt;Option 3 will not work as kernel has to be there in /stand always and can not be there in root.(/)&lt;BR /&gt;&lt;BR /&gt;HTH,&lt;BR /&gt;Devender</description>
      <pubDate>Wed, 25 May 2005 20:56:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544973#M622707</guid>
      <dc:creator>Devender Khatana</dc:creator>
      <dc:date>2005-05-25T20:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: mkboot for mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544974#M622708</link>
      <description>Hi,&lt;BR /&gt;&lt;BR /&gt;-lq with both disks = Any disk failure will not stop the booting.&lt;BR /&gt;&lt;BR /&gt;-lq only in alternate boot disk = If secondary fails system will not boot. If primary fails system boots.&lt;BR /&gt;&lt;BR /&gt;no -lq in both disks = any disk failure system will not boot(not recommended)&lt;BR /&gt;&lt;BR /&gt;It's upto you to desire!&lt;BR /&gt;&lt;BR /&gt;I suggest to set -lq in both disks, and do a regular check on the VG status for synchronization.&lt;BR /&gt;&lt;BR /&gt;You were asking about the defaults.&lt;BR /&gt;The default disk is the disk which runs ISL&lt;BR /&gt;The default section is 0 (lvol1)&lt;BR /&gt;The default kernel is /stand/vmunix&lt;BR /&gt;&lt;BR /&gt;Note that even if -lq is not set you can manually boot the system by interacting with ISL and give manually "hpux -lq"&lt;BR /&gt;&lt;BR /&gt;Regds&lt;BR /&gt;TT&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 26 May 2005 01:44:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544974#M622708</guid>
      <dc:creator>Thayanidhi</dc:creator>
      <dc:date>2005-05-26T01:44:33Z</dc:date>
    </item>
    <item>
      <title>Re: mkboot for mirroring boot disk</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544975#M622709</link>
      <description>Well, then I'll try to earn my points :-)&lt;BR /&gt;&lt;BR /&gt;Whether and where to use -lq in the AUTO string depends on what you want the system to do in case of a disk failure.&lt;BR /&gt;Assuming the boot disk is mirrored, thus the root VG consists of exactly two disk.&lt;BR /&gt;-lq tells the hpux command to ignore the quorum rule, thus : whenever -lq is found, the system will try to automatically boot even if not all disks are physically available.&lt;BR /&gt;So, the choices you have are:&lt;BR /&gt;1. no lq option on any disk&lt;BR /&gt;2. lq option set only on the primary disk&lt;BR /&gt;3. lq option set only on the secondary disk&lt;BR /&gt;4. lq option set on both disks.&lt;BR /&gt;&lt;BR /&gt;What happens?&lt;BR /&gt;1. If any of the disks is not available, the system will stop booting automatically. But you are still able to manually boot with&lt;BR /&gt;boot pri/alt IS&lt;BR /&gt;hpux -lq &lt;BR /&gt;2. If the secondary disk is unavailable, the sytem will boot automatically. If the primary disk fails, the system will stop booting; again, you can manually boot as in 1.&lt;BR /&gt;3. like 2., but with primary and secondary swapped.&lt;BR /&gt;4. The system will boot automatically, whichever disk fails.&lt;BR /&gt;Just to mention :-) ... if both disks are unavailable the system will not boot ... irrespective of the existence of the lq option :-)&lt;BR /&gt;&lt;BR /&gt;So, the normal settings are either&lt;BR /&gt;&lt;BR /&gt;hpux -lq     (boot whenever possible)&lt;BR /&gt;or &lt;BR /&gt;hpux         (boot only if both root VG disks are available)&lt;BR /&gt;&lt;BR /&gt;on all disks of the root VG, depending on what you want the system to do in case of a missing disk.&lt;BR /&gt;I've very rarely seen different strings on the disks - the option is meant to allow system availability even if one disk fails.&lt;BR /&gt;&lt;BR /&gt;That one disk is missing will be automatically recorded in "dmesg" output, which generally is also logged in syslog.log.&lt;BR /&gt;So, if you do system monitoring with really good tools like OpenView Operations (well, I must admit - I'm in OpenView Sales :-), they will send you a warning.&lt;BR /&gt;&lt;BR /&gt;HTH :-)&lt;BR /&gt;uli</description>
      <pubDate>Thu, 26 May 2005 03:08:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/mkboot-for-mirroring-boot-disk/m-p/3544975#M622709</guid>
      <dc:creator>Uli Manschke</dc:creator>
      <dc:date>2005-05-26T03:08:24Z</dc:date>
    </item>
  </channel>
</rss>

