Sie sind auf Seite 1von 6

PowerViewisOff

Dashboard

Knowledge

ServiceRequests

(0)

Tolulope(Available)

ContactUs

Help

Patches&Updates
GiveFeedback...

TipsforTroubleshootingSolaris10BootIssues(DocID1451404.1)
InthisDocument

ToBottom

Wasthisarticlehelpful?

Purpose
TroubleshootingSteps

Preliminaryquestionstoask

General

SMFandMilestones

Installingabootblock

Rebuildingthebootarchive

ZFSProblemsaccessingzpoolsduringboot

MirroredSystems

Usefuldocuments

References

DocumentDetails
Type:
Status:
Last
Major
Update:
Last
Update:

TROUBLESHOOTING
PUBLISHED
May5,2015
May5,2015

RelatedProducts

APPLIESTO:
OpenSolarisOperatingSystemVersion2008.05to2009.06[Release10.0]
Informationinthisdocumentappliestoanyplatform.

Yes
No

OpenSolarisOperatingSystem
InformationCenters

DocumentReferences

RecentlyViewed

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>displayverbosedebugginginformationverboseinfoofOBPbootandkernel
B.bootmverbose>toshowwhichservicewaslastrunandusethattocheckwhichservicewhichshouldberun
next.ProvidesverboseinformationonSMF.
C.bootmdebug>thisshowsSMFservicesinveryverboselevel.Notrecommendedinnormalcases.

formoreinfopleaseseemanpageofboot(1M)

SMFandMilestones
1.Trytoboottothevariouslevelsfromtheokprompt:
A.bootmmilestone=none>Thiswon'tloadanyservicessoifoneofthemiscausingproblemsyoucanfixitbefore
loadingit.
B.bootmmilestone=singleuser

Corefilegeneratedwhen
usingthesolarisintegrity
checkerforIPSA
[1278685.1]
HowToChangeSNMP
CommunityStringFor
MonitoredExadataTargets
[1968674.1]
Howtoupgradeandbackup
theASR(AutoService
Request)Manager
[1392042.1]
OracleAutoServiceRequest
(ASR)[1185493.1]
OracleAutoServiceRequest
FrequentlyAskedQuestions
[1285574.1]
ShowMore

B.bootmmilestone=singleuser
C.bootmmilestone=multiuser
D.bootmmilestone=multiuserserver
2.boottoearlymilestoneandgofromoneleveltothenext:
A.ok>bootmmilestone=none
E.#/usr/sbin/svcadmvmilestonesvc:/milestone/singleuser:default
F.#/usr/sbin/svcadmvmilestonesvc:/milestone/multiuser:default
G.#/usr/sbin/svcadmvmilestonesvc:/milestone/multiuserserver

3.Checkthestatusoftheservicesrequiredforeachrunlevel.Thecommand:
A.#svcsdmilestone/singleuser:default
B.#svcsdmilestone/multiuser:default
C.#svcsdmilestone/multiuserserver:default

Ifaserviceisshownasdisabledthatshouldbeenabled,trytoreenableitwith:
D.#svcadmvenabler<FMRI>

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/volatileisanemptymountpointthatatmpfsismountedonduringbootSoitwillonlyhavefilesintheactiveboot
environment
6.Rebuildtherepository
>notethatifyouselectboot,yoursystemwillreboot
#/lib/svc/bin/restore_repository
orifbootedfailsafe
/a/lib/svc/bin/restore_repositoryr/a

7.Checkstatusofmilestones:
labbox%svcs|grepmilestone
onlineJun_05svc:/milestone/network:default
onlineJun_05svc:/milestone/devices:default
onlineJun_05svc:/milestone/singleuser:default
onlineJun_05svc:/milestone/sysconfig:default
onlineJun_05svc:/milestone/nameservices:default
onlineJun_05svc:/milestone/multiuser:default
onlineJun_05svc:/milestone/multiuserserver:default

8.Enableverboseloggingforsvc.startd
Fordetails,pleaseseeMOSdocument1002635.1Howtoplacethesvc.startddaemonindebugmode
9.increaseverbosityofbootmessages
setxcanprovideusefulinformationintryingtoresolveabootproblem.
Addsetxasthesecondlineinoneofthefollowingscripts:
Ensuretomakebackupcopybeforemanipulatingthesescripts


