1/24王智峰版权所有,严禁转载一.SC软件的初始化配置本文讲述在安装完SunCluster3.3软件后,进行HA的初始化配置的详细操作过程和步骤1.第一个节点BOSS1的配置###BEGINLOG-DATE:120308,TIME:125117###王智峰版权所有,严禁转载[root@boss1:/]#cd/usr/cluster/bin/[root@boss1:/usr/cluster/bin]#./scinstall***MainMenu***Pleaseselectfromoneofthefollowing(*)options:*1)Createanewclusteroraddaclusternode2)ConfigureaclustertobeJumpStartedfromthisinstallserver3)Manageadual-partitionupgrade4)Upgradethisclusternode*5)Printreleaseinformationforthisclusternode*?)Helpwithmenuoptions*q)QuitOption:1***NewClusterandClusterNodeMenu***Pleaseselectfromanyoneofthefollowingoptions:1)Createanewcluster2)Createjustthefirstnodeofanewclusteronthismachine3)Addthismachineasanodeinanexistingcluster?)Helpwithmenuoptionsq)ReturntotheMainMenuOption:22/24王智峰版权所有,严禁转载***EstablishJusttheFirstNodeofaNewCluster***Thisoptionisusedtoestablishanewclusterusingthismachineasthefirstnodeinthatcluster.Beforeyouselectthisoption,theOracleSolarisClusterframeworksoftwaremustalreadybeinstalled.UsetheOracleSolarisClusterinstallationmediaortheIPSpackagingsystemtoinstallOracleSolarisClustersoftware.PressControl-datanytimetoreturntotheMainMenu.Doyouwanttocontinue(yes/no)[yes]?TypicalorCustomModeThistoolsupportstwomodesofoperation,TypicalmodeandCustom.Formostclusters,youcanuseTypicalmode.However,youmightneedtoselecttheCustommodeoptionifnotalloftheTypicaldefaultscanbeappliedtoyourcluster.FormoreinformationaboutthedifferencesbetweenTypicalandCustommodes,selecttheHelpoptionfromthemenu.Pleaseselectfromoneofthefollowingoptions:1)Typical2)Custom?)Helpq)ReturntotheMainMenuOption[1]:1ClusterNameEachclusterhasanameassignedtoit.Thenamecanbemadeupofanycharactersotherthanwhitespace.Eachclusternameshouldbeuniquewithinthenamespaceofyourenterprise.3/24王智峰版权所有,严禁转载Whatisthenameoftheclusteryouwanttoestablish?sccluster-----设置集群名称,记录下来。在安装另外一台服务器的SC时需要输入CheckThisstepallowsyoutorunclusterchecktoverifythatcertainbasichardwareandsoftwarepre-configurationrequirementshavebeenmet.Ifclustercheckdetectspotentialproblemswithconfiguringthismachineasaclusternode,areportofviolatedchecksispreparedandavailablefordisplayonthescreen.Doyouwanttorunclustercheck(yes/no)[yes]?no-----此时是在安装第一个节点,不需要检测;但是在安装第二个节点时,必须检测ClusterNodesThisOracleSolarisClusterreleasesupportsatotalofupto16nodes.Pleaselistthenamesoftheothernodesplannedfortheinitialclusterconfiguration.Listonenodenameperline.Whenfinished,typeControl-D:Nodename(Control-Dtofinish):boss2------输入另一台服务器的主机名。注意大小写!Nodename(Control-Dtofinish):Thisisthecompletelistofnodes:boss1boss2Isitcorrect(yes/no)[yes]?ClusterTransportAdaptersandCables---------设置心跳网卡的端口Transportadaptersaretheadaptersthatattachtotheprivateclusterinterconnect.Selectthefirstclustertransportadapter:4/24王智峰版权所有,严禁转载1)bge12)e1000g13)OtherOption:1Willthisbeadedicatedclustertransportadapter(yes/no)[yes]?Searchingforanyunexpectednetworktrafficonbge1...doneVerificationcompleted.Notrafficwasdetectedovera10secondsampleperiod.Selectthesecondclustertransportadapter:1)bge12)e1000g13)OtherOption:2Willthisbeadedicatedclustertransportadapter(yes/no)[yes]?Searchingforanyunexpectednetworktrafficone1000g1...doneVerificationcompleted.Notrafficwasdetectedovera10secondsampleperiod.Plumbingnetworkaddress172.16.0.0onadapterbge1NOTDUPLICATE...donePlumbingnetworkaddress172.16.0.0onadaptere1000g1NOTDUPLICATE...doneQuorumConfigurationEverytwo-nodeclusterrequiresatleastonequorumdevice.Bydefault,scinstallselectsandconfiguresashareddiskquorumdeviceforyou.Thisscreenallowsyoutodisabletheautomaticselectionandconfigurationofaquorumdevice.Youhavechosentoturnontheglobalfencing.IfyoursharedstoragedevicesdonotsupportSCSI,suchasSerialAdvancedTechnologyAttachment(SATA)disks,orifyourshareddisksdonotsupportSCSI-2,youmustdisablethisfeature.5/24王智峰版权所有,严禁转载Ifyoudisableautomaticquorumdeviceselectionnow,orifyouintendtouseaquorumdevicethatisnotashareddisk,youmustinsteaduseclsetup(1M)tomanuallyconfigurequorumoncebothnodeshavejoinedtheclusterforthefirsttime.Doyouwanttodisableautomaticquorumdeviceselection(yes/no)[no]?yes-----是否要禁用自动法定设备选择:是AutomaticRebootOncescinstallhassuccessfullyinitializedtheOracleSolarisClustersoftwareforthismachine,themachinemustberebooted.Afterthereboot,thismachinewillbeestablishedasthefirstnodeinthenewcluster.Doyouwantscinstalltorebootforyou(yes/no)[yes]?ConfirmationYourresponsesindicatethefollowingoptionstoscinstall:scinstall-i\-Csccluster\-F\-Tnode=boss1,node=boss2,authtype=sys\-wnetaddr=172.16.0.0,netmask=255.255.240.0,maxnodes=64,maxprivatenets=10,numvirtualclusters=12\-Atrtype=dlpi,name=bge1-Atrtype=dlpi,name=e1000g1\-Btype=switch,name=switch1-Btype=switch,name=switch2\-mendpoint=:bge1,endpoint=switch1\-mendpoint=:e1000g1,endpoint=switch2Arethesetheoptionsyouwanttouse(yes/no)[yes]?Doyouwanttocontinuewiththisconfigurationstep(yes/no)[yes]?Checkingdevicetouseforglobaldevicesfilesystem...doneInitializingclusternametosccluster...doneInitializingauthenticationoptions...done6/24王智峰版权所有,严禁转载Initializingconfigurationforadapterbge1...doneInitializingc