Escolar Documentos
Profissional Documentos
Cultura Documentos
PreparingCustomJumpStartInstallations(Tasks)
Solaris1011/06InstallationGuide:CustomJumpStartand
AdvancedInstallations
Previous:Chapter2CustomJumpStart(Overview)
Next:Chapter4UsingOptionalCustomJumpStartFeatures(Tasks)
Chapter3PreparingCustomJumpStartInstallations(Tasks)
Thischapterprovidesstepbystepinstructionsabouthowtopreparethesystemsatyoursitefromwhichandonwhichyouintendtoinstallthe
SolarissoftwarebyusingthecustomJumpStartinstallationmethod.
TaskMap:PreparingCustomJumpStartInstallations
CreatingaProfileServerforNetworkedSystems
CreatingaProfileDisketteforStandaloneSystems
Creatingthe rulesFile
CreatingaProfile
TestingaProfile
Validatingthe rulesFile
TaskMap:PreparingCustomJumpStartInstallations
Table31TaskMap:PreparingCustomJumpStartInstallations
Task
Description
ForInstructions
Decidehowto
upgradethesystemifa
previousversionofthe
Solarissoftwareis
installedonthe
system.
IfapreviousreleaseofSolarisisinstalledonthesystem,youneedtodeterminehowto
upgradethesystem.Ensurethatyouknowwhattodobeforeandafteryouupgradea
system.Planninghelpsyoutocreateyourprofiles,beginscripts,andfinishscripts.
UpgradePlanningin
Solaris1011/06
InstallationGuide:
Planningfor
Installationand
Upgrade
CreateaJumpStart
directory.
Onaserver
CreatingaProfile
Serverfor
NetworkedSystems
IfyouwanttoperformcustomJumpStartinstallationsonsystemsthatareconnectedto
anetwork,youmustcreateaprofileserver.TheprofileservercontainsaJumpStart
directoryforthecustomJumpStartfiles.
Onadiskette
IfyouwanttoperformcustomJumpStartinstallationsonsystemsthatarenot
connectedtoanetwork,youmustcreateaprofilediskette.Aprofilediskettecontains
thecustomJumpStartfiles.
Addrulestothe
rulesfile.
Afteryoudecidehowyouwanteachgroupofsystemsorsinglesystemstobeinstalled,
createaruleforeachgroupthatyouwanttoinstall.Eachruledistinguishesagroup,
CreatingaProfile
Diskettefor
StandaloneSystems
Creatingthe
rulesFile
rulesfile.
createaruleforeachgroupthatyouwanttoinstall.Eachruledistinguishesagroup,
basedononeormoresystemattributes.Therulelinkseachgrouptoaprofile.
rulesFile
Createaprofilefor
everyrule.
AprofileisatextfilethatdefineshowtoinstalltheSolarissoftware,forexample,which
softwaregrouptoinstallonasystem.Everyrulespecifiesaprofiletodefinehowa
systemistobeinstalledwiththeSolarissoftwarewhentheruleismatched.You
usuallycreateadifferentprofileforeveryrule.However,thesameprofilecanbeused
inmorethanonerule.
CreatingaProfile
(Optional)Testthe
profiles.
Afteryoucreateaprofile,usethepfinstall(1M)commandtotesttheprofilebeforeyou
usetheprofiletoinstallorupgradeasystem.
TestingaProfile
Validatethe rules
file.
Validatingthe
rulesFile
CreatingaProfileServerforNetworkedSystems
WhensettingupcustomJumpStartinstallationsforsystemsonthenetwork,youneedtocreateadirectoryonaserverthatiscalledaJumpStart
directory.TheJumpStartdirectorycontainsalloftheessentialcustomJumpStartfiles,forexample,the rulesfile, rules.okfile,and
profiles.YoumustsavetheJumpStartdirectoryintheroot( /)directoryoftheprofileserver.
TheserverthatcontainsaJumpStartdirectoryiscalledaprofileserver.Aprofileservercanbethesamesystemasaninstallserveroraboot
server,ortheservercanbeacompletelydifferentserver.AprofileservercanprovidecustomJumpStartfilesfordifferentplatforms.Forexample,
anx86servercanprovidecustomJumpStartfilesforbothSPARCbasedsystemsandx86basedsystems.
Note
Afteryoucreateaprofileserver,youmustallowsystemstoaccesstheserver.Fordetailedinstructions,seeToAllowAllSystemsAccesstothe
ProfileServer.
ToCreateaJumpStartDirectoryonaServer
Note
ThisprocedureassumesthatthesystemisrunningVolumeManager.IfyouarenotusingVolumeManagertomanagediscs,refertoS stem
AdministrationGuide:DevicesandFileS stemsfordetailedinformationaboutmanagingremovablemediawithoutVolumeManager.
1. LocatetheserveronwhichyouwanttocreatetheJumpStartdirectory.
2. Becomesuperuserorassumeanequivalentrole.
Rolescontainauthorizationsandprivilegedcommands.Formoreinformationaboutroles,seeConfiguringRBAC(TaskMap)inS stem
AdministrationGuide:Securit Services.
3. CreatetheJumpStartdirectoryanywhereontheserver.
#mkdi m755jumpstart_dir_path
Inthecommand,jumpstart_dir_pathistheabsolutepathoftheJumpStartdirectory.
Forexample,thefollowingcommandcreatesadirectorythatiscalled jumpstartintheroot( /)directoryandsetsthepermissionsto
755:
#mkdi m755/j mp a
4. Editthe /etc/dfs/dfstabfilebyaddingthefollowingentry.
ha eFnf o o,anon=0jumpstart_dir_path
Forexample,thefollowingentrysharesthe /jumpstartdirectory:
Forexample,thefollowingentrysharesthe /jumpstartdirectory:
ha eFnf o o,anon=0/j mp a
5. Type shareallandpressEnter.
6. DetermineifyouwanttocopyexamplesofcustomJumpStartfilestoyourJumpStartdirectory.
Ifno,gotoStep9.
Ifyes,usethefollowingdecisiontabletodeterminewhattodonext.
ExampleLocations
Instructions
TheSolarisOperatingSystemDVDortheSolaris
Software1CDforyourplatform
InserttheSolarisOperatingSystemDVDortheSolarisSoftware1CDinto
theserver'sCDROMdrive.
VolumeManagerautomaticallymountstheCD.
AnimageoftheSolarisOperatingSystemDVDorthe
SolarisSoftware1CDforyourplatformonalocaldisk
ChangedirectorytothelocationoftheSolarisOperatingSystemDVDor
theSolarisSoftware1image.Forexample,typethefollowingcommand:
cd/export/install
7. CopytheexamplecustomJumpStartfilesintotheJumpStartdirectoryontheprofileserver.
AllowingAllSystemsAccesstotheProfileServer
Whenyoucreateaprofileserver,youmustensurethatsystemscanaccesstheJumpStartdirectoryontheprofileserverduringacustom
JumpStartinstallation.Useoneofthefollowingwaystoensureaccess.
CommandorFile
ProvidingAccess
Instructions
add_install_client
command
Eachtimethatyouaddasystemfornetworkinstallation,usethe c
optionwiththe add_install_clientcommandtospecifytheprofile
server.
Note
IfyouarenotusingNFS,thenyoumustuseanothermeanstoprovide
access.
ForSPARCbasedsystems,usethe bootcommand
Forx86basedsystems,edittheGRUBmenu
Specifythelocationof
theJumpStartdirectory
whenyoubootthe
system
ForCDmedia,seeAdding
S stemstoBeInstalledFrom
theNetworkWithaCDImage
inSolaris1011/06
InstallationGuide:Network
BasedInstallations
ForSPARCbasedsystems,usethe bootcommandtobootthe
system.SpecifythelocationoftheJumpStartdirectoryonthe
profileserverwhenyoubootthesystem.Youmustcompressthe
customJumpStartconfigurationfilesintoonefile.Then,savethe
compressedconfigurationfileonanHTTPorHTTPSserver.
CreatingaCompressed
ConfigurationFile
Forx86basedsystems,specifythelocationoftheJumpStart
directoryontheprofileserverwhenyoubootthesystembyediting
thebootentryontheGRUBmenu.Youmustcompressthecustom
JumpStartconfigurationfilesintoonefile.Then,savethe
compressedconfigurationfileonanHTTPorHTTPSserver.
CreatingaCompressed
ConfigurationFile
WhenyouedittheGRUBmenuentry,specifythelocationofthe
compressedfile.
/etc/bootparamsfile
ForDVDmedia,seeAdding
S stemstoBeInstalledFrom
theNetworkWithaDVD
ImageinSolaris1011/06
InstallationGuide:Network
BasedInstallations
Addawildcardinthe /etc/bootparamsfile.
Step5inSPARC:ToPerform
anInstallationorUpgrade
WiththeCustomJumpStart
Program
x86:PerformingaCustom
JumpStartInstallationby
EditingtheGRUBBoot
Command
ToAllowAllSystemsAccessto
theProfileServer
ToAllowAllSystemsAccesstotheProfileServer
Usethefollowingprocedureonlyifyoustorenetworkinstallationinformationinthefollowingplaces:
Inthe /etc/bootparamsfile.
Inthenamingservice bootparamsdatabase.Toupdatethe bootparamsdatabase,addtheentrythatisshowninStep3.
Ifyouusethefollowingprocedure,thesystemsmustbeofthesametype,suchasallSPARCsystems.
Donotusethisprocedureunderthefollowingconditions:
IfyousavetheJumpStartdirectoryonadiskette.
Ifyouspecifythelocationoftheprofileserverwhenyoubootthesystem.Ifyouhavesystemsofdifferentarchitectures,youmustspecifythe
locationoftheprofileserverwhenyoubootthesystem
Ifyouhavetheaboveconditions,usetheSPARC bootcommandorusethex86GRUBmenu.
Note
YoualsocanstorenetworkinstallationinformationonaDHCPserver.
ForSPARCbasedsystems,youusethe add_install_clientcommandandthe doptiontospecifythatthecustomJumpStart
programusetheDHCPserver.Oryouusethe bootcommandwiththe dhcpoptiontospecifythatthecustomJumpStartprogramuse
theDHCPserver.Forinstructionsaboutusingthisoption,seeSPARC:CommandReferenceforthe bootCommand.
Forx86basedsystems,youusedhcpinoneofthefollowingways:
Ifyouuseaninstallserver,usethe add_install_clientcommandandthe doptiontospecifythatthecustomJumpStart
programusetheDHCPserverwithPXE.
YoucanedittheGRUBentryontheGRUBmenuandaddthedhcpoption.ForinstructionsabouteditingtheGRUBentry,seex86:
PerformingaCustomJumpStartInstallationbyEditingtheGRUBBootCommand
1. Ontheinstallationorbootserver,loginassuperuser.
2. Useatexteditortoopen /etc/bootparams.
2. Useatexteditortoopen /etc/bootparams.
3. Addthisentry.
*install_config=server:jumpstart_dir_path
*
Awildcardcharacterthatspecifiesthatallsystemshaveaccess
server
ThehostnameoftheprofileserverwheretheJumpStartdirectoryislocated
jumpstart_dir_path
TheabsolutepathoftheJumpStartdirectory
Forexample,thefollowingentryenablesallsystemstoaccessthe /jumpstartdirectoryontheprofileserverthatisnamed sherlock:
*install_config=sherlock:/jumpstart
Caution
Useofthisproceduremightproducethefollowingerrormessagewhenaninstallationclientisbooted:
WARNING:getfile:RPCfailed:error5:(RPCTimedout).
BootingFromtheNetwork,ErrorMessagescontainsdetailsaboutthiserrormessage.
Allsystemscannowaccesstheprofileserver.
CreatingaProfileDisketteforStandaloneSystems
AdiskettethatcontainsaJumpStartdirectoryiscalledaprofilediskette.Asystemthatisnotconnectedtothenetworkdoesnothaveaccesstoa
profileserver.Asaresult,youmustcreateaJumpStartdirectoryonadisketteifasystemisnotconnectedtoanetwork.Thesystemonwhichyou
createaprofilediskettemusthaveadiskettedrive.
TheJumpStartdirectorycontainsalloftheessentialcustomJumpStartfiles,forexample,the rulesfile, rules.okfile,andprofiles.You
mustsavetheJumpStartdirectoryintheroot( /)directoryoftheprofilediskette.
Seeoneofthefollowingprocedures:
SPARC:ToCreateaProfileDiskette
x86:ToCreateaProfileDisketteWithGRUB
SPARC:ToCreateaProfileDiskette
Note
ThisprocedureassumesthatthesystemisrunningVolumeManager.IfyouarenotusingVolumeManagertomanagediskettes,CDs,and
DVDs,refertoS stemAdministrationGuide:DevicesandFileS stemsfordetailedinformationaboutmanagingremovablemediawithout
VolumeManager.
1. LocateaSPARCbasedsystemtowhichadiskettedriveisattached.
2. Becomesuperuserorassumeanequivalentrole.
Rolescontainauthorizationsandprivilegedcommands.Formoreinformationaboutroles,seeConfiguringRBAC(TaskMap)inS stem
AdministrationGuide:Securit Services.
3. Insertablankdisketteoradiskettethatcanbeoverwritteninthediskettedrive.
4. Mountthediskette.
# olcheck
5. DetermineifthediskettecontainsaUNIXfilesystem(UFS).
Examinethecontentsofthefile /etc/mnttabonthesystemforanentrysuchasthefollowing:
/vol/dev/diskette0/scrap/floppy/scrapufssuid,rw,largefiles,dev=1740008927147040
Iftheentryexists,gotoStep7.
Iftheentrydoesnotexist,gotothenextstep.
6. CreateaUFSonthediskette.
ExampleLocations
Instructions
TheSolarisOperatingSystemforSPARCPlatforms
DVDortheSolarisSoftwareforSPARCPlatforms1
CD
InserttheSolarisOperatingSystemforSPARCPlatformsDVDortheSolaris
SoftwareforSPARCPlatforms1CDintotheserver'sCDROMdrive.
AnimageoftheSolarisOperatingSystemfor
SPARCPlatformsDVDortheSolarisSoftwarefor
SPARCPlatforms1CDonalocaldisk
ChangethedirectorytothelocationoftheSolarisOperatingSystemfor
SPARCPlatformsDVDortheSolarisSoftwareforSPARCPlatforms1CD
image.Forexample,typethefollowingcommand:
VolumeManagerautomaticallymountstheCD.
8. CopytheexamplecustomJumpStartfilesintotheJumpStartdirectoryontheprofilediskette.
#ejec flopp
Youhavecompletedthecreationofaprofilediskette.Youcannowupdatethe rulesfileandcreateprofilesontheprofiledisketteto
performcustomJumpStartinstallations.Tocontinue,gotoCreatingthe rulesFile.
x86:ToCreateaProfileDisketteWithGRUB
UsethisproceduretocreateaprofilediskettewithGRUB.AGRUBmenuisprovidedduringtheinstallationprocedurethatenablestheboot
process.TheGRUBmenureplacestheSolarisDeviceConfigurationAssistantthatmighthavebeenneededtobootasysteminpastreleases.
Note
ThisprocedureassumesthatthesystemisrunningVolumeManager.IfyouarenotusingVolumeManagertomanagediskettes,CDs,and
DVDs,refertoS stemAdministrationGuide:DevicesandFileS stemsfordetailedinformationaboutmanagingremovablemediawithout
VolumeManager.
1. Locateanx86basedsystemtowhichadiskettedriveisattached.
2. Becomesuperuserorassumeanequivalentrole.
Rolescontainauthorizationsandprivilegedcommands.Formoreinformationaboutroles,seeConfiguringRBAC(TaskMap)inS stem
AdministrationGuide:Securit Services.
3. Insertablankdisketteoradiskettethatcanbeoverwrittenintothediskettedrive.
4. Mountthediskette.
# olcheck
5. DetermineifyouwanttocopyexamplesofcustomJumpStartfilestoyourJumpStartdirectory.
Ifno,gotoStep8.
Ifyes,usethefollowingdecisiontabletodeterminewhattodonext.
ExampleLocations
Instructions
TheSolarisOperatingSystemforx86PlatformsDVD
ortheSolarisSoftwareforx86Platforms1CD
InserttheSolarisOperatingSystemforx86PlatformsDVDortheSolaris
Softwareforx86Platforms1CDintotheserver'sCDROMdrive.
VolumeManagerautomaticallymountstheCD.
AnimageoftheSolarisOperatingSystemforx86
PlatformsDVDortheSolarisSoftwareforx86
Platforms1CDonalocaldisk
ChangedirectorytothelocationoftheSolarisOperatingSystemforx86
PlatformsDVDortheSolarisSoftwareforx86Platforms1CDimage.For
example,typethefollowing:
cd/export/install
6. CopytheexamplecustomJumpStartfilesintotheJumpStartdirectoryontheprofilediskette.
7. UpdatetheexampleJumpStartfilesontheprofilediskettesothatthefilesworkinyourenvironment.
8. Ensurethat rootownstheJumpStartdirectoryandthatpermissionsaresetto755.
9. EjectthediskettebyclickingEjectDiskintheFileManagerwindoworbytyping ejectfloppyonthecommandline.
10. IntheRemovableMediaManagerdialogbox,clickOK.
11. Manuallyejectthediskette.
SeeAlso
Youhavecompletedthecreationofaprofilediskette.Nowyoucanupdatethe rulesfileandcreateprofilesontheprofilediskettetoperform
customJumpStartinstallations.Tocontinue,gotoCreatingthe rulesFile.
Creatingthe
le File
The rulesfileisatextfilethatcontainsaruleforeachgroupofsystemsonwhichyouwanttoinstalltheSolarisOS.Eachruledistinguishesa
groupofsystemsthatarebasedononeormoresystemattributes.Eachrulealsolinkseachgrouptoaprofile.Aprofileisatextfilethatdefines
howtheSolarissoftwareistobeinstalledoneachsysteminthegroup.Forexample,thefollowingrulespecifiesthattheJumpStartprogramuse
theinformationinthe basic_profprofiletoinstallanysystemwiththe sun4uplatformgroup.
karchsun4ubasic_prof
The rulesfileisusedtocreatethe rules.okfile,whichisrequiredforcustomJumpStartinstallations.
Note
IfyousetuptheJumpStartdirectorybyusingtheproceduresinCreatingaProfileDisketteforStandaloneSystemsorCreatingaProfileServer
forNetworkedSystems,anexample rulesfileisalreadylocatedintheJumpStartdirectory.Thesample rulesfilecontainsdocumentation
andsomeexamplerules.Ifyouusethesample rulesfile,ensurethatyoucommentouttheexamplerulesyoudonotintendtouse.
Syntaxofthe
le File
The rulesfilemusthavethefollowingattributes:
Thefilemustbeassignedthename rules.
Thefilemustcontainatleastonerule.
The rulesfilecancontainanyofthefollowing:
Commentedtext
Anytextthatisincludedafterthe #symbolonalineistreatedbyJumpStartascommentedtext.Ifalinebeginswiththe #symbol,the
entirelineistreatedasacomment.
Oneormoreblanklines
Oneormoremultilinerules
Tocontinueasingleruleontoanewline,includeabackslashcharacter(\)justbeforepressingReturn.
ToCreatea
le File
Apredefinedlexicalunitorwordthatdescribesageneralsystemattribute,suchashostname, hostname,ormemorysize,
memsize.rule_ke wordisusedwiththerulevaluetomatchasystemwiththesameattributetoaprofile.Forthelistofrule
keywords,seeRuleKeywordsandValues.
rule_value
Avaluethatprovidesthespecificsystemattributeforthecorrespondingrulekeyword.RulevaluesaredescribedinRuleKeywords
andValues.
&&
Asymbolyoumustusetojoinrulekeywordandrulevaluepairsinthesamerule(alogicalAND).DuringacustomJumpStart
installation,asystemmustmatcheverypairintherulebeforetherulematches.
begin
ThenameofanoptionalBourneshellscriptthatcanbeexecutedbeforetheinstallationbegins.Ifnobeginscriptexists,youmust
typeaminussign()inthisfield.AllbeginscriptsmustbelocatedintheJumpStartdirectory.
InformationabouthowtocreatebeginscriptsispresentedinCreatingBeginScripts.
profile
ThenameofatextfilethatdefineshowtheSolarissoftwareistobeinstalledonthesystemwhenasystemmatchestherule.The
informationinaprofileconsistsofprofilekeywordsandtheircorrespondingprofilevalues.Allprofilesmustbelocatedinthe
JumpStartdirectory.
Note
OptionalwaystousetheprofilefieldaredescribedinUsingaSiteSpecificInstallationProgramandCreatingDerivedProfilesWith
aBeginScript.
finish
ThenameofanoptionalBourneshellscriptthatcanbeexecutedaftertheinstallationiscompleted.Ifnofinishscriptexists,you
musttypeaminussign()inthisfield.AllfinishscriptsmustbelocatedintheJumpStartdirectory.
InformationabouthowtocreatefinishscriptsispresentedinCreatingFinishScripts.
Attheminimum,eachrulemustcontainthefollowing:
Akeyword,avalue,andacorrespondingprofile
Aminussign()inthebeginandfinishfieldsifnobeginorfinishscriptsarespecified
3. Savethe rulesfileintheJumpStartdirectory.
4. Ensurethat rootownsthe rulesfileandthatthepermissionsaresetto644.
le FileExample
Thefollowingexampleshowsseveralexamplerulesina rulesfile.Eachlinehasarulekeywordandavalidvalueforthatkeyword.The
JumpStartprogramscansthe rulesfilefromtoptobottom.
WhentheJumpStartprogrammatchesarulekeywordandvaluewithaknownsystem,theJumpStartprograminstallstheSolarissoftwarethatis
specifiedbytheprofilethatislistedintheprofilefield.
Foracompletelistof rulesfilelimitations,seeSyntaxofthe rulesFile.
Example3 1
leFile
#rulekeywordsandrulevaluesbeginscriptprofilefinishscript
#
hostnameeng1basic_prof
network192.168.255.255&&!model\
'SUNW,SunBlade100'net_prof
modelSUNW,SPARCstationLXlx_profcomplete
network192.168.2.0&&karchi86pcsetupx86_profdone
memsize64128&&archi386prog_prof
anygeneric_prof
Thefollowinglistdescribessomeofthekeywordsandvaluesfromthisexample.
ho name
Therulematchesifthesystem'shostnameis eng1.The basic_profprofileisusedtoinstalltheSolarissoftwareonthesystemthat
CreatingaProfile
AprofileisatextfilethatdefineshowtoinstalltheSolarissoftwareonasystem.Aprofiledefineselementsoftheinstallation,forexample,the
softwaregrouptoinstall.Everyrulespecifiesaprofilethatdefineshowasystemistobeinstalled.Youcancreatedifferentprofilesforeveryrule
orthesameprofilecanbeusedinmorethanonerule.
Aprofileconsistsofoneormoreprofilekeywordsandtheirvalues.Eachprofilekeywordisacommandthatcontrolsoneaspectofhowthe
JumpStartprogramistoinstalltheSolarissoftwareonasystem.Forexample,thefollowingprofilekeywordandvaluespecifythattheJumpStart
programinstallthesystemasaserver:
system_typeserver
Note
SampleprofilesarealreadylocatedintheJumpStartdirectoryifyoucreatedtheJumpStartdirectorybyusingeitheroftheseprocedures:
CreatingaProfileServerforNetworkedSystems
CreatingaProfileDisketteforStandaloneSystems
SyntaxofProfiles
Aprofilemustcontainthefollowing:
The install_typeprofilekeywordasthefirstentry
Onekeywordperline
The root_devicekeywordifthesystemsthatarebeingupgradedbytheprofilecontainmorethanoneroot( /)filesystemthatcanbe
upgraded
Aprofilecancontainthefollowing:
Commentedtext
Anytextthatisincludedafterthe #symbolonalineistreatedbytheJumpStartprogramascommentedtext.Ifalinebeginswiththe #
symbol,theentirelineistreatedasacomment.
Oneormoreblanklines
ToCreateaProfile
1. Useatexteditortocreateatextfile.Namethefiledescriptively.Or,openasampleprofileintheJumpStartdirectorythatyoucreated.
Note
Note
EnsurethatthenameoftheprofilereflectshowyouintendtousetheprofiletoinstalltheSolarissoftwareonasystem.Forexample,you
mightnametheprofiles basic_install, eng_profile,or user_profile.
2. Addprofilekeywordsandvaluestotheprofile.
Foralistofprofilekeywordsandvalues,seeProfileKeywordsandValues.
Note
Profilekeywordsandtheirvaluesarecasesensitive.
3. SavetheprofileintheJumpStartdirectory.
4. Ensurethat rootownstheprofileandthatthepermissionsaresetto644.
5. Testtheprofile(optional).
TestingaProfilecontainsinformationabouttestingprofiles.
ProfileExamples
ThefollowingexamplesofprofilesshowhowtousedifferentprofilekeywordsandprofilevaluestocontrolhowtheSolarissoftwareisinstalled
onasystem.ProfileKeywordsandValuescontainsadescriptionofprofilekeywordsandvalues.
Example3 2MountingRemoteFileSystemsandAddingandDeletingPackages
#profilekeywordsprofilevalues
#
install_typeinitial_install
system_typestandalone
partitioningdefault
filesysany512swap#specifysizeof/swap
clusterSUNWCprog
packageSUNWmandelete
clusterSUNWCacc
Thefollowinglistdescribessomeofthekeywordsandvaluesfromthisexample.
in all_ pe
The install_typekeywordisrequiredineveryprofile.
em_ pe
The system_typekeyworddefinesthatthesystemistobeinstalledasastandalonesystem.
pa i ioning
Thefilesystemslicesaredeterminedbythesoftwaretobeinstalledwiththevalue default.Thesizeof swapissetto512Mbytes
andisinstalledonanydisk,value any.
cl
e
TheDeveloperSolarisSoftwareGroup, SUNWCprog,isinstalledonthesystem.
package
Ifthestandardmanpagesaremountedfromthefileserver, s_ref,onthenetwork,themanpagepackagesarenottobeinstalledon
thesystem.ThepackagesthatcontaintheSystemAccountingutilitiesareselectedtobeinstalledonthesystem.
Example3 3MountingRemoteFileSystemsandAddingaThirdPartyPackage
#profilekeywordsprofilevalues
#
install_typeinitial_install
system_typestandalone
partitioningdefault
partitioningdefault
filesysany512swap#specifysizeof/swap
clusterSUNWCprog
clusterSUNWCacc
packageapache_server\
http://package.central/packages/apachetimeout5
Thefollowinglistdescribessomeofthekeywordsandvaluesfromthisexample.
in all_ pe
The install_typekeywordisrequiredineveryprofile.
em_ pe
The system_typekeyworddefinesthatthesystemistobeinstalledasastandalonesystem.
pa i ioning
Thefilesystemslicesaredeterminedbythesoftwaretobeinstalledwiththevalue default.Thesizeof swapissetto512Mbytes
andisinstalledonanydisk,value any.
cl
e
TheDeveloperSolarisSoftwareGroup, SUNWCprog,isinstalledonthesystem.
package
AthirdpartypackageisinstalledonthesystemlocatedonanHTTPserver.
Example3 4SpecifyingWheretoInstallFileSystems
#profilekeywordsprofilevalues
#
install_typeinitial_install
system_typestandalone
partitioningexplicit
filesysc0t0d0s0auto/
filesysc0t3d0s1autoswap
filesysanyautousr
clusterSUNWCall
Thefollowinglistdescribessomeofthekeywordsandvaluesfromthisexample.
pa i ioning
Thefilesystemslicesaredeterminedbythe filesyskeywords,value explicit.Thesizeofroot( /)isbasedontheselected
software,value auto,andisinstalledon c0t0d0s0.Thesizeof swapissettothenecessarysizeandisinstalledon c0t3d0s1.
usrisbasedontheselectedsoftwareandtheinstallationprogramdetermineswhere usrisinstalled,basedonthevalue any.
cl
e
TheEntireSolarisSoftwareGroup, SUNWCall,isinstalledonthesystem.
Example3 5UpgradingandInstallingPatches
#profilekeywordsprofilevalues
#
install_typeupgrade
root_devicec0t3d0s2
backup_mediaremote_filesystemtimber:/export/scratch
packageSUNWbcpdelete
packageSUNWxwmanadd
clusterSUNWCaccadd
patchpatch_listnfs://patch_master/Solaris_10/patches\
retry5
localede
Thefollowinglistdescribessomeofthekeywordsandvaluesfromthisexample.
in all_ pe
Theprofileupgradesasystembyreallocatingdiskspace.Inthisexample,diskspacemustbereallocatedbecausesomefilesystemson
Theprofileupgradesasystembyreallocatingdiskspace.Inthisexample,diskspacemustbereallocatedbecausesomefilesystemson
thesystemdidnothaveenoughspacefortheupgrade.
oo _de ice
Therootfilesystemon c0t3d0s2isupgraded.
back p_media
Aremotesystemthatisnamed timberistobeusedtobackupdataduringthediskspacereallocation.Formorebackupmedia
keywordvalues,see backup_mediaProfileKeyword.
package
Thebinarycompatibilitypackage, SUNWbcp,isnotinstalledonthesystemaftertheupgrade.
package
ThecodeensuresthattheXWindowSystemmanpagesandtheSystemAccountingUtilitiesaretobeinstallediftheyarenotalready
installedonthesystem.Allpackagesalreadyonthesystemareautomaticallyupgraded.
pa ch
Alistofpatchesthatareinstalledwiththeupgrade.ThepatchlistislocatedonanNFSservernamed patch_masterunderthe
directories Solaris_10/patches.Incaseofamountfailure,theNFSmountistriedfivetimes.
locale
TheGermanlocalizationpackagesaretobeinstalledonthesystem.
Example3 6ReallocatingDiskSpaceforanUpgrade
#profilekeywordsprofilevalues
#
install_typeupgrade
root_devicec0t3d0s2
backup_mediaremote_filesystemtimber:/export/scratch
layout_constraintc0t3d0s2changeable100
layout_constraintc0t3d0s4changeable
layout_constraintc0t3d0s5movable
packageSUNWbcpdelete
packageSUNWxwmanadd
clusterSUNWCaccadd
localede
Thefollowinglistdescribessomeofthekeywordsandvaluesfromthisexample.
in all_ pe
Theprofileupgradesasystembyreallocatingdiskspace.Inthisexample,diskspacemustbereallocatedbecausesomefilesystemson
thesystemdidnothaveenoughspacefortheupgrade.
oo _de ice
Therootfilesystemon c0t3d0s2isupgraded.
back p_media
Aremotesystemthatisnamed timberistobeusedtobackupdataduringthediskspacereallocation.Formorebackupmedia
keywordvalues,see backup_mediaProfileKeyword.
la o _con
ain
The layout_constraintkeywordsdesignatethatautolayoutcanperformthefollowingwhenautolayoutattemptstoreallocatedisk
spacefortheupgrade.
Changeslices2and4.Theslicescanbemovedtoanotherlocationandthesizecanbechanged.
Moveslice5.Theslicecanbemovedtoanotherlocationbutitssizecannotchange.
package
Thebinarycompatibilitypackage, SUNWbcp,isnotinstalledonthesystemaftertheupgrade.
package
ThecodeensuresthattheXWindowSystemmanpagesandtheSystemAccountingUtilitiesaretobeinstallediftheyarenotalready
ThecodeensuresthattheXWindowSystemmanpagesandtheSystemAccountingUtilitiesaretobeinstallediftheyarenotalready
installedonthesystem.Allpackagesalreadyonthesystemareautomaticallyupgraded.
locale
TheGermanlocalizationpackagesaretobeinstalledonthesystem.
Example3 7RetrievingaSolarisFlashArchiveFromanHTTPServer
Inthefollowingexample,theprofileindicatesthatthecustomJumpStartprogramretrievestheSolarisFlasharchivefromanHTTPserver.
#profilekeywordsprofilevalues
#
install_typeflash_install
archive_locationhttp://192.168.255.255/flasharchive/solarisarchive
partitioningexplicit
filesysc0t1d0s04000/
filesysc0t1d0s1512swap
filesysc0t1d0s7free/export/home
Thefollowinglistdescribessomeofthekeywordsandvaluesfromthisexample.
in all_ pe
TheprofileinstallsaSolarisFlasharchiveontheclonesystem.Allfilesareoverwrittenasinaninitialinstallation.
a chi e_loca ion
TheSolarisFlasharchiveisretrievedfromanHTTPserver.
pa i ioning
Thefilesystemslicesaredeterminedbythe filesyskeywords,value explicit.Thesizeofroot( /)isbasedonthesizeofthe
SolarisFlasharchive.Therootfilesystemisinstalledon c0t1d0s0.Thesizeof swapissettothenecessarysizeandisinstalledon
c0t1d0s1. /export/homeisbasedontheremainingdiskspace. /export/homeisinstalledon c0t1d0s7.
Example3 8RetrievingaSolarisFlashArchiveFromaSecureHTTPServer
Inthefollowingexample,theprofileindicatesthatthecustomJumpStartprogramretrievestheSolarisFlasharchivefromasecureHTTPserver.
#profilekeywordsprofilevalues
#
install_typeflash_install
archive_locationhttps://192.168.255.255/solarisupdate.flar
partitioningexplicit
filesysc0t1d0s04000/
filesysc0t1d0s1512swap
filesysc0t1d0s7free/export/home
Thefollowinglistdescribessomeofthekeywordsandvaluesfromthisexample.
in all_ pe
TheprofileinstallsaSolarisFlasharchiveontheclonesystem.Allfilesareoverwrittenasinaninitialinstallation.
a chi e_loca ion
ThecompressedSolarisFlasharchiveisretrievedfromasecureHTTPserver.
pa i ioning
Thefilesystemslicesaredeterminedbythe filesyskeywords,value explicit.Thesizeofroot( /)isbasedonthesizeofthe
SolarisFlasharchive.Thesizeof swapissettothenecessarysizeandisinstalledon c0t1d0s1. /export/homeisbasedonthe
remainingdiskspace. /export/homeisinstalledon c0t1d0s7.
Example3 9RetrievingaSolarisFlashArchiveandInstallingaThirdPartyPackage
Inthefollowingexample,theprofileindicatesthatthecustomJumpStartprogramretrievestheSolarisFlasharchivefromanHTTPserver.
#profilekeywordsprofilevalues
#
install_typeflash_install
archive_locationhttp://192.168.255.255/flasharchive/solarisarchive
partitioningexplicit
filesysc0t1d0s04000/
filesysc0t1d0s1512swap
filesysc0t1d0s7free/export/home
packageSUNWnewhttp://192.168.254.255/Solaris_10timeout5
Thefollowinglistdescribessomeofthekeywordsandvaluesfromthisexample.
in all_ pe
TheprofileinstallsaSolarisFlasharchiveontheclonesystem.Allfilesareoverwrittenasinaninitialinstallation.
a chi e_loca ion
TheSolarisFlasharchiveisretrievedfromanHTTPserver.
pa i ioning
Thefilesystemslicesaredeterminedbythe filesyskeywords,value explicit.Thesizeofroot( /)isbasedonthesizeofthe
SolarisFlasharchive.Therootfilesystemisinstalledon c0t1d0s0.Thesizeof swapissettothenecessarysizeandisinstalledon
c0t1d0s1. /export/homeisbasedontheremainingdiskspace. /export/homeisinstalledon c0t1d0s7.
package
TheSUNWnewpackageisaddedfromthe Solaris_10directoryfromtheHTTPserver 192.168.254.255.
Example3 10RetrievingaSolarisFlashDifferentialArchiveFromanNFSServer
Inthefollowingexample,theprofileindicatesthatthecustomJumpStartprogramretrievestheSolarisFlasharchivefromanNFSserver.The
flash_updatekeywordindicatesthatthisisadifferentialarchive.Adifferentialarchiveinstallsonlythedifferencesbetweentwosystem
images.
#profilekeywordsprofilevalues
#
install_typeflash_update
archive_locationnfsinstallserver:/export/solaris/flasharchive\
/solarisdiffarchive
no_master_check
Thefollowinglistdescribessomeofthekeywordsandvaluesfromthisexample.
in all_ pe
TheprofileinstallsaSolarisFlashdifferentialarchiveontheclonesystem.Onlyfilesthatarespecifiedbythearchiveareinstalled.
a chi e_loca ion
TheSolarisFlasharchiveisretrievedfromanNFSserver.
no_ma e _check
Theclonesystemisnotcheckedforavalidsystemimage.Avalidsystemimagewouldhavebeenbuiltfromtheoriginalmastersystem.
Example3 11CreatinganEmptyBootEnvironment
Inthefollowingexample,theprofileindicatesthatthecustomJumpStartprogramcreatesanemptybootenvironment.Anemptyboot
environmentcontainsnofilesystemsandnocopyfromthecurrentbootenvironmentoccurs.Thebootenvironmentcanbepopulatedlaterwitha
SolarisFlasharchiveandthenactivated.
#profilekeywordsprofilevalues
#
install_typeinitial_install
system_typestandalone
partitioningexplicit
filesysc0t0d0s0auto/
filesysc0t3d0s1autoswap
filesysanyautousr
clusterSUNWCall
bootenvcreatebebenamesecond_BE\
filesystem/:/dev/dsk/c0t1d0s0:ufs\
filesystem:/dev/dsk/c0t1d0s0:swap\
filesystem/export:shared:ufs
filesystem/export:shared:ufs
Thefollowinglistdescribessomeofthekeywordsandvaluesfromthisexample.
pa i ioning
Thefilesystemslicesaredeterminedbythe filesyskeywords,value explicit.Thesizeofroot( /)isbasedontheselected
software,value auto,andisinstalledon c0t0d0s0.Thesizeof swapissettothenecessarysizeandisinstalledon c0t3d0s1.
usrisbasedontheselectedsoftwareandtheinstallationprogramdetermineswhere usrisinstalled,basedonthevalue any.
cl
e
TheEntireSolarisSoftwareGroup, SUNWCall,isinstalledonthesystem.
boo en c ea ebe
Anempty,inactivebootenvironmentissetupondisk c0t1d0.Filesystemsforroot( /),swap,and /exportarecreated,butleft
empty.ThissecondbootenvironmentcanbeinstalledwithaSolarisFlasharchiveatalatertime.Thenewbootenvironmentcanthenbe
activatedtobecomethecurrentbootenvironment.
Forkeywordvaluesandbackgroundaboutusingthiskeyword,seethefollowingreferences:
Fordescriptionsofkeywordvalues,seeProfileKeywordsandValues.
ForbackgroundaboutusingSolarisLiveUpgradethatcreates,upgrades,andactivatesinactivebootenvironments,seeChapter2,
SolarisLiveUpgrade(Overview),inSolaris1011/06InstallationGuide:SolarisLiveUpgradeandUpgradePlanning.
ForbackgroundaboutusingaSolarisFlasharchive,seeChapter1,SolarisFlash(Overview),inSolaris1011/06InstallationGuide:
SolarisFlashArchives(CreationandInstallation).
Example3 12CreatingRAID1VolumesWhenInstallingaSolarisFlashArchive
Inthefollowingexample,theprofileindicatesthatthecustomJumpStartprogramusesSolarisVolumeManagertechnologytocreateRAID1
volumes(mirrors)fortheroot( /), swap, /usrand /export/homefilesystems.ASolarisFlasharchiveisinstalledontheboot
environment.
#profilekeywordsprofilevalues
#
install_typeflash_install
arhcive_locationnfsserver:/export/home/export/flash.s10.SUNWCall
partitioningexplicit
filesysmirror:d10c0t0d0s0c0t1d0s04096/
filesysmirrorc0t0d0s12048swap
filesysmirror:d30c0t0d0s3c0t1d0s34096/usr
filesysmirror:d40c0t0d0s4c0t1d0s44096/usr
filesysmirror:d50c0t0d0s5c0t1d0s5free/export/home
metadbc0t1d0s7size8192count3
Thefollowinglistdescribessomeofthekeywordsandvaluesfromthisexample.
in all_ pe
TheprofileinstallsaSolarisFlasharchiveontheclonesystem.Allfilesareoverwrittenasinaninitialinstallation.
a chi e_loca ion
TheSolarisFlasharchiveisretrievedfromanNFSserver.
pa i ioning
Thefilesystemslicesaredeterminedbythe filesyskeywords,value explicit.
file
Theroot( /)filesystemiscreatedandmirroredontheslices c0t0d0s0and c0t1d0s0.Thesizeoftheroot( /)filesystemissetto
4096Mbytes.TheRAID1volumethatmirrors c0t0d0s0and c0t1d0s0isnamed d10.
file
The swapfilesystemiscreatedandmirroredontheslice c0t0d0s1,andissizedat2048Mbytes.ThecustomJumpStartprogram
assignsanametothemirror.
file
The /usrfilesystemiscreatedandmirroredontheslices c0t1d0s3and c0t0d0s3.Thesizeofthe /usrfilesystemissetto
4096Mbytes.TheRAID1volumeisnamed d30.
4096Mbytes.TheRAID1volumeisnamed d30.
file
The /usrfilesystemiscreatedandmirroredontheslices c0t1d0s4and c0t0d0s4.Thesizeofthe /usrfilesystemissetto
4096Mbytes.TheRAID1volumeisnamed d40.
me adb
Threestatedatabasereplicas(metadbs)areinstalledonslice c0t1d0s7,andaresizedat8192blocks(4Mbytes).
Foroverviewinformationabouthowtocreatemirroredfilesystemsduringyourinstallation,seeChapter8,CreatingRAID1Volumes
(Mirrors)DuringInstallation(Overview),inSolaris1011/06InstallationGuide:PlanningforInstallationandUpgrade.
Forguidelinesandrequirementsofcreatingmirroredfilesystems,seeChapter9,CreatingRAID1Volumes(Mirrors)DuringInstallation
(Planning),inSolaris1011/06InstallationGuide:PlanningforInstallationandUpgrade.
Fordescriptionsofkeywordvalues,see filesysProfileKeyword(CreatingRAID1Volumes)and metadbProfileKeyword(Creating
StateDatabaseReplicas).
Example3 13CreatingaRAID1VolumetoMirrortheRootFileSystem
Inthefollowingexample,theprofileindicatesthatthecustomJumpStartprogramusesSolarisVolumeManagertechnologytocreateaRAID1
volume(mirror)fortheroot( /)filesystem.
#profilekeywordsprofilevalues
#
install_typeinitial_install
clusterSUNWCXall
filesysmirror:d30c0t1d0s0c0t0d0s0/
filesysc0t0d0s3512swap
metadbc0t0d0s4size8192count4
metadbc0t1d0s4size8192count4
Thefollowinglistdescribessomeofthekeywordsandvaluesfromthisexample.
cl
e
TheEntireSolarisSoftwarePlusOEMSupportsoftwaregroup,SUNWCXall,isinstalledonthesystem.
file
Theroot( /)filesystemiscreatedandmirroredontheslices c0t1d0s0and c0t0d0s0.TheRAID1volumethatmirrors
c0t1d0s0and c0t0d0s0isnamed d30.ThecustomJumpStartprogramassignsnamestothetwosubmirrors.
file
The swapfilesystemiscreatedandmirroredontheslice c0t0d0s3,andissizedat512Mbytes.
me adb
Fourstatedatabasereplicas(metadbs)areinstalledonslice c0t0d0s4,andaresizedat8192blocks(4Mbytes).
me adb
Fourstatedatabasereplicas(metadbs)areinstalledonslice c0t1d0s4,andaresizedat8192blocks(4Mbytes).
ForoverviewinformationabouthowtocreateRAID1volumesduringyourinstallation,seeChapter8,CreatingRAID1Volumes(Mirrors)
DuringInstallation(Overview),inSolaris1011/06InstallationGuide:PlanningforInstallationandUpgrade.
ForguidelinesandrequirementsaboutcreatingRAID1volumes,seeChapter9,CreatingRAID1Volumes(Mirrors)DuringInstallation
(Planning),inSolaris1011/06InstallationGuide:PlanningforInstallationandUpgrade.
Fordescriptionsofkeywordvalues,see filesysProfileKeyword(CreatingRAID1Volumes)and metadbProfileKeyword(Creating
StateDatabaseReplicas).
Example3 14CreatingRAID1VolumestoMirrorMultipleFileSystems
Inthefollowingexample,theprofileindicatesthatthecustomJumpStartprogramusesSolarisVolumeManagertechnologytocreateRAID1
volumes(mirrors)fortheroot( /), swap,and /usrfilesystems.
#profilekeywordsprofilevalues
#profilekeywordsprofilevalues
#
install_typeinitial_install
clusterSUNWCXall
filesysmirror:d100c0t1d0s0c0t0d0s0200/
filesysc0t1d0s5500/var
filesysc0t0d0s5500
filesysmirrorc0t0d0s1512swap
metadbc0t0d0s3size8192count5
filesysmirrorc0t1d0s4c0t0d0s42000/usr
filesysc0t1d0s7free/export/home
filesysc0t0d0s7free
Thefollowinglistdescribessomeofthekeywordsandvaluesfromthisexample.
cl
e
TheEntireSolarisSoftwarePlusOEMSupportsoftwaregroup,SUNWCXall,isinstalledonthesystem.
file
Theroot( /)filesystemiscreatedandmirroredontheslices c0t1d0s0and c0t0d0s0.Thesizeoftheroot( /)filesystemissetto
200Mbytes.TheRAID1volumethatmirrors c0t1d0s0and c0t0d0s0isnamed d100.
file
The /varfilesystemisinstalledontheslice c0t1d0s5andissizedat500Mbytes.Theroot( /)filesystemiscreatedandmirrored
ontheslices c0t1d0s0and c0t0d0s0.Thesizeoftheroot( /)filesystemissetto200Mbytes.TheRAID1volumethatmirrors
c0t1d0s0and c0t0d0s0isnamed d100.
file
The swapfilesystemiscreatedandmirroredontheslice c0t0d0s1,andissizedat512Mbytes.ThecustomJumpStartprogram
assignsanametothemirror.
me adb
Fivestatedatabasereplicas(metadbs)areinstalledonslice c0t0d0s3,andaresizedat8192blocks(4Mbytes).
file
The /usrfilesystemiscreatedandmirroredontheslices c0t1d0s4and c0t0d0s4.Thesizeofthe /usrfilesystemissetto
2000Mbytes.ThecustomJumpStartprogramassignsanametothemirror.
Foroverviewinformationabouthowtocreatemirroredfilesystemsduringyourinstallation,seeChapter8,CreatingRAID1Volumes
(Mirrors)DuringInstallation(Overview),inSolaris1011/06InstallationGuide:PlanningforInstallationandUpgrade.
Forguidelinesandrequirementsofcreatingmirroredfilesystems,seeChapter9,CreatingRAID1Volumes(Mirrors)DuringInstallation
(Planning),inSolaris1011/06InstallationGuide:PlanningforInstallationandUpgrade.
Fordescriptionsofkeywordvalues,see filesysProfileKeyword(CreatingRAID1Volumes)and metadbProfileKeyword(Creating
StateDatabaseReplicas).
cl
e
TheEntireDistributionsoftwaregroup, SUNWCall,isinstalledonthesystem.
cl
e
Thesystemaccountingutilities, SUNWCacc,arenottobeinstalledonthesystem.
TestingaProfile
Afteryoucreateaprofile,usethepfinstall(1M)commandtotesttheprofile.Testtheprofilebeforeyouusetheprofiletoinstallorupgradea
system.Testingaprofileisespeciallyusefulwhenyouarecreatingupgradeprofilesthatreallocatediskspace.
Bylookingattheinstallationoutputthatisgeneratedby pfinstall,youcanquicklydetermineifaprofileworksasyouintended.For
example,usetheprofiletodetermineifasystemhasenoughdiskspacetoupgradetoanewreleaseoftheSolarissoftwarebeforeyouperform
theupgradeonthatsystem.
pfinstallenablesyoutotestaprofileagainstthefollowing:
Thesystem'sdiskconfigurationwhere pfinstallisbeingrun.
Otherdiskconfigurations.Youuseadiskconfigurationfilethatrepresentsastructureofadisk,forexample,adisk'sbytes/sector,flags,and
slices.CreatingdiskconfigurationfilesisdescribedinCreatingDiskConfigurationFilesandx86:ToCreateaDiskConfigurationFile.
Note
Youcannotuseadiskconfigurationfiletotestaprofileyouintendtousetoupgradeasystem.Instead,youmusttesttheprofileagainstthe
system'sactualdiskconfigurationandthesoftwarethatiscurrentlyinstalledonthatsystem.
ToCreateaTemporarySolarisEnvironmenttoTestaProfile
TotestaprofileforaparticularSolarisreleasesuccessfullyandaccurately,youmusttestaprofilewithintheSolarisenvironmentofthesame
release.Forexample,ifyouwanttotestaSolarisinitialinstallationprofile,runthe pfinstallcommandonasystemthatisrunningthe
SolarisOS.
Youneedtocreateatemporaryinstallationenvironmentifyouaretestingaprofileunderoneofthefollowingconditions:
YouwanttotestaSolaris1011/06upgradeprofileonasystemthatisrunningapreviousversionoftheSolarissoftware.
YoudonothaveaSolaris1011/06systeminstalledyettotestSolaris1011/06initialinstallationprofiles.
1. Bootasystemfromanimageofoneofthefollowing:
ForSPARCbasedsystems:
SolarisOperatingSystemforSPARCPlatformsDVD
SolarisSoftwareforSPARCPlatforms1CD
Forx86basedsystems:
SolarisOperatingSystemforx86PlatformsDVD
SolarisSoftwareforx86Platforms1CD
Note
Ifyouwanttotestanupgradeprofile,bootthesystemthatyouareupgrading.
2. Respondtothesystemidentificationquestions.
3. Toexitfromtheinstallationprogram,type!atthefollowingprompt.
TheSolarisinstallationprogramwillassistyouininstallingsoftwareforSolaris.
<PressENTERtocontinue>{"!"exits
4. Executethe pfinstallcommandfromtheshell.Fordetailsaboutusingthe pfinstallcommand,seeStep7inToTestaProfile.
ToTestaProfile
x86only
Ifyouareusingthe localekeyword,the pfinstall Dcommandfailstotesttheprofile.Foraworkaround,seetheerrormessage could
notselectlocale, inthesection,UpgradingtheSolarisOS.
notselectlocale, inthesection,UpgradingtheSolarisOS.
1. Locateasystemonwhichtotesttheprofilethatisthesametypeofplatform,SPARCorx86,forwhichtheprofilewascreated.
Ifyouaretestinganupgradeprofile,youmusttesttheprofileontheactualsystemthatyouintendtoupgrade.
2. Usethefollowingdecisiontabletodeterminewhattodonext.
TestScenario
Instructions
Testaninitialinstallationprofileandhaveasystem
thatisrunningtheSolaris1011/06software.
BecomesuperuseronthesystemandgotoStep5.
Testanupgradeprofile,oryoudonothaveasystem
thatisrunningSolaris1011/06totestaninitial
installationprofile.
CreateatemporarySolaris1011/06environmenttotesttheprofile.For
details,seeToCreateaTemporarySolarisEnvironmenttoTestaProfile.
Then,gotoStep3.
3. Createatemporarymountpoint.
#mkdi / mp/mn
4. Mountthedirectorythatcontainstheprofileorprofilesthatyouwanttotest.
MountScenario
MountaremoteNFSfilesystemforsystemsonthenetwork.
SPARC:MountaUFSformatteddiskette.
MountaPCFSformatteddiskette.
TypingInstructions
5. Totesttheprofilewithaspecificsystemmemorysize,set SYS_MEMSIZEtothespecificmemorysizeinMbytes.
#SYS_MEMSIZE=memor _si e
#e po SYS_MEMSIZE
6. DidyoumountadirectoryinStep4?
Ifyes,changethedirectoryto /tmp/mnt.
#cd/ mp/mn
Ifno,changethedirectorytowheretheprofileislocated,whichisusuallytheJumpStartdirectory.
#cdjumpstart_dir_path
7. Testtheprofilewiththepfinstall(1M)command.
#/
Caution
Caution
Youmustincludethe dor Doption.Ifyoudonotincludeoneoftheseoptions, pfinstallusestheprofileyouspecifyto
installtheSolarissoftware.Allofthedataonthesystemisoverwritten.
D
pfinstallusesthecurrentsystem'sdiskconfigurationtotesttheprofile.Youmustusethe Doptiontotestanupgradeprofile.
ddisk_config_file
pfinstallusesthediskconfigurationfile,disk_config_file,totesttheprofile.Ifdisk_config_fileisnotlocatedinthedirectory
where pfinstallisrun,youmustspecifythepath.
Forinstructionsabouthowtocreateadiskconfigurationfile,seeCreatingDiskConfigurationFiles.
Note
Youcannotusethe ddisk_config_fileoptionwithanupgradeprofile, install_typeupgrade.Youmustalwaystestan
upgradeprofileagainstasystem'sdiskconfiguration,thatis,youmustusethe Doption.
cpath
ThepathtotheSolarissoftwareimage.Youusethisoption,forexample,ifthesystemisusingVolumeManagertomounttheSolaris
Software1CDforyourplatform.
Note
The coptionisnotrequiredifyoubootedfromaSolarisOperatingSystemDVDoraSolarisSoftware1CDimageforyour
platform.TheDVDorCDimageismountedon /cdromaspartofthebootingprocess.
profile
Thenameoftheprofiletotest.Ifprofileisnotinthedirectorywhere pfinstallisbeingrun,youmustspecifythepath.
ProfileTestExamples
Thefollowingexampleshowshowtouse pfinstalltotestaprofilethatisnamed basic_prof.Theprofileistestedagainstthedisk
configurationonasystemonwhichtheSolaris1011/06softwareisinstalled.The basic_profprofileislocatedinthe /jumpstart
directory,andthepathtotheSolarisOperatingSystemDVDimageisspecifiedbecauseVolumeManagerisbeingused.
Example3 16ProfileTestUsingaSolaris1011/06System
#cd/j mp a
#/ / bin/in all.d/pfin allDc/cd om/pathnameba ic_p of
Example3 17ProfileTestUsingaDiskConfigurationFile
#SYS_MEMSIZE=64
#e po SYS_MEMSIZE
#/ / bin/in all.d/pfin alld535_ e c/e po /in allba ic_p of
Validatingthe
le File
Stage
Description
The rulesfileischeckedforsyntax.
checkverifiesthattherulekeywordsarelegitimateandthatthebegin,class,andfinishfieldsarespecifiedforeachrule.The
beginandfinishfieldscanconsistofaminussign( )insteadofafilename.
Ifnoerrorsarefoundinthe rulesfile,eachprofilethatisspecifiedintherulesischeckedforsyntax.
ToValidatethe
le File
1. Ensurethatthe checkscriptislocatedintheJumpStartdirectory.
Note
The checkscriptisinthe Solaris_10/Misc/jumpstart_sampledirectoryontheSolarisOperatingSystemDVDorontheSolaris
Software1CD.
2. ChangethedirectorytotheJumpStartdirectory.
3. Runthe checkscripttovalidatethe rulesfile:
$./checkppath file_name
ppath
Validatesthe rulesbyusingthe checkscriptfromtheSolarissoftwareimageinsteadofthe checkscriptfromthesystemyou
areusing.pathistheimageonalocaldiskoramountedSolarisOperatingSystemDVDoraSolarisSoftware1CD.
Usethisoptiontorunthemostrecentversionof checkifyoursystemisrunningapreviousversionofSolaris.
file_name
Specifiesarulesfileotherthantheonethatisnamed rules.Usingthisoption,youcantestthevalidityofarulebeforeyou
integratetheruleintothe rulesfile.
Asthe checkscriptruns,thescriptreportsthecheckingofthevalidityofthe rulesfileandeachprofile.Ifnoerrorsareencountered,the
scriptreportsthefollowinginformation.
ThecustomJumpStartconfigurationisok
4. Ensurethat rootownsthe rules.okfileandthatthepermissionsaresetto644.
SeeAlso
Afteryouvalidatethe rulesfile,youcanlearnmoreaboutoptionalcustomJumpStartfeaturesinChapter4,UsingOptionalCustomJumpStart
Features(Tasks).YoucanlearnaboutperformingcustomJumpStartinstallationsinChapter6,PerformingaCustomJumpStartInstallation
(Tasks).
Previous:Chapter2CustomJumpStart(Overview)
Next:Chapter4UsingOptionalCustomJumpStartFeatures(Tasks)
2010,OracleCorporationand/oritsaffiliates