/lib/svc/method/{scriptname}(
togetthenameofamethodscriptforaparticularservice,usesvccfg.
i.e
#svccfgssvc:/system/fmdlistprop|egrepstart/exec
start/execastring/usr/lib/fm/fmd/fmd
TheverboseouputcanbefoundinthelogfilesfortheparticularSMFservices
i.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,theexisting
operatingsystem.Youneedtobecarefultospecifythepathtotheinstallbootcommandandthebootblock.

Checkthekernelpatchrevisiononthesystem.
Theufsbootblkchangedwiththiskernelpatch13713709.
Abootblockfrom13713709orlaterwillnotworkonasystemthatisatakernelpatchbeforethe13713709kernellevel
andviceversa.
TocheckthekernelpatchonthediskwhenbootedfromfailsafeorfromDVD,youcanusethestringscommand:
i.e.
#strings/a/platform/`unamem`/kernel/sparcv9/unix|grepGeneric
Generic_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(ifmirroredwith
SolarisVolumeManager)

X86:
ToedittheGrubmenurefertodocument1008146.1,HowtobootsingleusermodefromtheGrubbootloaderinSolaris10x86
3/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,usesyntax
suchasthefollowing:
#installbootFzfs/usr/platform/`unamei`/lib/fs/zfs/bootblk/dev/rdsk/c0t1d0s0

ExampleforX86(Solaris11.1):
#bootadminstallbootloadervPrpool
Outputfrombootloaderinstallationcommand"/usr/lib/grub2/bios/sbin/grubinstallnofloppygrub
directory=/rpool/boot/grub/i386pcpkglibdir=/usr/lib/grub2/bios/lib/grub/i386pcmodules=minicmd
rebootdebug/dev/rdsk/c7t0d0p0"is:
<STDOUT>:
Sizeofversioninginfo:132
Sizebeforeversioning:59388,after:59520
Installationfinished.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=0
csp2sd=/dev/rdsk/c7t0d0p0.
linesomitted
/usr/lib/grub2/bios/sbin/grubsetup:info:saving<491,0,512>.
/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
<ENDOFOUTPUT>

Rebuildingthebootarchive

ThebootarchiveexistsinSolaris10,update6andlater,and13713709andlater.
Thebootarchivefileislocated:/platform/`unamem`/boot_archive
okbootnets
okbootcdroms
okbootFfailsafe
Ifthisisaufsfilesystem,beforemountingdiskcheckfilesystemintegritywithfsckchangec0t0d0s0tomatchyourrootdisk,
example:
#fsck/dev/rdsk/c0t0d0s0
#mount/dev/dsk/c?t?d?s?/a
#bootadmupdatearchivefvR/a

Thefoptionwillforcerebuild.
IncasetherootdiskismirroredwithSVM(SolarisVolumeManager),donotmountasinglesliceforupdatingbootarchive,
butusetheprocedureinfollowingdocument:
HowtoManuallyUpdatetheBootArchiveonaSolarisVolumeManagerRAID1(Mirrored)RootPartition
http://docs.oracle.com/cd/E1925301/8171985/mirror1/index.html

ZFSProblemsaccessingzpoolsduringboot
Formorecompleteinformationgoto:http://docs.oracle.com/cd/E1925301/8195461/gavwg/index.html
DuringthebootofasystemwithZFSrooteachzpoolmustbeopened.Failuretoopenazpoolcancausethesystemtopanicon
boot.ToresolvethisproblemZFSneedstobeinformednottolookforanypoolsduringthebootprocess.Thefile
/etc/zfs/zpool.cacheisaninternalcacheofavailablepoolsandassociatedinformation.TheseactionscauseZFStoforgetthat
anypoolsexistonthesystem,preventingitfromtryingtoaccessthebadpoolcausingtheproblemIftheZFSsystembecomes
unbootable:

1.Boottomilestone=none:
okbootmmilestone=none
2.remounttherootfilesystemaswritable
3.renameormovethe/etc/zfs/zpool.cachefiletoanotherlocation
4.Bringthesystemonuptomultiuserservermode:
#svcadmmilestoneall
5.Tryimportthepoolusing:
#zpoolimport<poolname>
Notethatthiswilllikelycausethesameerrorthatoccurredduringboot,becausethecommandusesthesamemechanismto
accesspools.
6.Intheeventofmultiplepoolsexistingonthesystem:
A.Renameormovethezpool.cachefiletoanotherlocationasdiscussedabove.
B.Displaythepoolswithreportedfatalerrors:
#fmdumpeV
C.Importpoolsonebyone,skippingthepoolshavingissuesasreportedbythefmdumpcommand.

MirroredSystems
ForsystemswithRAID1mirroringwithSolarisVolumeManageryoucanpreservethemirrorbyfollowingthedocument
1340586.1Howtoaccess(root)diskunderSolarisVolumeManagerControl(SVM)fromfailsafeorCDROMandupdatethe
boot_archiveinSolaris10
InrarecasesforexamplewhenyoususpectcorruptionofSVMdatabaseyoucantakethemirroringoutoftheway
1005712.1UnabletobootfromaDiskSuitecontrolledsystem

ForsystemswiththeoperatingsystemunderVeritasVolumeManagerControlreferto:
1003238.1FullandBasic/FunctionalUnencapsulationofaVeritasVolumeManagerEncapsulatedRootDisk.
1340586.1Howtoaccess(root)diskunderSolarisVolumeManagerControl(SVM)fromfailsafeofCDROMandupdatethe
boot_archiveinSolaris10.

IfproblemsareencounteredwithVeritasVolumeManagerthecustomershouldcontacttheirvendorprovidingthesupportofthis
product.

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)fromfailsafeorCDROMandupdatethe
boot_archiveinSolaris10
1005712.1UnabletobootfromaDiskSuitecontrolledsystem
1003238.1FullandBasic/FunctionalUnencapsulationofaVeritasVolumeManagerEncapsulatedRootDisk

OracleSolarisZFSTroubleshootingandPoolRecover,http://docs.oracle.com/cd/E1925301/8195461/gavwg/index.html
Didn'tfindwhatyouarelookingfor?

AskinCommunity...

Related
Products
SunMicrosystems>OperatingSystems>SolarisOperatingSystem>OpenSolarisOperatingSystem>Booting>BootingProcess

Keywords
BOOT SOLARIS TROUBLESHOOT
BacktoTop

Copyright(c)2015,Oracle.Allrightsreserved.

LegalNoticesandTermsofUse

PrivacyStatement

Das könnte Ihnen auch gefallen