Booting Systems

Embed Size (px)

DESCRIPTION

HP-UX Booting Steps

Citation preview

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 1/24

    BootingSystemsTechnicaldocumentation

    CompletebookinPDF

    Feedback

    TableofContents Index

    prev

    next

    TheHPUXoperatingsystemcurrentlyrunsontwodifferenthardwareplatforms:

    HP9000SystemsPARISCprocessorfamily

    HPIntegrityServersItaniumprocessorfamily

    AnHPIntegrityServerusestheExtensibleFirmwareInterface(EFI).IfyoursystemdisplaystheEFIbootmanagerfollowingtheinitialfirmwaretestresults,thenyouarebootinganHPIntegrityServer.

    IfyouarebootinganHPIntegrityServerseeBootingHPUXonHPIntegrityServers:DetailsandVariations.

    IfyouarebootingaPARISCSystemseeBootingHPUXonHP9000(PARISC)Systems:DetailsandVariations

    ForadditionalinformationonbootingnPartitionsandVirtualPartitions,seethenPartitionAdministrator'sGuideandInstallingandManagingHPUXVirtualPartitions(vpars).

    NewMassStorageStackforHPUX11iVersion3

    HPUX11iv3introducesanewrepresentationofdevicespecialfilesandhardwarepathsformassstoragedevices,allowingtoincreasethereliability,adaptability,performance,andscalabilityofthemassstoragestack(seetheNextGenerationMassStorageStackwhitepaperformoredetails).ThewhitepaperispostedintheNetworkandSystemsManagementsectionoftheHPtechnicaldocumentationwebsiteunderStorageAreaManagement(http://docs.hp.com/en/netsys.html#Storage%20Area%20Management).

    HPUX11iv3DeviceSpecialFiles

    HPUX11iv3introducespersistentDSFs(DeviceSpecialfiles)formassstoragedevices.AsinglepersistentDSFiscreatedforeachLUN,notboundtothepathtothedeviceasinpriorHPUXreleases,buttotheLUNsWorldwideIdentifier(WWID),auniqueandpermanentidentifieroftheLUN.ThismakestheDSFpersistentandagile,thatis,independentfromthephysicalpathstothedevice.Thisalsoenablestransparentmultipathing,meaningthatanyavailablepathtothedevicecantransparentlybeselectedtoaccessit.AnexampleofpersistentDSFnameis/dev/disk/disk13.

    NOTE:PersistentDSFswillremainpersistentforthelifeofasystem,evenafterarecovery.However,theyarenotpersistentifyoucoldreinstallanHPUX11iv3system.

    HPUX11iv3HardwarePaths

    HPUX11iv3introducesanewrepresentationofhardwarepathsformassstoragedevices,referredtoasalunpathhardwarepath,whichcoexistswiththelegacyrepresentationofhardwarepathsalreadyusedinversionspriortoHPUX11iv3.

    ThelunpathhardwarepathformatenablestheuseofmoretargetsandLUNsthanarepermittedinthelegacyaddressingscheme.Itisidenticalinformattoalegacyhardwarepath,uptotheHBA,andrepresentsthesamepathtotheLUN.BeyondtheHBA,additionalelementsrepresentingatransportdependenttargetaddress(forinstance,atargetportWorldWideNameforFibreChanneloraportidforSCSI)anda64bitSCSILUNaddress,areprintedinhexadecimal.

    Note:thehardwarepathelementssizehasbeenincreasedfrom8bitsto64bitstofittheseadditionalelements.

    Thelunpathhardwarepathformatmaybeusedtospecifybootpathsasexplainedfurtherinthissection.

    BootingHPUXonHPIntegrityServers:DetailsandVariations

    HPUXSystemAdministratorsGuide:Overviewdescribesthebasicsequenceofeventsthatoccurswhenyouturnon,reset,orrebootanHPIntegrityServer.Thissectioncoversthebootprocessmorethoroughlybecausetherearetimeswhenyouwillneedtomanuallycontrolthebootprocessforexample:

    Whenyouneedtobootyoursystemfromadeviceotherthanthedevicefromwhichyounormallyboot.

    Whenyouneedtobootyoursystemfromakernelfileotherthanthekernelfilefromwhichyounormallyboot.

    WhenyouneedtobootthesystemintoSingleUserModetoensurethatspecialtasksyouaredoingarenotaffectedbyotherusersofthesystem.

    WhenyouneedtobootyoursystemintoLVMMaintenancemodetocorrectaproblemwithyourcomputerslogicalvolumesorvolumegroups.

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 2/24

    Whenyouareinstalling,orupdatingtoanewreleaseofHPUX.

    Hereisadetailedlookatthebootprocess,anditsvariations.

    CAUTION:

    ACPIConfigurationforHPUXMustBedefaultonnPartitionableHPIntegrityServers.HPUXwillnotbootonannPartitioncapablesystemiftheACPIconfigurationvalueisnotsettoDEFAULT.AsettingotherthanDEFAULTcanexist,forexample,ifthenPartitionwaspreviouslyrunninganonHPUXoperatingsystemthatrequiredadifferentvalue.

    TocheckthecurrentACPIconfiguration,attheEFIShellinterfaceentertheacpiconfigcommandwithnoarguments.Iftheacpiconfigvalueisnotsettodefault,thenHPUXcannotbootinthissituationyoumustreconfigureacpiconfigorelsebootingwillbeinterruptedwithapanicwhenlaunchingtheHPUXkernel.

    TosettheACPIconfigurationforHPUX:intheEFIShellinterfaceentertheacpiconfigdefaultcommand,andthenentertheresetcommandforthenPartitiontorebootwiththeproper(default)configurationforHPUX.

    AStandardBoot

    HerearemoredetailsaboutwhathappensduringatypicalHPUXbootupsequenceonanHPIntegrityServer.

    1. Poweronexternaldevices:Ifnecessary,turnonallexternalperipheralsanddevicesthatareattachedtoyourcomputer(forexample,diskdrives,tapedrives,printers,terminals,busconverters).

    Oncethedeviceshavecompletedtheirselfchecktests,proceedtothenextstep.

    2. Poweronyoursystem(ornPartition):TurnonorresetthecomputerornPartition.

    Systemhardware(orhardwareassociatedwithannPartitionyouarebooting)willgothroughaseriesofselfteststoverifythattheprocessors,memory,andothersystemcomponentsareinworkingorder.

    3. Bootdeviceselection:Yoursystem(orthenPartitionyouarebooting)mustlocateakernelfiletobootfrom.Therearetwopartstothesearch:

    Part1determinethehardwarepathtothebootdevice

    Part2determinewhichkernelfileonthehardwarepathtoboot(seeStep4)

    Pathvariablesstoredinnonvolatilememorysetuptothreepossiblebootpathsfromwhichtoattemptaboot:

    PRIThePRImarybootpathisthefirstbootpathtotry.Setthevalueofthispathtopointtothedevicefromwhichyouwillbootmostoften.

    HAATheHighAvailabilityAlternatebootpathisthepathyouwantyoursystemtobootfromshouldyourprimarybootpathfail.

    ALTTheALTernatebootpathisthehardwarepathtoanalternatebootsource(forexample,atapedrive,networkbasedbootsource,oropticaldiscdrive).

    OnHPIntegrityServers,thePRIbootpathistriedduringanautomaticboot.YoucanmanuallyoverrideanautomaticbootbyinterruptingthebootprocessbeforetheAUTOBOOTDELAYexpires.Ifanautobootfromtheprimarybootpath(firstitemintheBootOptionsList)isnotpossible,youwillneedtomanuallyselectabootpathfromtheEFIBootManagermenu.

    BootdisksonHPIntegrityserverscontainaspecialpartitioncalledanEFIpartition.TheEFIpartition,aderivativeoftheFATfilesystemcommonlyfoundonPCs,containsEFIapplicationsthatcanberunbeforeHPUXisinitiated.Onesuchapplication,theEFIbootmanager,isautomaticallylaunchedandinturnlaunchestheHPUXbootloader,hpux.efi(alsoanEFIapplication).

    NOTE:AdiagramandbriefdescriptionofthedisklayoutfordiskscontainingEFIpartitionsisavailableintheHPUXSystemAdministratorsGuide:LogicalVolumeManagementvolume.

    4. Kernelfileselection:Onceabootdeviceisselected,theHPUXspecificbootloaderhpux.efiisinitiated.hpux.efiusesthecontentsoftheAUTOfileontheselectedbootdevicetolocatethekernelfiletoboot.

    Typically,theAUTOfilecontains:

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 3/24

    bootvmunix

    whichtellshpux.efitoloadthekernelfromthefilecalledvmunixfromthebootfilesystem,latertobemountedontherootfilesystemunder/stand,sothatthebootedkernelcanbefoundasthefile/stand/vmunix.

    5. LoadandinitiatetheHPUXoperatingsystem:hpux.efithenopens,andloadstheHPUXkernelintomemoryandinitiatesit.

    6. HPUXgoesthroughitsinitializationprocessandbeginsnormaloperation.

    AutomaticVersusManualBooting

    Whetheryoursystembootsautomatically(providingfortheoptionofunattendedbootinginthecaseofapowerfailureorotherunexpectedbootsituations)orrequiresmanualinterventionisdeterminedbyseveralthings,mostnotably:

    thesettingoftheautobootflaginnonvolatilememory

    whetheranAUTOfileispresentintheEFIpartitionontheselectedbootdevice

    whetheryouintendtobootfromyoursystemsprimarybootdevice

    whetheryourprimarybootdevice(ortheHighAvailabilityAlternatebootdevice)isavailable

    Usually,theprimarybootpathpointstothedevicefromwhichyoumostfrequentlybootandthatdeviceisavailable.Iftheautobootflagisenabled,yoursystemwillautomaticallybootfromtheselectedbootdevice(followingapresettimeout).

    autobooton

    Iftheautobootflagissettoon,hpux.efiwillattempttobootusingtheitemsinthebootoptionslist,intheorderspecified.Itreadsthe\EFI\HPUX\AUTOfilefromtheEFIfilesystemonthedevicethatyouarebootingfrom.hpux.efiusesthecontentsofAUTOtolocatethekernelfiletoloadanddeterminewhichbootoptions(ifany)touse.Itthenloadsandinitiatesthekernel.

    IfnoAUTOfileislocatedthebootprocessstopsatthehpux.efiloader(youwillseetheHPUX>prompt)andyoucanmanuallybootHPUXorperformothertasks.

    autobootoff

    IftheautobootflagissettooffthebootprocessstopsattheEFIBootManagerfromwhichyoucanmanuallybootHPUXorperformothertasks.

    OverridinganAutomaticBoot

    IftheautobootflaginthenonvolatilememoryofyoursystemornPartitionisenabled,yoursystemornPartitionwillattempttoautomaticallybootfollowingabootdelay.Bydefault,thebootdelayissetto10secondshoweveryoucanchangethis.

    Tooverrideanautomaticboot,pressthespacebarbeforetheautobootdelayperiodexpires.Insteadofcontinuingwiththeautoboot,yoursystemornPartitionwillallowyoutointeractwiththeEFIBootManager.

    NOTE:Almostanykeywillperformthesameactionasthespacebar,howevertheENTERkeywillstartthebootsequenceimmediately,andotherkeysmightbemeaningfultothebootmanager(forexample,pressingvwillmovethecurrentlyselectedbootmanagermenuoptiondownoneitem).

    YoucanoverrideanautomaticboottomanuallyinteractwiththeEFIBootManagerto:

    Specifyabootdevice(otherthanthatwhichwouldbeautomaticallyused)

    Specifyabootkernelfile(otherthanthatwhichwouldbeautomaticallyused)

    Vieworadjustyoursystemsprebootsettings

    Atthispoint,youcanselectadevicetobootfromusingtheoptionsprovidedintheEFIBootManagersmainmenuoryoucanchoosetointeractwiththeEFIshelltobootyoursystem.

    UsingtheEFIShelltoManuallyBootYourSystem

    TousetheEFIshelltobootyoursystem:

    Procedure22BootingfromtheEFIShell

    1. AccesstheEFIShell.

    Fromthesystemconsole,usetheup/downarrowkeystoselecttheEFIShellentryfromtheEFIBootManagermenutoaccesstheshell.

    2. AccesstheEFISystemPartitionfortheHPUXbootdevice.

    UsethemapEFIShellcommandtolistthefilesystems(fs0,fs1,andsoon)thatareknownand

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 4/24

    havebeenmapped.

    Toselectafilesystemtouse,enteritsmappednamefollowedbyacolon(:).Forexample,tooperatewiththebootdevicethatismappedasfs0,enterfs0:attheEFIShellprompt.WhenyouhitEntertocompletethecommandtheshellpromptwillchangetoreflectyourdeviceselection:(fs0:\>)

    Ifthemapcommandshowsalotofdevicesyoucanusetheboptiontomakeitshowtheoutputonescreenatatime.

    3. EnterHPUXattheEFIShellcommandprompttolaunchtheHPUX.EFIloaderfromthecurrentlyselectedbootdevice.

    Ifneeded,youcanspecifytheloadersfullpathbyentering\EFI\HPUX\HPUXattheEFIShellcommandprompt.

    4. AllowtheHPUX.EFIloadertoproceedwiththebootcommandspecifiedintheAUTOfile,ormanuallyspecifythebootcommand.

    Bydefault,theHPUX.EFIloaderbootsusingtheloadercommandsfoundinthe\EFI\HPUX\AUTOfileontheEFISystemPartitionoftheselectedbootdevice.TheAUTOfiletypicallycontainsthebootvmunixcommand.

    TointeractwiththeHPUX.EFIloader,interruptthebootprocess(forexample,typeaspace)withinthetimeoutperiodprovidedbytheloader.ToexittheloaderusetheexitcommandthiswilltakeyoubacktoEFI.

    AdjustingtheAutobootDelay

    Bydefault,theautomaticbootdelayissetto10seconds.Youcanchangethisvalue:

    Example21SettingtheautobootdelayusingtheEFIBootManagersBootOptions:

    1. SelectBootOptionMaintenanceMenufromthebootmanagersmainmenu.

    2. SelectAutoBootTimeOutfromthebootoptionmaintenancemenu.

    3. SelectSetTimeOutValue.

    4. Enterthenumberofsecondsyouwanttouseforthebootdelay(forexample30).

    Example22SettingtheautobootdelayusingtheEFIShellsautobootcommand:

    Tosettheautobootdelayto30seconds,usetheEFIShellcommand:

    autoboot30

    Enabling/DisablingAutoboot

    Thevalueoftheautobootflagcanbesetorchangedinseveralways:

    Example23EnableAutoboot(usingEFIShellsautobootcommand)

    Shell>autobooton

    Example24DisableAutoboot(usingEFIShellsautobootcommand)

    Shell>autobootoff

    Example25EnableAutoboot(usingsetbootfromarunningHPUXsystem)

    /usr/sbin/setbootbon

    Example26DisableAutoboot(usingsetbootfromarunningHPUXsystem)

    /usr/sbin/setbootboff

    BootingfromanAlternateBootSource

    Therearetimeswhenyouwillneedtobootfromadeviceotherthanthedevicethatyounormallybootfrom.Forexample,ifyourprimarybootdiskfails,youwillneedtobootyoursystemeitherfromadifferentdiskorfromanotherrecoverymedium.

    BootingfromanAlternateBootDevice

    Youcanbootfromanalternatedeviceinfollowingways.Ifyoursystemissetuptoautomaticallybootyouwillneedtooverridetheautobootsequencebyhittinganykeyontheconsolekeyboardduringtheautobootdelay(timeout)period.

    Ifthealternatedevicethatyouwanttobootfromislistedinthebootoptionsmenu(themainEFIBootManagermenu),usethearrowkeystohighlighttheentryforthealternatedeviceandpressEnteronthekeyboardtobootfromthatdevice.

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 5/24

    Ifthealternatedevicethatyouwanttobootfromisnotlistedinthebootoptionsmenu:

    1. SelectEFIShell[Builtin]fromthebootoptionsmenutoruntheEFIshell.

    2. EntermapattheEFIshellprompttolistbootabledevicesonyoursystem.

    Thedeviceswillbelisted.Lookforentriesthatbeginwithfs#:(where#isanumbersuchas0,1,2,3,etc.).

    Ifthemapcommandshowsalotofdevicesyoucanusetheboptiontomakeitshowtheoutputonescreenatatime.

    3. Determinewhichentrymapstothedeviceyouaretryingtobootfromandenterthefs#:nameattheshellprompt.

    Forexample,iftheentryforthedeviceyouwantistaggedasfs0:,enterfs0:attheshellprompt:

    Shell>fs0:

    Thedeviceassociatedwithentryfs0:isnowtheselectedbootdevice.TheEFIShellpromptwillchangetoreflectthis.

    4. Enterhpuxtostartthebootloader.Thebootloader(hpux.efi)willnowrunandusetheAUTOfileontheselecteddevicetodeterminewhichkernelfiletouse.

    NOTE:Onpartitionablesystemsthedefaultisnottosearchallcellsandtheirinterfacecardsfordevices,thisisdonetoallowthebootprocesstoproceedfaster.IfthedeviceyouwishtobootfromisnotattachedtoanI/Ocardonthecorecell,youmustusethesearchcommandattheEFIprompttoallowyoutofindadditionaldevicesonothercellsandI/Oslots.FormoreinformationonthesearchcommandseenPartitionAdministrator'sGuide.Onceadeviceisaddedtothebootmanagermenuthatislocatedonadifferentcell,EFIwillenumeratedevicesonthatI/Ocardwhileperformingfutureboots.

    BootingfromanAlternateKernelFile

    Thedefaultkernelfilename(andthekernelfilenamethatisusuallyused)isvmunix.TheAUTOfileintheEFIpartitiononabootdevicetypicallycontainstheentry:bootvmunixwhichreferencesthefilevmunixinthe/standfilesystemontheselectedbootdevice.

    Ifyounormallybootfromthekernelfile/stand/vmunixbut(forexample)needtotemporarilybootfromanalternatekernelfile,followthisproceduresubstitutingyourkernelfilenamefortestvmunix:

    1. Ifyoursystemautomaticallyboots,interrupttheautobootsequencebyhittinganykeyontheconsolekeyboardduringtheautoboot(timeout)delay.

    2. SelectEFIShell[Builtin]fromthebootoptionsmenutostarttheEFIshell.

    3. Makesuretheselectedbootdeviceistheonethatcontainsthekernelfileyouwanttobootfrom.Ifyouarenotsure:

    a. EntermapattheEFIshellprompttolistbootabledevicesonyoursystem.

    Thedeviceswillbelistedwithentriesthatbeginwithfs#:(where#isanumbersuchas0,1,2,3,etc.).Forexample:

    fs0:Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)/HD(Part1,Sig88F40A3AB99211E18002D6217B60E588)fs1:Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)/HD(Part3,Sig88F40A9EB99211E18004D6217B60E588)blk0:Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)blk1:Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)/HD(Part1,Sig88f40A3AB99211E18002D6217B60E588)blk2:Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)/HD(Part1,Sig88f40A6CB99211E18003D6217B60E588)blk4:Acpi(HWP0002,500)/Pci(2|0)/Ata(Secondary,Master)

    b. Determinewhichentrymapstothedevicecontainingthekernelfileyouaretryingtobootfrom,andenterthefs#:nameattheshellprompt.

    Forexample,iftheentryforthedeviceyouwanttobootfromistaggedasfs7:,enterfs7:attheshellprompt:

    Shell>fs7:

    Thedeviceassociatedwithentryfs7:isnowtheselectedbootdevice.

    4. Enterthecommandhpuxattheshellpromptandbepreparedtostoptheautobootsequence(againbyhittinganykeyontheconsolekeyboard)ifyouseeacountdowntimershowingthatanautoboot

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 6/24

    isabouttocommence.

    NOTE:IftheAUTOfileonthenowselectedbootdevicewillcausethesystemtobootfromthealternatekernelfileyouaretryingtouse,thereisnoneedtointerruptthissecondautobootsequence.Otherwise,stoptheautomaticboot.

    5. IfyoustoppedtheautomaticbootinthepreviousstepyoushouldnowbeintheHPUXbootloaderthepromptshouldnowbeHPUX>.

    Atthebootloaderprompt,enterthecommandbootfilenamewherefilenameisthenameofthekernelfileyouaretryingtobootfrom.

    Example27Bootingfromanalternatekernelfilecalledtestvmunix

    HPUX>boottestvmunix

    ChangingthePRI,HAA,andALTBootPaths

    OnHPIntegrityServers,theprimary,highavailabilityalternate,andalternatebootpathsarebasedonthefirst,second,andthirditemsthatappearinthebootoptionslistfortheserver,respectively.

    YoucanmanagethebootpathsusingthesetbootcommandwhenHPUXisrunning,orbyusingtheBootOptionMaintenanceMenuintheEFIBootManager.

    SettingthePRI,HAA,andALTBootPathsUsingtheHPUXsetbootCommand:

    Whenyouusesetboottoconfigurethefirst(PRI),second(HAA),orthird(ALT)iteminthebootoptionslist,thenewdevicepaththatyouspecifyeitherreplacestheoriginalbootoption,oritisinsertedintheoriginalsplace(withtheoriginalitembeingshiftedtowardtheendofthebootoptionslist):

    IfthebootoptioniscurrentlynotsettoanHPUXdevice,thenewbootdevicepathisinsertedasanewiteminthebootoptionslist.

    Inthiscasetheoriginallistitem,ifany,movestowardtheendofthebootoptionslistandthenewbootdevicepathbecomesthefirst(PRI),second(HAA),orthird(ALT)iteminthelist,asspecifiedbysetboot.

    IfthebootoptioniscurrentlysettoanHPUXdeviceandthelistitemhasthestandarddescription(forexample,HPUXPrimaryBootforPRIorHPUXAlternateBootforALT)thenthenewbootdevicepathreplacestheoriginaliteminthebootoptionslist.

    IfthebootoptioncurrentlyissettoanHPUXdeviceandthelistitemsdescriptionisnotstandardforitsplaceinthebootoptionslist,thenthenewbootdevicesettingisinsertedasanewiteminthebootoptionslist.

    Inthiscasetheoriginallistitemismovedtowardtheendofthebootoptionslist.

    NOTE:Thebootdevicepaththatyouspecifyinthesetbootcommand(pathinthefollowingexamples)mustbeavalidHPUXhardwarepathtoabootableHPUXdevice.

    StartingwithHPUX11iversion3,thepersistentDSFnameandthelunpathhardwarepatharevalidentriestothesetbootcommand,inadditiontothelegacyhardwarepath.Regardlessofthetypeofargumentpassedininputtosetboot,setbootstoresinstablestorageanddisplaysinoutputanactivelunpathhardwarepathtothedevice.Thislunpathhardwarepathmaybeautomaticallyreplacedbyanotheractivelunpathuponfailureoftheinitiallyconfiguredlunpath.Formoredetails,seethesetboot(1M)inHPUX11iv3whitepaperlocatedonHPstechnicalwebsite:http://docs.hp.com.

    Usethesetbootppathcommand,wherepathisalegacyhardwarepath,tosettheprimarybootpath,forexample:

    /usr/sbin/setbootp0/0/2/0/0.6

    Usethesetboothpathcommandwherepathisalunpathhardwarepath,tosetthehighavailabilityalternatebootpath,forexample:

    /usr/sbin/setbooth0/5/1/0.0x50001fe15001eead.0x4001000000000000

    Usethesetbootapathcommand,wherepathisapersistentDSF,tosetthealternatebootpath,forexample:

    /usr/sbin/setboota/dev/disk/disk13

    SettingthePRI,HAA,andALTBootPathsUsingtheBootOptionMaintenanceMenuintheEFIBootManager:

    YoucanusetheBootOptionMaintenanceMenuintheEFIBootManagertomanagethePRI,HAA,andALTbootpaths.Justrememberthat:

    PRI

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 7/24

    Theprimarybootpath(PRI)correspondstothefirstbootoptioninthelist

    HAAThehighavailabilityalternatebootpath(HAA)correspondstothesecondbootoptioninthelist

    ALTThealternatebootpath(ALT)correspondstothethirdbootoptioninthelist

    NOTE:Youcanhavemorethanthreeitemsinyourbootoptionslist.Thefirstthreecorrespondtothebootpathsaslistedabove.Additionalitemscanbechosenmanuallyfromthebootoptionslistduringamanualboot.

    1. SelectBootOptionMaintenanceMenufromtheEFIBootManagersmainmenu

    2. UsethefollowingthreeBootOptionMaintenanceMenuitemstoeditthebootoptionslistsothatitreflectsthedevicesonyoursystemthatyouwanttouseforyourPRI,HAA,andALTbootpaths(andanyadditionalbootpathsyouwanttoaddtothelist):

    AddaBootOptionPresentsyouwithalistofpossiblebootdevicesandallowsyoutoselectonetoaddtoyourbootoptionslist

    DeleteBootOption(s)Allowsyoutointeractivelydeleteoneormoreentriesfromyourbootoptionslist

    ChangeBootOrderAllowsyoutoreorderyourbootoptionslist

    3. Whenthebootoptionslistforyoursystemisasyouwantit,selectExittoreturntotheEFIBootManagersmainmenu(whichshouldnowreflectyourneweditstothebootoptionslist).

    ChangingtheContentsofanAUTOFileonaBootDevice

    OnanHPIntegrityServer,duringanautomaticboot(andsomemanualboots),thefile\EFI\HPUX\AUTOonthedeviceyouarebootingfromisusedtolocatethekernelfiletobootfrom.

    TypicallythecontentsoftheAUTOfilearebootvmunix.YoucantemporarilyoverridethecontentsoftheAUTOfile,forexampletobootfromanalternatekernelfile(seeBootingfromanAlternateKernelFile),butifyouwanttobootfromtheotherkernelfilebydefault,orwanttoregularlyusecertainbootoptions,youneedtochangethecontentsoftheAUTOfiletoreflecttheappropriatesettings.

    NOTE:TheAUTOfilecanonlyspecifythebootcommand.Toissueotherhpux.efiloadercommands,youmustinteractdirectlywiththeloader.

    TherearethreebasicwaystochangethecontentsoftheAUTOfileonadevice.TwoofthesecanonlybeaccomplishedusingtheprebootEFIenvironment.ThethirdcanbeaccomplishedwhileHPUXisrunning.

    ChangingtheAUTOfilefromtheEFIShell(preboot)

    ChangingAUTOfromtheHPUX.EFIBootLoader(preboot)

    ChangingAUTOfromaRunningHPUXEnvironment

    Procedure26ChangingtheAUTOfilefromtheEFIShell(preboot)

    ThisprocedurecannotbedonefromarunningHPUXsystem.Itassumesthatyoursystemhasnotyetbeenbooted.IfyouneedtochangethecontentsofadevicesAUTOfilewhileHPUXisrunning,seeChangingAUTOfromaRunningHPUXEnvironment.

    TolistandconfigureanHPUXbootdevicesAUTOfilefromtheEFIShelluseEFIShellcommands(suchascd,ls,andedit)todisplayandedittheEFI\HPUX\AUTOfileontheselecteddevice.

    1. AccesstheEFIShellenvironmentusingtheservers(ornPartitions)systemconsole.Accessthesystemconsoleeitherviatheserversmanagementprocessor(MP)orviaahardwiredconsoleterminal.

    Ifnecessary,interrupttheautobootprocessbyhittingakeyduringtheautoboottimeoutperiod.TheEFIBootManagerwilldisplaythebootoptionsmenu(theEFImainmenu).

    Fromthebootoptionsmenu,selectEFIShell.

    2. SelectthedevicewiththeAUTOfilethatyouwanttochange.

    IMPORTANT:Donotforgetthisstep,especiallyifyouhavemultiplebootabledevices.OnHPIntegrityServerseverybootabledevicecanhaveitsownAUTOfile.IfyouhavenotselectedthedevicecontainingtheAUTOfileyouwanttochange,youmightbeeditinganAUTOfileonadifferentdevice.

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 8/24

    Tolistallcurrentlymappedfilesystems,entermapattheEFIShellprompt:

    Shell>map

    Themapcommanddisplaysallfilesystemsthatareknownandhavebeenmapped.Forexample:

    fs0:Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)/HD(Part1,Sig88F40A3AB99211E18002D6217B60E588)fs1:Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)/HD(Part3,Sig88F40A9EB99211E18004D6217B60E588)blk0:Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)blk1:Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)/HD(Part1,Sig88f40A3AB99211E18002D6217B60E588)blk2:Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)/HD(Part1,Sig88f40A6CB99211E18003D6217B60E588)blk4:Acpi(HWP0002,500)/Pci(2|0)/Ata(Secondary,Master)

    Ifthemapcommandshowsalotofdevicesyoucanusetheboptiontomakeitshowtheoutputonescreenatatime.

    InthelistthatisdisplayedlocatetheentrycorrespondingtothedevicecontainingtheAUTOfileyouwanttochange.Lookattheentriesinthelistthatbeginwiththestringfs#,where#willbeanumber(forexamplefs0,fs1,fs2...andsoon).AttheEFIShellpromptenterthefs#forthedesireddevicefollowedbyacolon:

    Shell>fs0:

    YourdeviceisnowselectedandtheEFIShellpromptwillchangetoreflectthat:

    fs0:\>

    3. ChangedirectoriestowheretheAUTOfileislocated.IntheEFIfilesystemforeachHPUXbootabledevicetheAUTOfileislocatedinthe\EFI\HPUXdirectory:

    fs0:\>cd\EFI\HPUX

    Thepromptchangesagaintoreflectyournewlocation:

    fs0:\EFI\HPUX>

    a. Youcandisplaythecontentsofthedirectoryusingthelscommand:

    fs0:\EFI\HPUX>ls

    Directoryof:fs0:\EFI\HPUX06/03/0403:31p512.06/03/0403:31p512..06/03/0403:35p421,590HPUX.EFI06/03/0403:35p24,576NBP.EFI06/03/0403:35p12AUTO3File(s)446,196bytes2Dir(s)fs0:\EFI\HPUX>

    b. YoucandisplaythecurrentcontentsoftheAUTOfileusingthecatcommand:

    fs0:\EFI\HPUX>catAUTO

    FILE:fs0:\EFI\HPUX\AUTO,Size12bootvmunixfs0:\EFI\HPUX>

    4. TochangethecontentsoftheAUTOfileyoucaneitherusetheeditcommandtoeditthefileusingthefullscreenEFIeditor,orusetheechocommandandredirectitsoutputtotheAUTOfile:

    Tousetheeditcommand,entereditAUTOandconfiguretheAUTOfileusingthefullscreeneditor.

    Tosavechangestothefile,dependingonthesystemyouhaveandwhetheryouareusingahardwiredconsoleornetworkbasedaccess,presstheF2keyortypeEsc2(pressEscthenpress2).Usetheeditorsonscreenpromptstodeterminewhichkeysequencetouse.

    ToexittheEFIeditorpresstheF3key(ortypeEsc3dependingonyoursystemasdescribedinthepreviousparagraph).

    ToconfiguretheAUTOfilewithoutusingthefullscreeneditor,usetheechocommand:

    fs0:\EFI\HPUX>echoboottestvmunix>auto

    Theabovecommandreplacesthepreviouscontents(ifany)oftheAUTOfilewiththestringboottestvmunix.Substitutethenameofyourkernelfilefortestvmunixintheexample.

    NOTE:BecausetheEFIShell(EFIfilesystem)isnotcasesensitiveautoandAUTO(in

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 9/24

    thepreviousexample)areconsideredequivalent.

    AswithHPUXshells,intheaboveexamplethe>charactercausestheechocommandsoutputtoberedirectedtotheautofile.Ifautoexistsitscontentsareoverwritten.Ifautodoesnotexistitiscreatedandwillcontaintheoutputoftheechocommand.

    5. VerifythenewcontentsoftheAUTOfile.UsethecommandcatAUTOtoverifythatthecontentsofAUTOnowreflectwhatyouwantthemto.

    Procedure27ChangingAUTOfromtheHPUX.EFIBootLoader(preboot)

    TolistandconfigureanHPUXbootdevicesAUTOfilefromwithintheHPUX.EFIloaderusetheshowautoandsetautoloadercommands.

    1. AccesstheHPUX.EFIloaderforthebootdevicethatcontainstheAUTOfileyouwanttoconfigure.

    YoucandothiseitherbylaunchingtheloaderfromtheEFIShellinterface,orbyselectingthedevicefromtheEFIBootManagerandinterruptingtheHPUXbootprocesstoaccesstheloadersHPUX>prompt.

    NOTE:IfyouusetheEFIShellinterface,besuretoselectthecorrectbootdevicebeforestartingtheHPUX.EFIbootloaderoryoumightchangethewrongAUTOfile.Fordetailsonhowtoselectthecorrectdevice,seeChangingtheAUTOfilefromtheEFIShell(preboot).

    2. AttheHPUXbootloadersHPUX>prompt,entertheshowautocommandtodisplaythecurrentcontentsoftheAUTOfile:

    HPUX>showauto

    \EFI\HPUX\AUTO=>bootvmunixHPUX>

    3. EnterthesetautocommandtodeleteormodifytheAUTOfile.

    setautoddeletestheAUTOfilefromthecurrentbootdevice.Youmightwanttodothisifyouwanttodisableautomaticbooting.

    setautostringsetstheAUTOfiletocontainthestringspecified.

    Thestringspecifiedmustbeofaformofthebootloadercommand.NootherHPUX.EFIcommandsareallowedintheAUTOfile.

    bootSpecifiestobootthe/stand/vmunixHPUXkernelwithnobootoptions.Forexample:setautobootcreatesanAUTOfilethatcontainsonlythebootcommand.

    bootkernelSpecifiestobootfromthenamedkernelfile.Forexample:setautoboottestvmunixcreatesanAUTOfilethatcontainsonlytheboottestvmunixcommand.

    bootoptionkernelSpecifiestobootthespecifiedkernelfileusingtheloaderoptiongiven.Forexample:setautobootisvmunixcommandcreatesanAUTOfilecontainingbootisvmunix(whichindicatestobootinsingleusermode,asspecifiedbytheisoption).

    Seethehpux(1M)manpagefordetailsonloaderoptions,whichincludeLVMmaintenancemode(lm),VxVMmaintenancemode(vm),tunablemaintenancemode(tm),andothers.

    4. EntertheshowautocommandagaintoverifytheAUTOfilesnewconfiguration.

    Procedure28ChangingAUTOfromaRunningHPUXEnvironment

    ChangingtheAUTOfileforagivenHPUXbootdevicefromwithinarunningHPUXoperatingsystemisathreestepprocess:

    1. CopytheAUTOfilefromtheEFIpartitiononthebootdevicetoafileonanHPUXfilesystem.

    2. EditthecontentsoftheAUTOfiletoreflectthenewsettings.

    3. CopytheeditedAUTOfilebacktotheEFIpartitiononthebootdevice.

    1. CopytheAUTOfilefromtheEFIpartitiononthebootdevicetoafileonanHPUXfilesystem.Usetheefi_cpcommandtodothis.Seeefi_cp(1M)fordetails.Forexample,iftheEFIfilesystemrepresentedbythedevicefile/dev/rdsk/c1t4d0s1containstheAUTOfileyouwanttochange,usethefollowingcommandtocopytheAUTOfiletoyourcurrentdirectory:

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 10/24

    efi_cpd/dev/rdsk/c1t4d0s1u/EFI/HPUX/AUTOAUTO

    IMPORTANT:Theuoptioninthecommandabovetellsefi_cptocopytheAUTOfilefromtheEFIfilesystemtotheHPUXfilesystem.ThinkofitascopyingthefileupfromthelowerlevelEFIprebootenvironment.InStep3ofthisprocedure,theefi_cpcommand,usedwithouttheuoption,willcopytheeditedAUTOfilebacktotheEFIfilesystem.

    ThemostdifficultpartofthisstepisdeterminingwhichdevicefiletousetoreferencetheproperEFIfilesystem.IftheAUTOfileyouwanttochangeistheoneassociatedwiththedeviceyouarecurrentlybootedfrom,hereisonewaytodeterminewhichdevicefiletouse:

    Example28DeterminingtheEFIdiskpartitionofyourcurrentbootdeviceusingLVM

    Note,ifyouareusingVxVMinsteadofLVM,seetheVERITASVolumeManagerdocumentation.

    1. Usethebdfcommandtodisplaythedevicefileforthelogicalvolumethatcontainsyourbootdirectory(/stand):

    bdf|grep/stand

    /dev/vg00/lvol1183500815028816716568%/stand

    Inthiscase(andprobablyinmostcases)thedevicefileforthe/standlogicalvolumeis/dev/vg00/lvol1.

    2. Next,usethelvdisplaycommandtodeterminethenameofthedevicefile(s)ofthephysicaldevicesassociatedwiththelogicalvolumeinthepreviousstepofthisexample(usegrepandtailtofilterthelinesyouneed):

    lvdisplayvk/dev/vg00/lvol1|grep/dev|tail+3

    /dev/disk/disk3_p2112112

    Inthisexample,theHPUXfilesystemontheonephysicaldeviceassociatedwiththe/standdirectory(thedirectorycontainingthekernelfilewebootedfrom)is/dev/disk/disk3_p2.Thep2attheendofthefilenamereferstopartitionnumber2onthephysicaldevice.ThisisusuallythepartitiononthediskthatcontainsHPUXfilesystems.TheEFIpartitionisalmostalwayscontainedinpartition1,soifyouchangethep2top1inthefilenameyoushouldhavethedevicefileyouneedtousefortheefi_cpcommand(/dev/disk/disk3_p1).

    3. Ifthelogicalvolumecontainingthe/standfilesystemcontainsmorethanonephysicaldevice,youhavealittlemoreworktodo.Youhavetodeterminewhichofthemyoubootedfrom,ormoreimportantly,whichoneyouwillbootfromafterchangingitsAUTOfile.Thoughnotalways,itisusuallythedeviceassociatedwithyourPRI(primary)bootpath.

    Usethesetbootcommandwithnooptionstodeterminewhichdeviceyourprimarybootpathcurrentlypointsto,thenusethelssfcommandwitheachdevicefileassociatedwiththelogicalvolumecontaining/stand.Lookforwhichdevicefilehasahardwareaddressthatmatchesyourprimarybootpath.Changethep2top1asintheprevioussubstepandyouhavethenametousewithefi_cp.

    NOTE:Youcanusethisprocedurewithdevicesotherthanyourcurrentbootdeviceifyouhavemultipledevicesyoualternatelybootfrom.Example28DeterminingtheEFIdiskpartitionofyourcurrentbootdeviceusingLVMdescribesacommonoccurrence.

    2. UsethemethodoreditorofyourchoicetochangethecontentsoftheAUTOfileinyourcurrentdirectory.Forexample,youmightwanttochangethecontentsoftheAUTOfiletoautomaticallybootfromanalternatekernelfile:

    BeforethechangeAUTOcontains:

    bootvmunix

    AfteryoureditsAUTOcontains:

    boottestvmunix

    3. CopythechangedAUTOfilebacktotheEFIfilesystemusingtheefi_cpcommand(withouttheuoption):

    efi_cpd/dev/rdsk/c1t4d0s1AUTO/EFI/HPUX/AUTO

    BootingintoSingleUserMode

    YoucanbootHPUXinsingleusermodebyusingthefollowingprocedure:

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 11/24

    Procedure29BootingHPUXIntoSingleUserModeonHPIntegrityServers

    FromtheEFIShellenvironment,bootinsingleusermodebystoppingthebootprocessattheHPUX.EFIinterface(theHPUXBootLoaderprompt,HPUX>)andenterthebootisvmunixcommand.

    1. AccesstheEFIShellenvironmentforthenPartitiononwhichyouwanttobootHPUXinsingleusermode.

    Logintotheserviceprocessor(MPorGSP)andenterCOtoaccesstheConsolelist.SelectthenPartitionconsole.

    Whenaccessingtheconsole,confirmthatyouareattheEFIBootManagermenu(themainEFImenu).IfatanotherEFImenu,selecttheExitoptionfromthesubmenusuntilyoureturntothescreenwiththeEFIBootManagerheading.

    FromtheEFIBootManagermenu,selecttheEFIShellmenuoptiontoaccesstheEFIShellenvironment.

    2. Makesuretheselectedbootdeviceistheonethatcontainsthekernelfileyouwanttobootfrom.Ifyouarenotsure:

    a. EntermapattheEFIshellprompttolistbootabledevicesonyoursystem.

    Thedeviceswillbelistedwithentriesthatbeginwithfs#:(where#isanumbersuchas0,1,2,3,etc.).Forexample:

    fs0:Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)/HD(Part1,Sig88F40A3AB99211E18002D6217B60E588)fs1:Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)/HD(Part3,Sig88F40A9EB99211E18004D6217B60E588)blk0:Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)blk1:Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)/HD(Part1,Sig88f40A3AB99211E18002D6217B60E588)blk2:Acpi(HWP0002,500)/Pci(2|0)/Ata(Primary,Master)/HD(Part1,Sig88f40A6CB99211E18003D6217B60E588)blk4:Acpi(HWP0002,500)/Pci(2|0)/Ata(Secondary,Master)

    Ifthemapcommandshowsalotofdevicesyoucanusetheboptiontomakeitshowtheoutputonescreenatatime.

    b. Determinewhichentrymapstothedevicecontainingthekernelfileyouaretryingtobootfrom,andenterthefs#:nameattheshellprompt.

    Forexample,iftheentryforthedeviceyouwant(fromalistthatislongerthantheaboveexample)istaggedasfs7:,enterfs7:attheshellprompt:

    Shell>fs7:

    Thedeviceassociatedwithentryfs7:isnowtheselectedbootdevice.

    3. WhenaccessingtheEFISystemPartitionforthedesiredbootdevice,issuetheHPUXcommandtoinvokethe\EFI\HPUX\HPUX.EFIloaderontheselecteddevice.

    4. BoottotheHPUXBootLoaderprompt(HPUX>)bytypinganykeywithinthetensecondsgivenforinterruptingtheHPUXbootprocess.YouwillusetheHPUX.EFIloadertobootHPUXinsingleusermodeinthenextstep.

    Afteryoutypeakey,theHPUX.EFIinterface(theHPUXBootLoaderprompt,HPUX>)isprovided.ForhelpusingtheHPUX.EFIloader,typethehelpcommand.ToreturntotheEFIShell,typeexit.

    fs7:\>hpux(c)Copyright19902002,HewlettPackardCompany.AllrightsreservedHPUXBootLoaderforIA64Revision1.723PressAnyKeytointerruptAutoboot\efi\hpux\AUTO==>bootvmunixSecondslefttillautoboot9[UserTypesAKeytoStoptheHPUXBootProcessandAccesstheHPUX.EFILoader]TypehelpforhelpHPUX>

    5. AttheHPUX.EFIinterface(theHPUXBootLoaderprompt,HPUX>)enterthebootisvmunixcommandtobootHPUX(the/stand/vmunixkernel)insingleuser(is)mode.Ifyouarebootingfromadifferentkernelfileintosingleusermodesubstitutetheotherfilesnameforvmunix.Theisoptioniswhatspecifiessingleusermode.

    HPUX>bootisvmunix>SystemMemory=4063MBloadingsection0...................................................(complete)loadingsection1........(complete)loadingsymboltableloadingSystemDirectory(boot.sys)toMFS....loadingMFSFILESDirectory(bootfs)toMFS......Launching/stand/vmunixSIZE:Text:25953K+Data:3715K+BSS:3637K=Total:33306KConsoleisonaSerialDeviceBootingkernel...

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 12/24

    6. Ifyouareaccessingthesystemconsolethroughthemanagementprocessorandyouarenolongerusingit,exittheconsoleandserviceprocessorinterfaces.

    ToexittheEFIenvironmenttype^B(ControlB)thisexitsthenPartitionconsoleandreturnstotheserviceprocessorMainMenu.Toexittheserviceprocessor,typeXattheMainMenu.

    BootingintoLVM(orVxVM)MaintenanceMode

    TheprocedureforbootingHPUXintoLVMMaintenanceModeisthesameasforbootingintosingleusermode(SeeBootingHPUXIntoSingleUserModeonHPIntegrityServersfordetails),exceptusethelmbootoptioninsteadoftheisbootoption:

    HPUX>bootlmvmunix

    ForVxVMMaintenanceModeuse:

    HPUX>bootvmvmunix

    BootingHPUXonHP9000(PARISC)Systems:DetailsandVariations

    AStandardBoot(PARISCSystems)

    HerearemoredetailsaboutwhathappensduringatypicalHPUXbootupsequenceonanHP9000System.IfyouarebootinganHPIntegrityServerseeBootingHPUXonHPIntegrityServers:DetailsandVariations.

    1. Poweronexternaldevices:.Ifnecessary,turnonallexternalperipheralsanddevicesthatareattachedtoyourcomputer(forexample,diskdrives,tapedrives,printers,terminals,busconverters).

    Oncethedeviceshavecompletedtheirselfchecktests,proceedtothenextstep.

    2. Poweronyoursystem(ornPartition):.TurnonorresetthecomputerornPartition.

    SystemhardwareorhardwareassociatedwithannPartitionyouarebootingwillgothroughaseriesofselfteststoverifythattheprocessors,memory,andothersystemcomponentsareinworkingorder.

    3. Bootdeviceselection:.Yoursystem(orthenPartitionyouarebooting)mustlocateakernelfiletobootfrom.Therearetwopartstothesearch:

    Part1determinethehardwarepathtothebootdevice

    Part2determinewhichkernelfileonthehardwarepathtoboot(seeStep4)

    Pathvariablesstoredinnonvolatilememorysetuptothreepossiblebootpathsfromwhichtoattemptaboot:

    PRIThePRImarybootpathisthefirstbootpathtotry.Setthevalueofthispathtopointtothedevicefromwhichyouwillbootmostoften.

    HAATheHighAvailabilityAlternatebootpath,onsystemsthatsupportit,isthepathyouwantyoursystemtobootfromshouldyourprimarybootpathfail.

    ALTTheALTernatebootpathisthehardwarepathtoanalternatebootsource(forexample,atapedrive,networkbasedbootsource,oropticaldiscdrive).

    Onsomesystemsonlytheprimarybootpathisautomaticallytried.Onthosesystems,inordertobootfromthealternatebootpathyouneedtooverridethe10secondautobootdelay.

    Onothersystems,firmwarecanbeconfiguredtoassociatevariousbootactionswitheachbootpath.Thesebootactionsallowyoutotellthesystem:

    whethertoattemptorignoreabootpath

    ifunsuccessfulbootingfromabootpath,whetherornottotrythenextpathinthesequencePRI>HAA>ALT

    whetherornottousetheBootConsoleHandler(BCH)interface

    Forinformationaboutthespecifichardwarepathsavailableonyoursystem,refertotheoutputofioscan(seeioscan(1M)fordetailsonhowtorunioscan).Also,somepathinformationisphysicallyprintedonyoursystem.

    Usually,theprimarybootpathpointstothedevicefromwhichyoumostfrequentlybootandthatdeviceisavailable.

    Oncethebootdevicehasbeeninitialized,PDC(firmwareroutines)accessaspeciallyformatted

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 13/24

    areaonthebootdevice,calledaLIFvolume.PDCloadstheInitialSystemLoader(ISL)intomemoryandtransferscontroltoit.

    4. Kernelfileselection:.Ifuninterrupted(andiftheautobootflagisenabledSeeAutomaticVersusManualBooting)ISLwillloadandinitiatetheHPUXspecificbootloaderhpux.

    5. LoadandinitiatetheHPUXoperatingsystem:.HPUXusesthecontentsoftheAUTOfileintheLIFareaonthebootdeviceto:

    1. Locatethekernelfiletoboot.

    2. LoadtheHPUXkernelintomemory.

    3. InitiatetheHPUXkernel.

    Typically,theAUTOfilecontains:

    hpuxvmunix

    whichtellshpuxtoloadthekernelfromthefilecalledvmunixfromthedefaultfilesystem(/standthefile/stand/vmunix).

    6. HPUXgoesthroughitsinitializationprocessandbeginsnormaloperation.

    AutomaticVersusManualBooting

    PDCsetsupthebootandconsoledevicesusingtheBootConsoleHandler(BCH).WhichactionstheBCHtakesoncetheconsoleandbootdeviceshavebeeninitializeddependonwhetherornottheoperatormanuallyinterruptsanautoboot,andonthestateoftwoflagsinnonvolatilememory:autobootandautosearch.

    OverridinganAutomaticBoot

    Tooverrideanautomaticboot,hitanykeyontheconsolekeyboardwithintheautobootdelayperiod(usually10seconds).TheBootConsoleHandlerwilldisplayitsmainmenuandallowyoutointeractwithit.

    Enabling/DisablingAutoboot

    HP9000systemsrunningHPUXareusuallysetuptobootautomaticallywhentheirpoweristurnedon.Thisisanimportantfeaturewhensystemsareinstalledinlocationsthatarenotalwaysattendedbyanoperatororsystemadministrator.Shouldthepowerfailatthecomputersite,thesystemcan(usually)rebootitselfwithoutinputfromanoperator.Theautobootfeatureisalsoaconvenience.

    Therearetimeswhenyoudonotwantsystemstoautomaticallybootthemselves,suchaswhenyouwanttobootfromadifferentdeviceorkernelfile.SeeBootingfromanAlternateDeviceorBootingfromanAlternateKernel.

    Thefollowingtabledescribeshowtheautobootandautosearchflagsettingsaffectthebootsequence:

    Table21HowautobootandautosearchFlagSettingsAffecttheBootSequenceautoboot autosearch BootType Whathappens

    OFF OFF ManualBoot TheBCHinteractswiththeusertoobtainthebootabledevicepath

    OFF ON BootSearch TheBCHskipstheprimarypathandtriesalternatepath.Ifthealternatepathsarenotconfiguredtobootorfail,theBCHinteractswiththeusertoselectone

    ON OFF AutoBoot TheBCHtriestheprimarybootpathifitisnotbootable,theBCHinteractswiththeusertoobtainabootabledevicepath

    ON ON AutoSearch TheBCHtriestheprimarybootpathifitisnotbootable,theBCHtriesnextpath.

    Tohaveyourcomputerbootitselfwhenpoweredonorreset,theautobootflagshouldbeenabled.

    Torequireactionbyanattendanttobootthecomputer,theautobootflagshouldbedisabled.

    SettingtheValueoftheautobootFlag

    Thevaluesoftheautobootandautosearchflagscanbesetorchangedinseveralways:

    Intheprebootenvironment,youcansetthemfromtheBootConsoleHandlersconfigurationmenu.

    FromarunningHPUXsystemyoucanusethesetbootcommand.

    Procedure211SettingAutobootandAutosearchFlagsUsingtheBootConsoleHandler

    NOTE:StartingwithHPUX11iv3,thebootpathmaybespecifiedusingeitherthelegacy

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 14/24

    hardwarepathformatorthelunpathhardwarepathformatformassstoragedevices.Whenusingthelunpathhardwarepathformat,afewthingsneedtobenoted.

    Someelementsofthelunpathhardwarepath(thetargetaddressandtheLUNaddress)mayhaveasizeupto64bits.TheBCHinterfacecanonlyhandleamaximumsizeof32bits.Therefore,allelementsgreaterthan32bitsmustbeenteredinaspecialway.Theseelementsmustbesplitintotwo32bitelementsandenteredas2elementsseparatedbya.,forinstance,thehwpath0/5/1/0.0x5000fe15001eead.0x4001000000000000wouldbeenteredas0/5/1/0.0x50001fe1.0x5001eead.0x40010000(lastnullelementomitted).

    Note:ioscanNecanbeusedtogeneratethesplitformabove.

    IntheBCHmenu,bootpathssettoalunpathhardwarepathwillbedisplayedusingthesplitformdescribedabove.

    Note:Fewoldersystemsdisplayelementsindecimalonly.Forthesesystems,theabovepathwouldlooklike0/5/1/0.13242185441.134203917.1073807360.UsersneedtoconverteachelementtoHEXtorecognizethetargetportandtheLUNaddress.

    TheSearchcommandintheBCHmenubehavesthesamewayasonversionspriortoHPUX11iv3anddoesnotdisplayanyinformationaboutthelunpathhardwarepaths.Therefore,inordertoenteralunpathhardwarepath,theuserneedstoknowinadvancethepathtoenterasitcannotbeselectedfromtheSearchmenu.

    1. Afterpoweringonorresettingyourcomputer(ornPartition)takecontrolofthebootprocessbyhittinganykeyontheconsolekeyboardsothatautoboot/autosearchwillnotbootthesystemautomatically(iftheyarecurrentlyenabled).TheBootConsoleHandlerwilldisplayitsmainmenu.

    TheBootConsoleHandler(BCH)willdisplayitsmainmenuandpromptforacommand:

    MainMenu:Entercommand>

    2. AccesstheBCHConfigurationmenubyenteringCOattheMainmenu,andsetthebootactionforeachbootpath,asdesired,byusingthePATHFLAGScommand.

    AttheBCHConfigurationmenu,youcanlistthepathflags(bootactions)forallbootpathvariablesbyenteringPATHFLAGSwithnoarguments

    Tosetthebootactionforeachofthebootpaths,enterPATHFLAGSVARaction,whereVARisthebootpathVariable(PRI,HAA,ALT)andactionisthebootaction(0forgotoBCH,1forboot,iffail,gotoBCH,2forboot,iffailtrynextpath,or3forskipthispath,trynextpath).

    Forexample,toconfigurethesystemtobootfromthePRIdeviceor(ifPRIfailstoboot)theHAAdevice,usethefollowingtwoBCHConfigurationcommands:PATHFLAGSPRI2andPATHFLAGSHAA1,asshownbelow:

    ConfigurationMenu:Entercommand>PATHFLAGSPRI2PrimaryBoothPathActionBootActions:Bootfromthispath.Ifunsuccessful,gottothenextpath.ConfigurationMenu:Entercommand>PATHFLAGSHAA1HAAlternateBootPathActionBootActions:Bootfromthispath.Ifunsuccessful,gotonextpath.ConfigurationMenu:Entercommand>

    Forotherhelpinsettingpathflags,enterHELPPATHFLAGSattheBCHConfigurationmenuprompt.

    SettingAutobootandAutosearchFlagsUsingtheHPUXsetbootCommand.YoucansetthevaluesoftheautobootandautosearchflagsfromarunningHPUXsystem.Todothis,usethesetbootcommand(seesetboot(1M)forcompletedetails).

    Example29EnablingtheAutobootFlagUsingsetboot

    /usr/sbin/setbootbon

    Example210DisablingtheAutobootFlagUsingsetboot

    /usr/sbin/setbootboff

    Example211EnablingtheAutosearchFlagUsingsetboot

    /usr/sbin/setbootson

    Example212DisablingtheAutosearchFlagUsingsetboot

    /usr/sbin/setbootsoff

    ChangingthePRI,HAA,andALTBootPaths

    HP9000systemsallowyoutodefineaprimarybootpathandanalternatebootpath,andinmanycasesa

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 15/24

    highavailabilityalternatebootpath.

    Theprimarybootpathallowsautoboottoworkproperly,andallthreedefinitionsallowyoutoeasilyrefertothecorrespondinghardwarepathswhenyouneedto(forexample,intheBootConsoleHandleryoucanusethecommandbootalttobootfromthehardwaredeviceassociatedwiththeALTbootpath).

    YoucanmanagethebootpathsusingthesetbootcommandwhenHPUXisrunning,orbyusingtheBootConsoleHandlerinterfaceinaprebootenvironment.

    SettingthePRI,HAA,andALTBootPathsusingtheHPUXsetbootcommand:Whenyouusesetboottoconfiguretheprimary(PRI),highavailabilityalternate(HAA),oralternate(ALT)bootpaths,thenewdevicepaththatyouspecifyreplacestheoriginalbootoptionsetting.

    NOTE:Thebootdevicepaththatyouspecifyinthesetbootcommand(pathinthefollowingexamples)mustbeavalidHPUXhardwarepathtoabootableHPUXdevice.

    StartingwithHPUX11iversion3,thepersistentDSFnameandthelunpathhardwarepatharevalidentriestothesetbootcommand,inadditiontothelegacyhardwarepath.Regardlessofthetypeofargumentpassedininputtosetboot,setbootstoresinstablestorageanddisplaysinoutputanactivelunpathhardwarepathtothedevice.Thislunpathhardwarepathmaybeautomaticallyreplacedbyanotheractivelunpathuponfailureoftheinitiallyconfiguredlunpath.Formoredetails,seethesetboot(1M)inHPUX11iv3whitepaperlocatedonHPstechnicalwebsite:http://docs.hp.com.

    Usethesetbootppathcommand,wherepathisalegacyhardwarepath,tosettheprimarybootpath,forexample:

    /usr/sbin/setbootp0/0/2/0/0.6

    Usethesetboothpathcommandwherepathisalunpathhardwarepath,tosetthehighavailabilityalternatebootpath,forexample:

    /usr/sbin/setbooth0/5/1/0.0x50001fe15001eead.0x4001000000000000

    Usethesetbootapathcommand,wherepathisapersistentDSF,tosetthealternatebootpath,forexample:

    /usr/sbin/setboota/dev/disk/disk13

    Procedure212SettingthePRI,HAA,andALTBootPathsUsingtheBootConsoleHandler

    NOTE:AfewoldersystemsdisplayelementsinHEX.Thesesystemsaretherp4440,rp3440,rp3410,andHP9000Superdomeservers.

    1. Afterpoweringonorresettingyourcomputer(ornPartition)takecontrolofthebootprocessbyhittinganykeyontheconsolekeyboardsothatautoboot/autosearchwillnotbootthesystemautomatically(iftheyarecurrentlyenabled).TheBootConsoleHandlerwilldisplayitsmainmenu.

    TheBootConsoleHandler(BCH)willdisplayitsmainmenuandpromptforacommand:

    MainMenu:Entercommand>

    2. EnteroneofthefollowingBCHcommands(dependingonyourneeds):

    Example213SettingthePRI(PrimaryBootPath)UsingtheBCH

    Example:Settheprimarybootpathaddressto0/0/0/2/0.5

    MainMenu:EnterCommand>papri0/0/0/2/0.5

    TIP:Intheabovecommandpaisashortcutforthepathcommand.IntheBootConsoleHandlerinterface,youcanoftenabbreviatecommandsandoptions(priforprimary).SeethehelpsystemintheBCHinterfaceforacceptableabbreviations.

    Example214SettingtheHAA(HighAvailabilityAlternateBootPath)UsingtheBCH

    Example:Setthehighavailabilityalternatebootpathaddressto0/0/0/3/1.6

    MainMenu:EnterCommand>pahaa0/0/0/3/1.6

    Example215SettingtheALT(AlternateBootPath)UsingtheBCH

    Example:Setthealternatebootpathaddressto0/0/0/3/0.6

    MainMenu:EnterCommand>paalt0/0/0/3/0.6

    Example216SettingtheALT(AlternateBootPath)UsingtheBCH

    Example:Setthealternatebootpathaddresstothelunpathhardwarepath0/0/0/3/0.0x50001fe15001eead.0x4001000000000000

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 16/24

    MainMenu:EnterCommand>paalt0/0/0/3/0.0x50001fe1.0x5001eead.0x40010000

    BootingPARISCSystemsfromanAlternateBootSource

    Abootsourceconsistsoftwoparts:

    Abootdevicecontainingafilesystemwherekernelfilesarestored.

    Akernelfilecontainingthekerneltoboot.

    Yourprimarybootsourceisakernelfileonyourprimarybootdevice.Thisiswhere(ifyoursystemissetupforautomaticbooting)yoursystemwillbootfromduringanautoboot.

    Youcanoverridewhereyoursystembootsfrombymanuallyinterruptingtheautomaticbootandspecifyingadifferentbootdeviceoradifferentkernelfileonyourprimarybootdevice.

    BootingfromanAlternateDevice

    Therearetimeswhenyouwillneedtobootfromadeviceotherthanthedevicethatyounormallybootfrom.Forexample,ifyourprimarybootdiskfails,youmightneedtobootyoursystemeitherfromadifferentdiskorfromarecoverytape.

    Procedure213UsingtheBootConsoleHandlertoBootfromanAlternateBootDevice

    1. Afterpoweringonorresettingyourcomputer(ornPartition)takecontrolofthebootprocessbyhittinganykeyontheconsolekeyboardsothatautoboot/autosearchwillnotbootthesystemautomatically(iftheyarecurrentlyenabled).TheBootConsoleHandlerwilldisplayitsmainmenu.

    TheBootConsoleHandler(BCH)willdisplayitsmainmenuandpromptforacommand:

    MainMenu:Entercommand>

    2. UsetheBCHbootcommandtospecifywhereyouwanttobootthesystemfrom.

    YoucanissuetheBOOTcommandinanyofthefollowingways:

    BOOT

    IssuingtheBOOTcommandwithnoargumentsbootsthedeviceattheprimary(PRI)bootpath.

    BOOTbootvariable

    Thiscommandbootsthedeviceindicatedbythespecifiedbootpath,wherebootvariableisthePRI,HAA,orALTbootpath.

    Forexample,BOOTHAAbootsthehighavailabilityalternatebootpath.

    BOOTLANINSTALLorBOOTLAN.ipaddressINSTALL

    TheBOOT...INSTALLcommandsbootthesystemfromanyavailableIgniteserverorfromtheIgniteserverspecifiedbyIPaddress.Formoreinformationonwhathappenswhendoinganinstallationboot,seetheIgniteUXInstallationBootingwhitepaperavailableonHPstechnicaldocumentationwebsite:

    http://docs.hp.com

    BOOTpath

    Thiscommandbootsthedeviceatthespecifiedpath.YoucanspecifythepathinHPUXhardwarepathnotation(forexample,0/0/2/0/0.13)orinpathlabelformat(forexample,P0orP1).

    NOTE:IfyouspecifythepathinpathlabelformatthenpathreferstoadevicepathreportedbythelastBCHSEARCHcommand.

    Example217BootfromthebootdevicespecifiedintheALTbootpath

    MainMenu:Entercommandormenu>bootalt

    Example218Bootfromthebootdevicespecifiedathardwareaddress0/0/2/0/0.14:

    MainMenu:Entercommandormenu>boot0/0/2/0/0.14

    Example219BootfromthebootdevicespecifiedatpathlabelP2:

    MainMenu:Entercommandormenu>search

    PATH#DevicePath(dec)DeviceTypeP00/0/2/0/0.13RandomaccessmediaP10/0/2/0/0.14RandomaccessmediaP2

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 17/24

    0/0/2/0/0.0Randomaccessmedia

    MainMenu:Entercommandormenu>bootP2

    Example220BootfromthedefaultHPUXinstallserver

    MainMenu:Entercommandormenu>bootlan

    Example221BootfromtheHPUXinstallserverat192.nn.xx.yyy

    MainMenu:Entercommandormenu>bootlan.192.nn.xx.yyINSTALL

    BootingfromanAlternateKernel

    Ifyouhavebuiltanewkernel,orhaveanalternatekernelfilethatyouwanttobootfrom:

    BootfromthedevicecontainingthealternatekernelfileusingtheBOOTcommandfromtheBCHinterface.

    AfteryouissuetheBOOTcommand,theBCHinterfacepromptsyoutospecifywhetheryouwanttostopattheISLprompt.

    TobootthefromtheHPUXkernelfilerepresentedintheAUTOfileonthebootdevicewithoutstoppingattheISLprompt,enterntoautomaticallyproceedpastISLandexecutethecontentsoftheAUTOfileontheselecteddevice.BydefaulttheAUTOfileisconfiguredtoload/stand/vmunixthoughyoucanchangethat(SeeChangingtheContentsoftheAutoexecuteFile).

    MainMenu:Entercommandormenu>BOOTPRIPrimaryBootPath:0/0/1/0/0.15DoyouwishtostopattheISLpromptpriortobooting?(y/n)>>nISLbootinghpuxBoot:disk(0/0/1/0/0.15.0.0.0.0.0;0)/stand/vmunix

    TobootanHPUXkernelotherthanthatwhichispointedtointheAUTOfile,ortobootHPUXinsingleuserorLVMmaintenancemode,stopattheISLpromptandspecifytheappropriateargumentstothehpuxloader.

    SpecifytheHPUXpathnameofthealternatekernelfilethatyouwanttobootaspartofthedevicefileargumentinthehpuxbootcommand.Forexample:

    ISL>hpuxbootdisk(1/0/12/1/1.5.0)/stand/alt_kernel_file_name

    ChangingtheContentsoftheAutoexecuteFile

    OnHP9000systems,animportantpartofwhatmakesanautomaticbootpossibleisafileknownasanautoexecutefilethatcontainsthecommandthatyounormallyusetoboottheHPUXoperatingsystem(thehpuxcommandthatyouwouldenterattheISL>prompt).ThecontentsofthisfileareusedduringthebootprocesswhensomeorallofthehpuxcommandelementshavebeenomittedfromthecommandgiventoISL,asinthecaseofautomaticbooting.

    TheautoexecutefileisnotlocatedinanyHPUXfilesystembecauseitscontentsareneededbeforeHPUXisrunning(beforeHPUXcanaccessitsfilesystems).Instead,theautoexecutefile,calledAUTO,islocatedintheLIFarea(sometimescalledthebootarea)ononeofyourbootabledisks.ThisistheareaiswhereISLitselfresides.

    YourarelyneedtochangethecontentsoftheAUTOfile.However,thereareoccasionswhenyoumightwantto,suchaswhenyoucreateanewkernelfile(withanameotherthanthedefault,/stand/vmunix)thatyouregularlywanttobootfrom,ortobootfromadeviceonadifferentdiskfromwhereISLresides.

    TocreatenewcontentsfortheAUTOfile,usethe/usr/sbin/mkbootcommand:

    mkboota"contentsofautofile"device_file_name

    Example:

    mkboota"hpuxdisc(8.0.10)/stand/vmunix.new"/dev/rdsk/c0t0d0

    Seemkboot(1M)fordetails.

    TodisplaytheAUTOfilewhenHPUXisrunning,enter:

    /usr/bin/lifcp/dev/rdsk/c0t0d0:AUTO

    YoucanalsodisplaythebootcommandstringintheAUTOfileattheISL>prompt:

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 18/24

    ISL>lsautofl

    BootingintoSingleUserMode

    Ifyouneedtobootasystemintosingleusermode,forexampletomakesurenooneelselogsonwhenyoubootthesystemtodomaintenancework:

    1. Afterpoweringonorresettingyourcomputer(ornPartition)takecontrolofthebootprocessbyhittinganykeyontheconsolekeyboardsothatautoboot/autosearchwillnotbootthesystemautomatically(iftheyarecurrentlyenabled).TheBootConsoleHandlerwilldisplayitsmainmenu.

    TheBootConsoleHandler(BCH)willdisplayitsmainmenuandpromptforacommand:

    MainMenu:Entercommand>

    2. BootthedesireddeviceusingtheBOOTcommandattheBCHinterface,andspecifythatthebootprocessstopattheISLprompt(replyytothestopattheISLpromptquestion).

    MainMenu:Entercommandormenu>BOOTALTAlternateBootPath:0/0/0/3/0.6DoyouwishtostopattheISLpromptpriortobooting?(y/n)>>yInitializingbootDevice.BootIODependentcode(IODC)Revision2BootPathInitialized.HARDBooted.ISLRevisionA.00.44Mar12,2003ISL>

    3. FromtheISLprompt,issuetheSecondarySystemLoader(hpux)commandtoboottheHPUXkernelinsingleusermode:

    Example222BootHPUXinsingleusermodeonanHP9000System:

    ISL>hpuxisboot/stand/vmunix

    ToexittheISLpromptandreturntotheBCHinterface,issuetheEXITcommandinsteadofspecifyingtheabovehpuxloadercommand.

    Refertothehpux(1M)manpageforadetailedlistofotherhpuxloaderoptions.

    Example223ExampleSingleUserHPUXBoot

    ISLRevisionA.00.44Mar12,2003ISL>hpuxis/stand/vmunixBoot:disk(0/0/2/0/0.13.0.0.0.0.0;0)/stand/vmunix8241152+1736704+1402336start0x21a0e8....INIT:OverridingdefaultlevelwithlevelsINIT:SINGLEUSERMODEINIT:Running/sbin/sh#

    Thesystemwillbootintosingleusermodewatchfortheconfirmationmessages:

    INIT:Overridingdefaultlevelwithlevel`s'

    INIT:SINGLEUSERMODE

    4. Ifyouaccessedthesystemconsoleandserviceprocessor(managementprocessor)interfacesviaanetwork,exittheconsoleandserviceprocessorinterfacesiffinishedusingthem.

    ToexittheBCHenvironmenttype^B(ControlB)thisexitsthenPartitionorsystemconsoleandreturnstotheserviceprocessorMainMenu.Toexittheserviceprocessor,typeXattheMainMenu.

    BootingintoLVMMaintenanceMode

    TobootHPUXinLVMMaintenancemodefollowtheprocedureforbootingHPUXintosingleusermode(SeeBootingintoSingleUserMode):

    ISL>hpuxlmboot

    Theboot/rootlogicalvolumesaretheonlylogicalvolumesthatareinaknownplacewhenyourLVMconfigurationdatahasbeenlost.MaintenancemodeisusefulonsuchsystemsifastandardboothasfailedduetoLVMconfigurationproblems.YoumustresolvetheLVMconfigurationproblemandthenreboot.

    CAUTION:Whenyoubootyoursysteminmaintenancemode,donotactivatetherootvolumegroupanddonotchangetomultiusermode(forexample,byspecifying/sbin/init2).Ifyoudo,youmightcorrupttherootfilesystem.

    WhenyouhaverepairedorrestoredtheLVMconfigurationinformation,rebootthesystemusingtherebootcommandwiththenoption.Thisavoidsoverwritingyourdiskbasedrepairswiththeoldinformationstillstoredinmemorybuffers.

    /usr/sbin/rebootn

    YoucanfindmoreinformationaboutLVMinHPUXSystemAdministratorsGuide:LogicalVolumeManagement.

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 19/24

    SpeedingtheBoot:SpeedyBoot

    OnmanyHPIntegrityServersandHP9000Systems,afirmwarebasedfeaturecalledSpeedyBootallowsyoutobypasssomeoftheboottimesystemtestsinordertobootyoursystemmorequickly.

    NOTE:HPrecommendsthatallselftestsbeperformed,butrecognizestheneedtohaveyoursystemavailableasquicklyaspossible.

    Ifyouareconfidentthatyoursystemhardwareisfunctioningproperly,youmaychoosetoskipcertainboottimesystemtestsinfavorofhavingyoursystembootupmorequickly.

    TheSpeedyBootfeaturesofyoursystemallowyoutospecifywhichteststoperform(orskip)andwhethertodothisonlyforthenextbootorforthenextandallsubsequentboots.Thereareseveralwaystodefinewhichtestsareperformed.Whichyouusedependson:

    whetheryoursystemisrunningornotwhenyouconfigureSpeedyBootsettings

    whetheryoursystemisanHPIntegrityServeroranHP9000System[1]

    whetheryouwanttoconfiguretheSpeedyBootsettingsforonlythenextbootorforallsubsequentbootsaswell

    whichreleaseofHPUXyouarerunning(ifyouconfigureitusingthesetbootcommand)

    SpeedyBootisachievedbyreducingthenumberoffirmwareteststhatareperformedatboottime.Youspecifywhichtestsareperformed.Thetestsinclude:

    earlyCPUtests

    lateCPUtests

    memoryinitialization(HPIntegrityServersonly)

    fullmemorytests

    platformdependenttests(HPIntegrityServersonly)

    I/Ohardwaretests(HPIntegrityServersonly)

    processorhardwaretests(HP9000Systemsonly)

    centralelectroniccomplextests(HP9000Systemsonly)

    chipsettests(HPIntegrityServersonly)

    Youcanbeindependentlyspecifywhichtestswillbeperformed:

    forthenextbootonly

    forallsubsequentboots

    ThetestsaredescribedinSystemBootTests.

    NOTE:Byturningoffsomeoralloftheboottests,youcanshortenboottime,perhapssignificantly.However,intheeventofasystempanicorbootfailure,alltestswillbeexecutedonthesubsequentboot.

    SystemBootTests

    Whenyoursystemboots,itperformsthetestsdescribedinTable22.Thesearekeywordsforthehardwareteststhatareexecutedbyprocessordependentcode(PDC)orfirmwareuponabootorrebootofthesystem.

    Table22SpeedyBootTestsTestName Values Description

    all onoffpartial

    Allthelistedtests.

    SELFTESTS onoffpartial

    Includestheearly_cpuandlate_cputests.ThisisequivalenttotheSELFTESTSoptioninthebootconsolehandler(BCH)servicemenu.Thedifferenceisthatsetbootcancontrolthesubtestsseparately,whileBCHcannot.

    early_cpu onoff

    Whenon,runfirmware,cache,andCPUspecifictests.Performedoutoffirmware.Whenoff,skipthetests.

    late_cpu onoff

    Whenon,runfirmware,cache,andCPUspecifictests.Performedoutofmemoryandthereforefasterthantheearly_cputests.Whenoff,skipthetests.

    FASTBOOT onoff

    Includesthefull_memoryandPDHtestsonHP9000Systems(PARISC).IncludesthePlatformandFull_memorytestsonHP

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 20/24

    partial IntegrityServers.ThisisequivalenttotheFASTBOOToptioninthebootconsolehandler(BCH)servicemenu.Thedifferenceisthatsetbootcancontrolthesubtestsseparately,whileBCHcannot.Note:WhenFASTBOOTison,thetestsareperformed,andviceversa.

    full_memory

    (Notelowercasef)

    onoff

    Whenon,runwrite,readwrite,andreadtestsonallmemorylocations.Whenoff,onlyinitializememory.SupportedonlyonHP9000(PARISCbased)systems.

    Platform onoff

    Whenon,enablesgeneralplatformhardwaretests.Whenoff,donotperformplatformhardwaretests.SupportedonlyonHPIntegrityServers.

    Full_memory

    (NoteUppercaseF)

    onoff

    Whenon,enablesfulldestructivememorytests.Whenoff,donotperformfulldestructivememorytests.SupportedonlyonHPIntegrityServers.

    PDH onoff

    Processordependenthardware.Whenon,testachecksumofreadonlymemory(ROM).Whenoff,donot.

    CEC onoff

    Centralelectroniccomplex.Whenon,testlowlevelbusconvertersandI/Ochips.Whenoff,donot.

    CECisnotavailableonallsystems.

    Memory_init onoff

    Whenon,enablesfulldestructivememorytests.Whenoff,donotperformfulldestructivememorytests.SupportedonlyonHPIntegrityServers.

    IO_HW onoff

    IOhardwaretests.Whenon,enablessystemfirmware(orEFIdrivers)toperformallthetestsofIOhardware(forbootdevicesonly).Whenoff,donotperformthesetests.SupportedonlyonHPIntegrityServers.

    Chipset onoff

    Whenon,enableschipsettests.Whenoff,donotperformchipsettests.SupportedonlyonHPIntegrityServers.

    ViewingyourSystemsSpeedyBootSettings

    Ifyoursystemiscurrentlybooted,youcandisplaytheSpeedyBootsettingsusingthevoptiontothesetbootcommand:

    Example224DisplayingCurrentSpeedyBootSettingsforyourSystem(HP9000sampleoutput)

    setbootv

    TESTCURRENTSUPPORTEDDEFAULTNEXTBOOTallpartialpartialpartialpartialSELFTESTSpartialyesonpartialearly_cpuoffyesonofflate_cpuonyesononFASTBOOTpartialyesonpartialfull_memoryoffyesonoffPDHonyesononCECoffnooffoff

    Example225DisplayingCurrentSpeedyBootSettingsforyourSystem(HPIntegrityServersampleoutput)

    setbootv

    Primarybootpath:HAAlternatebootpath:0/0/0/1/0Alternatebootpath:AutobootisON(enabled)TESTCURRENTDEFAULTallpartialpartialSELFTESTSononearly_cpuononlate_cpuononFASTBOOTononPlatformononFull_memoryononMemory_initononIO_HWoffoffChipsetonon

    Table23SpeedyBootStatusTableHeadersColumn Description

    Test ThekeywordnamesoftheteststhatcanbecontrolledbySpeedyBoot.SeeTable22.

    Current Thecurrentsettingofeachtest.onmeansthetestisnormallyexecutedoneachboot.offmeansthetestisnormallyomittedoneachboot.partialmeanssomeofthesubtestsarenormallyexecutedoneachboot.

    Supported Whetherthetestissupportedbythesystemfirmware.yesmeansthetestis

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 21/24

    supported.nomeansthetestisnotsupported.partialmeanssomeofthesubtestsaresupported.

    Default Thedefaultvaluesforeachtest.on,off,andpartialarethesameasforCurrent.

    NextBoot Thevaluesforeachtestthatwillbeusedonthenextboot.IftheyaredifferentfromCurrent,theCurrentvalueswillbereestablishedafterthenextboot.on,off,andpartialarethesameasforCurrent.

    ConfiguringBootTimeSystemTestsfromtheBCHMenu(HP9000SystemsOnly)

    FromtheBCHConfigurationMenuusetheFASTBOOTcommandtoconfigureSpeedyBootsettingsforasystem(ornPartition).

    1. AccessthesystemconsoleforyoursystemornPartitionandresetthepartitiontoreturntotheBCHMainMenu.

    Afterpoweringonorresettingyourcomputer(ornPartition)takecontrolofthebootprocessbyhittinganykeyontheconsolekeyboardsothatautoboot/autosearchwillnotbootthesystemautomatically(iftheyarecurrentlyenabled).TheBootConsoleHandlerwilldisplayitsmainmenu.

    2. AttheBCHMainMenu,enterthecocommandtoentertheBCHConfigurationMenu.

    3. AttheBCHConfigurationMenuusetheFASTBOOTcommandtolistorconfiguretheSpeedyBootsettings.

    EnterFASTBOOTwithnoargumentstodisplaythecurrentSpeedyBootsettingsforyoursystemornPartition.

    NOTE:HPrecommendsthatallselftestsbeperformed,butrecognizestheneedtohaveyoursystemavailableasquicklyaspossible.

    Toenablealltests,usetheFASTBOOTRUNcommandattheBCHConfigurationmenu.

    Todisableanindividualtest,enter:FASTBOOTtestSKIP,wheretestisthenameoftheselftest(PDH,EARLY,orLATE).

    Toenableanindividualtest,enter:FASTBOOTtestRUN.

    Fordetailsonsettingselftests,enter:HELPFASTBOOTattheBCHConfigurationMenu

    4. RepeatStep3untilthesettingsreflectyourdesiredsettings,thenrebootyoursystem.

    ConfiguringBootTimeSystemTestsfromtheEFIShell(HPIntegrityServersOnly)

    FromtheEFIShellenvironmentusetheboottestcommandtomanagetheSpeedyBootsettingsforasystem(ornPartition).

    1. AccesstheEFIShellenvironmentforyoursystem(orthenPartitionyouwanttoconfigure).

    ToaccesstheEFIShell,rebootorresetyoursystem(ornPartition).Interrupttheautomaticbootprocessifnecessaryandusetheup/downarrowkeystohighlighttheEFIShellmenuitemandhitEntertoselectit.

    2. IntheEFIShellenvironmentusetheboottestcommandtolist,enable,ordisableboottimesystemtestsforyoursystem(ornPartition).

    Todisplaythelistofsupportedboottimesystemtests,entertheboottesthcommandattheEFIShellprompt:

    Shell>boottesth

    Usage:BOOTTEST[on|off]|[[test][on|off]]test:early_cpu,late_cpu,platform,chipset,io_hw,mem_init,mem_testShell>

    Youcanenableordisableanyoftheboottimesystemtestsbyspecifyingthenameofthetesttoasanargumenttoboottest.

    Inthefollowingboottestcommandsynopsistestnameisoneofthefollowingsystemtests:

    early_cpu

    late_cpu

    platform

    chipset

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 22/24

    io_hw

    mem_init

    mem_test

    boottestDisplaythecurrentboottimesystemtestconfiguration

    boottesttestnameDisplaythecurrentsettingforthespecifiedtest(testname).Forexample:boottestmem_testdisplaysthememoryselftestsettings.

    boottestonEnableallboottimesystemtests.HPrecommendsthisbutrecognizesyourneedsmayrequiredisablingsomeboottimesystemtests.

    boottestoffDisableallboottimesystemtests.Disablingallselftestsisusuallynotrecommended.

    boottesttestnameonEnablethespecifiedtest(testname).Forexample:boottestio_hwonenablestheboottimeI/Ohardwareselftests.

    boottesttestnameoffDisablethespecifiedtest(testname).Forexample:boottestChipsetoffdisablestheChipsetboottimesystemtest.

    3. RepeatStep2untilthesettingsreflectyourdesiredsettings,thenrebootyoursystem.

    ConfiguringBootTimeSystemTestsfromaBootedSystem

    SpeedyBoottestsareconfiguredwiththreesetbootoptions:

    vDisplaysastatustableoftheSpeedyBoottestsettings.

    ttestname=value

    Changethevalueforthetesttestnameinnonvolatilememorytovalueforallfollowingboots.ThechangesarereflectedintheCurrentandNextBootcolumnsoftheSpeedyBoottable.

    testname

    Oneofthefollowingkeywords,asdescribedinTable22:

    all

    SELFTESTS

    early_cpu

    late_cpu

    FASTBOOT

    full_memory

    PDH

    CEC

    value

    Oneof:

    on

    Enablethetest.

    off

    Disablethetest.default

    Resetthetesttothesystemdefault,whichisshownintheDefaultscolumnoftheSpeedyBoottable.

    NOTE:Thetoption(lowercaset)issupportedonlyonHP9000Systems.TochangeSpeedyBootsettingsforallsubsequentbootsonanHPIntegrityServer,usetheprebootenvironment,theEFIshell.SeeConfiguringBootTimeSystemTestsfromtheEFIShell(HPIntegrityServersOnly)fordetails.

    Ttestname=value

    Changethevalueforthetesttestnameforthenextsystembootonly.ThechangesarereflectedintheNextBootcolumnoftheSpeedyBoottable.Thechangedoesnotmodifynonvolatilememory,sothepermanentvalues,shownintheCurrentcolumn,arerestoredafterthe

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 23/24

    boot.testnameandvaluearethesameasforthetoption.

    UsingsetboottoConfigureSpeedyBootSettings

    ThefollowingextendedexampleshowstheresultsofvariouschangesontheSpeedyBootstatustable.Itisagoodideatoincludethevoptionineachcommandsothatthetableisdisplayedafterthechangesaremade.

    Letsstartoffinthedefaultstate(CECisnotsupportedinthisexamplesystem,soitsdefaultisoff,anditcantbechanged.)

    #setboottall=defaultvPrimarybootpath:10/0.0.0Alternatebootpath:10/12/5.0.0AutobootisON(enabled)AutosearchisOFF(disabled)TESTCURRENTSUPPORTEDDEFAULTNEXTBOOTallpartialpartialpartialpartialSELFTESTSonyesononearly_cpuonyesononlate_cpuonyesononFASTBOOTonyesononfull_memoryonyesononPDHonyesononCECoffnooffoff

    Ifyouhavetobootthesystemanumberoftimesduetosomesortofinstallationorupdate,youcanspeeditupifyouturnallthetestsoff:

    #setboottall=offvPrimarybootpath:10/0.0.0Alternatebootpath:10/12/5.0.0AutobootisON(enabled)AutosearchisOFF(disabled)TESTCURRENTSUPPORTEDDEFAULTNEXTBOOTalloffpartialpartialoffSELFTESTSoffyesonoffearly_cpuoffyesonofflate_cpuoffyesonoffFASTBOOToffyesonofffull_memoryoffyesonoffPDHoffyesonoffCECoffnooffoff

    Now,letschangetheprevioustosetthenormalboottodoonlythelate_cpuandthefull_memorytests,skippingtheslowerearly_cputestsandthePDHtests:

    #setboottlate_cpu=ontfull_memory=onvPrimarybootpath:10/0.0.0Alternatebootpath:10/12/5.0.0AutobootisON(enabled)AutosearchisOFF(disabled)TESTCURRENTSUPPORTEDDEFAULTNEXTBOOTallpartialpartialpartialpartialSELFTESTSpartialyesonpartialearly_cpuoffyesonofflate_cpuonyesononFASTBOOTpartialyesonpartialfull_memoryonyesononPDHoffyesonoffCECoffnooffoff

    Finally,letssetupthenextboottotesteverything,andthentestonlylate_cpuonsubsequentboots.

    #setboottfull_memory=offTall=onvPrimarybootpath:10/0.0.0Alternatebootpath:10/12/5.0.0AutobootisON(enabled)AutosearchisOFF(disabled)TESTCURRENTSUPPORTEDDEFAULTNEXTBOOTallpartialpartialpartialpartialSELFTESTSpartialyesononearly_cpuoffyesononlate_cpuonyesononFASTBOOTpartialyesononfull_memoryonyesononPDHoffyesononCECoffnooffoff

    BreakingOutoftheBootScreen

    AnHPUXsystemdisplaysaninformationalscreenasitboots,showingwhatsubsystemsarebeingstarted.

  • 1/16/2016 BootingSystems

    http://docstore.mik.ua/manuals/hpux/en/59924616/ch02s01.html#bjabiggf 24/24

    Normally,youshouldnottouchthekeyboarduntilyouarepromptedtologin,butoccasionally,ifsomethinghasgonewrong(forexampleifacriticalsubsystemhasfailedtostartforsomereason)youmaywanttoaborttheboot.Youcandothisbyentering

    Control|

    CAUTION:Youshouldnowshutdownthesystemimmediately.

    [1]SpeedyBootonHP9000SystemsissupportedonlyonsystemswithfirmwarethatsupportstheBootConsoleHandler(BCH).SomeolderplatformscanbeupgradedwithnewfirmwarethatsupportsSpeedyBoot.