troubleshooting solaris 10 boot issues
DESCRIPTION
Troubleshooting bootTRANSCRIPT
-
PowerViewisOff (0)Tolulope(Available) ContactUs Help
InthisDocument
PurposeTroubleshootingSteps Preliminaryquestionstoask General SMFandMilestones Installingabootblock Rebuildingthebootarchive ZFSProblemsaccessingzpoolsduringboot MirroredSystems UsefuldocumentsReferences
APPLIESTO:
OpenSolarisOperatingSystemVersion2008.05to2009.06[Release10.0]Informationinthisdocumentappliestoanyplatform.
PURPOSE
ToprovidetipsforassistingwithSolaris10bootproblems.
TROUBLESHOOTINGSTEPS
Preliminaryquestionstoask
1.Isthisx86orsparc?2.IstheOSufsorzfs?3.Isthesystemmirrored?Withwhatproduct?4.Isthesystemclustered?Withwhatproduct?5.Whatworkwasbeingdoneonthissystemorwasthesystemfoundinthedownstate?6.Howfarintothebootprocessdoesthesystemget?Whataretheerrormessages?7.Whatkernelpatchorwhatupdateisinstalledonthesystem?
General
1.Lookatresultsof(options'vV'and'mverbose'canbecombined)
A.bootvV>displayverbosedebugginginformationverboseinfoofOBPbootandkernelB.bootmverbose>toshowwhichservicewaslastrunandusethattocheckwhichservicewhichshouldberunnext.ProvidesverboseinformationonSMF.C.bootmdebug>thisshowsSMFservicesinveryverboselevel.Notrecommendedinnormalcases.formoreinfopleaseseemanpageofboot(1M)
SMFandMilestones
1.Trytoboottothevariouslevelsfromtheokprompt:A.bootmmilestone=none>Thiswon'tloadanyservicessoifoneofthemiscausingproblemsyoucanfixitbeforeloadingit.B.bootmmilestone=singleuser
Wasthisarticlehelpful?
DocumentDetails
Type:Status:LastMajorUpdate:LastUpdate:
TROUBLESHOOTINGPUBLISHEDMay5,2015May5,2015
RelatedProducts
OpenSolarisOperatingSystem
InformationCenters
DocumentReferences
RecentlyViewed
TipsforTroubleshootingSolaris10BootIssues(DocID1451404.1) ToBottom
YesNo
CorefilegeneratedwhenusingthesolarisintegritycheckerforIPSA[1278685.1]HowToChangeSNMPCommunityStringForMonitoredExadataTargets[1968674.1]HowtoupgradeandbackuptheASR(AutoServiceRequest)Manager[1392042.1]OracleAutoServiceRequest(ASR)[1185493.1]OracleAutoServiceRequestFrequentlyAskedQuestions[1285574.1]
ShowMore
Dashboard ServiceRequests Patches&UpdatesKnowledgeGiveFeedback...
-
B.bootmmilestone=singleuserC.bootmmilestone=multiuserD.bootmmilestone=multiuserserver
2.boottoearlymilestoneandgofromoneleveltothenext:
A.ok>bootmmilestone=noneE.#/usr/sbin/svcadmvmilestonesvc:/milestone/singleuser:defaultF.#/usr/sbin/svcadmvmilestonesvc:/milestone/multiuser:defaultG.#/usr/sbin/svcadmvmilestonesvc:/milestone/multiuserserver
3.Checkthestatusoftheservicesrequiredforeachrunlevel.Thecommand:
A.#svcsdmilestone/singleuser:defaultB.#svcsdmilestone/multiuser:defaultC.#svcsdmilestone/multiuserserver:default
Ifaserviceisshownasdisabledthatshouldbeenabled,trytoreenableitwith:
D.#svcadmvenabler
examples:
#svcadmvenablersvc:/system/device/local:default#svcadmvenablersvc:/system/filesystem/local:default
Theroptionistherecursiveoptionwhichwillstartthedependencies.
4.Lookatthestatusofallfailingservices:
#svcsxv
5.Forproblemservicesrefertothelogfileslocatedin:A./etc/svc/volatile/B./var/svc/log/
etc/svc/volatileisanemptymountpointthatatmpfsismountedonduringbootSoitwillonlyhavefilesintheactivebootenvironment
6.Rebuildtherepository>notethatifyouselectboot,yoursystemwillreboot
#/lib/svc/bin/restore_repository
orifbootedfailsafe/a/lib/svc/bin/restore_repositoryr/a
7.Checkstatusofmilestones:
labbox%svcs|grepmilestoneonlineJun_05svc:/milestone/network:defaultonlineJun_05svc:/milestone/devices:defaultonlineJun_05svc:/milestone/singleuser:defaultonlineJun_05svc:/milestone/sysconfig:defaultonlineJun_05svc:/milestone/nameservices:defaultonlineJun_05svc:/milestone/multiuser:defaultonlineJun_05svc:/milestone/multiuserserver:default
8.Enableverboseloggingforsvc.startdFordetails,pleaseseeMOSdocument1002635.1Howtoplacethesvc.startddaemonindebugmode
9.increaseverbosityofbootmessagessetxcanprovideusefulinformationintryingtoresolveabootproblem.
Addsetxasthesecondlineinoneofthefollowingscripts:
Ensuretomakebackupcopybeforemanipulatingthesescripts
-
/lib/svc/method/{scriptname}(togetthenameofamethodscriptforaparticularservice,usesvccfg.i.e#svccfgssvc:/system/fmdlistprop|egrepstart/execstart/execastring/usr/lib/fm/fmd/fmd
TheverboseouputcanbefoundinthelogfilesfortheparticularSMFservicesi.e./var/svc/log/systemfmd:default.log/etc/svc/volatile/networkphysical:default.log
Alternatively,'setx'couldalsobeaddedtolegacyrcscripts/sbin/rcS/sbin/rc2/sbin/rc3/etc/rc2.d/
verboseoutputforlegacyrcscriptscanbefoundinmilestoneslogfiles/var/svc/log/milestonesingleuser:default.log/var/svc/log/milestonemultiuser:default.log/var/svc/log/milestonemultiuserserver:default.log
pleaseseeMOSdoc1438926.1troubleshootingofSMFlegacyrcinitscriptsinSolaris10
Installingabootblock
Besuretousethecorrectbootblockrequiredforthesystem.Youcanusethebootblockandinstallbootcommandfromavarietyofsources:DVD,failsafe,anetimage,theexistingoperatingsystem.Youneedtobecarefultospecifythepathtotheinstallbootcommandandthebootblock.
Checkthekernelpatchrevisiononthesystem.Theufsbootblkchangedwiththiskernelpatch13713709.Abootblockfrom13713709orlaterwillnotworkonasystemthatisatakernelpatchbeforethe13713709kernellevelandviceversa.
TocheckthekernelpatchonthediskwhenbootedfromfailsafeorfromDVD,youcanusethestringscommand:i.e.#strings/a/platform/`unamem`/kernel/sparcv9/unix|grepGenericGeneric_14714726
SPARC:
#/usr/sbin/installboot/usr/platform/`unamem`/lib/fs/ufs/bootblk/dev/rdsk/c#t#d#s#Examples:#/usr/sbin/installboot/usr/platform/`unamem`/lib/fs/ufs/bootblk/dev/rdsk/c0t0d0s0#/usr/sbin/installboot/usr/platform/`unamem`/lib/fs/ufs/bootblk/dev/md/rdsk/d0(ifmirroredwithSolarisVolumeManager)
X86:ToedittheGrubmenurefertodocument1008146.1,HowtobootsingleusermodefromtheGrubbootloaderinSolaris10x863/05or1/06
Refertodocument1005352.1,ConfiguringandUnderstandingGRUB.
Solaris10andSolaris11(GRUB)
#/usr/sbin/installgrub[fm]stage1stage2rawdevice
Solaris11.1andhigher(GRUB2)
/usr/sbin/bootadminstallbootloader[Mfv][Ppool][Rpath][device1...deviceN]
-
UFS:Refertodocument1004422.1,HowtoRecoverFromtheBootError"Thefilejustloadeddoesnotappeartobeexecutable".
ZFS:Refertodocuments:1020186.1,Howtomountzfsrootpool(rpool)bootingfromDVDornetwork.1020196.1,HowtoInstallZFSbootblk.
Thefollowinggivesanexamplesoftheinstallbootcommand.
ExampleforSPARC:ToinstallaZFSbootblockonslice0oftarget0oncontroller1oftheplatformwherethecommandisbeingrun,usesyntaxsuchasthefollowing:
#installbootFzfs/usr/platform/`unamei`/lib/fs/zfs/bootblk/dev/rdsk/c0t1d0s0
ExampleforX86(Solaris11.1):
#bootadminstallbootloadervPrpoolOutputfrombootloaderinstallationcommand"/usr/lib/grub2/bios/sbin/grubinstallnofloppygrubdirectory=/rpool/boot/grub/i386pcpkglibdir=/usr/lib/grub2/bios/lib/grub/i386pcmodules=minicmdrebootdebug/dev/rdsk/c7t0d0p0"is::Sizeofversioninginfo:132Sizebeforeversioning:59388,after:59520Installationfinished.Noerrorreported.linesomitted+/usr/lib/grub2/bios/sbin/grubsetup'versionstring=1.99,5.11.0.175.1.0.0.24.2:20130613T074908Z'verbose'directory=/rpool/boot/grub/i386pc''devicemap='/dev/rdsk/c7t0d0p0/usr/lib/grub2/bios/sbin/grubsetup:info:nodevice.map./usr/lib/grub2/bios/sbin/grubsetup:info:Lookingfor/dev/rdsk/c7t0d0p0./usr/lib/grub2/bios/sbin/grubsetup:info:grub_util_biosdisk_get_grub_dev:drive=0csp2sd=/dev/rdsk/c7t0d0p0.linesomitted/usr/lib/grub2/bios/sbin/grubsetup:info:saving./usr/lib/grub2/bios/sbin/grubsetup:info:writingbootimagetodest_dev.+testxyes'='xyes+cpf/usr/lib/grub2/bios/lib/grub/i386pc/version.lst/rpool/boot/grub/i386pc/+echo'Installationfinished.Noerrorreported.'+exit0
Rebuildingthebootarchive
ThebootarchiveexistsinSolaris10,update6andlater,and13713709andlater.
Thebootarchivefileislocated:/platform/`unamem`/boot_archive
okbootnetsokbootcdromsokbootFfailsafe
Ifthisisaufsfilesystem,beforemountingdiskcheckfilesystemintegritywithfsckchangec0t0d0s0tomatchyourrootdisk,example:
#fsck/dev/rdsk/c0t0d0s0#mount/dev/dsk/c?t?d?s?/a#bootadmupdatearchivefvR/a
Thefoptionwillforcerebuild.
IncasetherootdiskismirroredwithSVM(SolarisVolumeManager),donotmountasinglesliceforupdatingbootarchive,butusetheprocedureinfollowingdocument:HowtoManuallyUpdatetheBootArchiveonaSolarisVolumeManagerRAID1(Mirrored)RootPartitionhttp://docs.oracle.com/cd/E1925301/8171985/mirror1/index.html
-
ZFSProblemsaccessingzpoolsduringboot
Formorecompleteinformationgoto:http://docs.oracle.com/cd/E1925301/8195461/gavwg/index.html
DuringthebootofasystemwithZFSrooteachzpoolmustbeopened.Failuretoopenazpoolcancausethesystemtopaniconboot.ToresolvethisproblemZFSneedstobeinformednottolookforanypoolsduringthebootprocess.Thefile/etc/zfs/zpool.cacheisaninternalcacheofavailablepoolsandassociatedinformation.TheseactionscauseZFStoforgetthatanypoolsexistonthesystem,preventingitfromtryingtoaccessthebadpoolcausingtheproblemIftheZFSsystembecomesunbootable:
1.Boottomilestone=none:
okbootmmilestone=none
2.remounttherootfilesystemaswritable
3.renameormovethe/etc/zfs/zpool.cachefiletoanotherlocation
4.Bringthesystemonuptomultiuserservermode:
#svcadmmilestoneall
5.Tryimportthepoolusing:
#zpoolimport
Notethatthiswilllikelycausethesameerrorthatoccurredduringboot,becausethecommandusesthesamemechanismtoaccesspools.
6.Intheeventofmultiplepoolsexistingonthesystem:
A.Renameormovethezpool.cachefiletoanotherlocationasdiscussedabove.
B.Displaythepoolswithreportedfatalerrors:
#fmdumpeV
C.Importpoolsonebyone,skippingthepoolshavingissuesasreportedbythefmdumpcommand.
MirroredSystems
ForsystemswithRAID1mirroringwithSolarisVolumeManageryoucanpreservethemirrorbyfollowingthedocument
1340586.1Howtoaccess(root)diskunderSolarisVolumeManagerControl(SVM)fromfailsafeorCDROMandupdatetheboot_archiveinSolaris10
InrarecasesforexamplewhenyoususpectcorruptionofSVMdatabaseyoucantakethemirroringoutoftheway
1005712.1UnabletobootfromaDiskSuitecontrolledsystem
ForsystemswiththeoperatingsystemunderVeritasVolumeManagerControlreferto:
1003238.1FullandBasic/FunctionalUnencapsulationofaVeritasVolumeManagerEncapsulatedRootDisk.
1340586.1Howtoaccess(root)diskunderSolarisVolumeManagerControl(SVM)fromfailsafeofCDROMandupdatetheboot_archiveinSolaris10.
IfproblemsareencounteredwithVeritasVolumeManagerthecustomershouldcontacttheirvendorprovidingthesupportofthisproduct.
Usefuldocuments
1010864.1svc.startd[7]:"/lib/svc/method/fsusr"failedwithexitstatus95.
1020186.1Howtomountzfsrootpool(rpool)bootingfromDVDornetwork.
-
1020196.1HowtoInstallZFSbootblk.
1005522.1HowtoRecoverFromtheBootError"Thefilejustloadeddoesnotappeartobeexecutable"
1005352.1ConfiguringandUnderstandingGRUB
1340586.1Howtoaccess(root)diskunderSolarisVolumeManagerControl(SVM)fromfailsafeorCDROMandupdatetheboot_archiveinSolaris10
1005712.1UnabletobootfromaDiskSuitecontrolledsystem
1003238.1FullandBasic/FunctionalUnencapsulationofaVeritasVolumeManagerEncapsulatedRootDisk
OracleSolarisZFSTroubleshootingandPoolRecover,http://docs.oracle.com/cd/E1925301/8195461/gavwg/index.html
Didn'tfindwhatyouarelookingfor? AskinCommunity...
RelatedProducts
SunMicrosystems>OperatingSystems>SolarisOperatingSystem>OpenSolarisOperatingSystem>Booting>BootingProcess
KeywordsBOOT SOLARIS TROUBLESHOOT
BacktoTop Copyright(c)2015,Oracle.Allrightsreserved. LegalNoticesandTermsofUse PrivacyStatement