Sunteți pe pagina 1din 23

HowIbuiltanOracleSolarisJumpstart

ServerusingOracleJET
(JumpstartEnterprisetoolkit)

Author:SiddharthaSankarSinha
Rev:1.0
Date:12/04/2011


FirstIwillloadtheServerfromaOracleSolaris10DVDorfromanexistingJumpstartServer.Procedures
areprettystraightforwardifyouuseOracleDVD.Justfollowtheinstructionandloadthebaseoperating
system.HereisascreenshothowitlookslikewhenIwasinstallingitfromanexistingJumpstartServer.
IaminstallingitfromanotherJumpstartServertosavetimetoinstallOSandlatestavailablepatches.
ButitcouldbedoneseparatelyifloadedfromCD/DVD.

NextfewscreenswillbesomethinglikethiswhenloadedfromaJumpstartServer.

Andafterafewminutes

It will take a while. Probably 2530 minutes to complete OS load and Patch installation. Patch cluster
loadingdoesnttakelongerwithlatestSolaris10.
NowIwilllogintothenewlybuiltserver.Thesearethedisksavailableinthisserver.Outofthatweused
c1t0d0&c1t1d0forOperatingSystems.Wewillstartplanninghowwewillsetitip.

WewillcopyalltheISOImagesofSolarisOperatingSystemsweareplanningtosupport.Plusweneed
all the patches available for Jumpstart Server. And we need Solaris Jumpstart Enterprise Toolkit. I
alreadydownloadedthatfromhttp://wikis.sun.com/display/JET/Homewebsite.
Iwillnowrunpkgadddjet.pkgandinstallallthepackages
SolarisJetpackageisinstalled.NowIwillcreateaRAID5volumewithalltheotherlocalattachedSCSI
disksfortheimagesandsoftwaresIwilluseforalltheSolarisServers.

metadbsuccessfullycreated.Icancheckthatnow.NextstepIwillcreateaRAID5Volumewithallthese
disks

NowIwillcreatetheRAID5volume

RAID5 volume is now setting up. Now I will create a filesystem in it once completed. I can check the
status.


Checkingagainandnowitiscompleted.

NowIwillcreateanUFSfilesysteminthisvolume

NowIwilladdtheentryasbelowandthenwillrunmountall

Hereisdfhoutput

NowIwillcopycreate/jumpstart/iso_imagesdirectoryandwillcopyallavailableISOimagesIalready
downloadedorcreatedfromCDs.ThisiswhatIgot.

NowIwillcreateamountpointfor/export/flasharchivesinthelastdiskwhichisSANattachedtosave
alltheflasharchivesunder/export/flasharchivesdirectory.IfIwouldnthavethisdiskIcouldsimplyuse
/jumpstartdirectory(Filesystem)tocreateflasharchivesdirectory.AlsoIhavetocreatemountpoints
for the Solaris images in /export/home directory. Now it is up to you how you will plan for your
requirement.
Now I will create mount point for the ISO images I have. I normally dont use all the images. Only 3
imagesIalwaysusethosehighlightedaboveinRED.ButIkeeptheotherimagesincaseIneedforany
Customer.

AnywaynowIwillcd/opt/SUNWjet/etcdirectoryandeditsolaris_iso_locationsfiletoaddtheentriesI
needanditlookslikebelow.

NowIwillrunthiscommandtomountalltheISOimages

Theabovescreenispartialview.Oncethecommandcompleteddfhoutputislikethis


NextstepIwillrunadd_solaris_locationslikebelowforalltheimages

After running that command for all the images I need I will check that with list_solaris_locations
command.Andoutputbelow


NowIwillrunshowmountecommandtocheckwhethertheabovefilesystemsareexportedornot.

Everythingislookinggoodsofar.NowIwillmakesurethatthesefilesystemsaremountedautomatically
after I reboot the server for any reason. I will create a file in /etc/rc2.d and I will name is as
S86share_isos.
Thefilewillbelikethis

NowIwilledit/etc/hostsfiletoincludeallthehostsandtheirIPaddressoftheSunServersIwillinstall
fromthisJumpstartServer.
AfterthatIwillcreatethefollowingdirectoriesunder/exportdirectoryforextrapackages,patchesetc.
Pleasethethiswebsiteformoredetailsexplanationhttp://wikis.sun.com/display/JET/Home

NowIwilledit/etc/dsf/dfstabfileandadd/export/install/patches&/export/install/pkgs
Thefilewilllooklike

AndthenIwillrunshareallandcheckthestatus

AllthepatchesIwillputin/export/install/patchesdirectory.Inmyjumpstartserveritlookslikebelow.I
savedthezipfilesincaseIcancopythemeasilytoanotherservertobuildanotherJumpstartServer.

Now to support PXE boot for x86 servers like X4200/x4600/v20z/v40z there are several procedures
availableintheinternet.IfthereisaDHCPserveravailableyoucanusethatservertodefineyourX86
Servers as well otherwise create a DHCP Server and specify the MAC address to server only those
servers.
AsIdonthaveadhcpserverIwillcreateonetwoinstalltwox4600Server
HereisagoodproceduretosetupdhcpinSolarishttp://kalali.me/configuringdhcpserverinsolaris/.
Path for the dhcpmgr is /usr/sadm/admin/bin/dhcpmgr and I will show you how you can do using
dhcpmgr.

Anditwillbringanwindowlikethis

IwillleaveConfigureasDHCPservercheckedandclickonOK.NextscreenIwillselectTextfilesand
clickonNext.

Iwillleave/var/dhcp(defaultvalue)aspath.Youmayselectwhateveryouneed.Next

HereIwillselect/etc/hostsasIdonthaveanyDNSServertomanagethehosts

AndIwillclickonNext

I will select highest possible value you can select whatever length of lease suitable for your
environment.AndIwillleavetheboxcheckedforClientscanrenewtheirleases

AsIdonthaveanyDNSServersoIwillleavetheseentriesaloneandwillclicknext

NowfromtheNetworkAddressdropdownmenuIwillselecttheIPSchemeIamgoingtosupport
andthenIwillclicknext.


IhavenothingtochangeheresoIwillclickonnexthere

NextscreenIhavenoNISsoIwilljustclickonNext


NoNIS+eithersoNext

FinalscreenandIwillclickonfinish

NextscreenIwillclickonyes

HereIwillselectNumberofIPaddressto2asIwilltesttwox86Serveronly

AndIwillclicknextandstartingIPaddressIwillchangeto192.168.224.16andIwillclicknext.

ThereasonIselected.16becausethosearetwoserversat.16&.17


Iwillclinkonnext.

Iwillselectleasetypeaspermanent.


Iwillreviewnextscreenandwillclickonfinish.

Nextscreenislikethis.

Nowdhcpserverisreadyisup.NowIwillcd/opt/SUNWjet/Products/base_config/solaris/base_config
andIwilleditbase_config.conffileandchangefewstuffs.MarkedinRed

Thisisanothersettingweneedforourinfrastructure.Youneedtobeverycarefulwhenyouselectthese
options.Ifyouhaveexistingdatainanotherdisksuseatyourrisk.

ThereisfewmoresettingwedotosupportCustomers.
IamalmostreadytotestmynewlybuiltjumpstartServer.IwilltestoneSparcandanotherX86Server.
Iwillcdto/opt/SUNWjet/binandthenIwillrunmake_templatefm4000aandthenIwilleditthe
template/opt/SUNWjet/Templates/m4000afile.Andchangetheentriestheseentries.

NowIwillopentheconsoleofm4000aandstartbootingfromnetwork

Fewminuteslater

NowIwilltestthisjumpstartserverforx86serverstoo.Iwillrunthesamecommandforax4600
server.

NowIwillchangefewentriessothatIcanloadthisx86architecture.Sothingsdifferent.Client
ArchitectureandClientOS

AndIneedtochangethefollowingparametertodhcpforPXEboot.ThisisthereasonIenabledDHCP
Server.

AnotherchangeasIamnotusingGUIforthisserverinsteadIwanttousetheSerialConsole

ThesearethemostbasicstuffsIneedforJumpstartServer.Lotofcustomizationcanbedoneeditng
thatfile.Alsomake_templatewithseveraloptionwilladdothermodules.Ijustcoveredthemostbasic
stuffsfornow.
IfIgetachancelaterIwilladdtheflashimageinstallation,zfsfilesystems,sdsandfewotherstuffs.

S-ar putea să vă placă și