《SUSE12SP2_HAE搭建流程方法.docx》由会员分享,可在线阅读,更多相关《SUSE12SP2_HAE搭建流程方法.docx(34页珍藏版)》请在第一文库网上搜索。
1、1安装配置HAE1.1 网络规划设备名类型IP规划备注ErpprdO1Erpprd02EthO以太网Node1:172.18.12.161Node2:172.18.12.162集群心跳IPEth1以太网Node1:10.0.12.61Node2:10.0.12.62业务网段IPerpprd业务网口VIP10.0.12.60业务网VIP,SAP业务访问浮动IP12检查OS版本#catetcissue1.3检查内存#catprocmeminfogrep-imemtota,14检查CPU#catproccpuinfogrepprocessorwc-11.5检查swap#catprocswaps16检
2、查文件系统#df-h1.7检查umask#umask1.8检查uuidd#rpm-qagrepuuidd19设置NetWOrkIP操作系统使用yast2配置网口参考指导如下:以root用户登录服务器,执行yast2,选择networkDevices”,选择“NetworkSettings”如下图所示:SystemPetcsyscf1gBt1oaderDateandTimeKerne1Kdump1anguageEtorOn1ineMigrationPartrt1onerServicesSystemManagerTuningforSAP设置“ethO”业务网段NetworkCardSetupGen
3、era1AddressHardwareDeviceTypeConfigurationNameEthenIetethNo1inkandIPSetup(BondingS1aves)1UseiBFTVa1uesDynamicAddressDHCPDHCPbothversion4and6Statica11yAssignedIPAddressIPAddressSubnetMaskHpstname10.0.12.61/24erpprd1Additiona1AddressesIPv4Address1abe1IPAddressNetmaskAddFdir【方产三Cance1旦ack11NeXt设置设th1”心
4、跳网段NetworkCardSetupGenera1AddressHardwareDeviceTypeConfigurationNameEtherneteth1ONo1inkandIPSetup(BondingS1aves)_jUseiBFTVa1uesDynamicAddressDHCPDHCPbothVerSiOn4and6Statica11yAssignedIPAddressIPAddressSubnetMaskHostname172.18.12.161/24erpprd1-haAdditiona1AddressesIPv4Address1abe1IPAddressNetmaskAdgI
5、IEdKDeeteHe1pIICance1,SaCk一遛j瞬底设置HOSTNAME/DNSNetworkSettingsG1oba1OptionsOverviewHostname/DNSRoutingHostnameandDomainNameHostnameDomainNameerpprd10ChangeHostnameviaDHCPNointerfacewithdhcpAssignHostnameto1oopbackIPNameServersandDomainSearch1istNameServer1DomainSearchNameServer2NameServer3设置网关NetworkS
6、ettingsG1oba1OptionsOverviewHostname/DNSRoutingDefau1tIPv4GatewayDevice10.0.12.1:二Defau1tIPv6GatewayDeviceRoutingTab1eDestinationGatewayGenmaskDeviceOptionsEnab1eIPv4ForwardingCance1jOKEnab1eIPv6Forwarding日即J按照上述操作,完成node2服务器的网络设置。1.10修改主机host文件编辑hosts文件,同步node1和node2hosts2文件,如下图:10.0.12.6110.0.12.6
7、2172.18.12.161172.18.12.16210.0.12.60erpprd1erpprderpprd1-haerpprd1-haerpprd02-haerpprd02-1. 11NTP客户端配置HA集群中两台HANA服务器都需要分别配置NTP客户端,实现和NTP服务器时间同步。以root用户登录第一个服务器节点;执行下面命令chkconfigntpon”设置NTP自启动:#chkconfigntpdon执行w#vietcntp.confw命令编辑NTP配置文件ntp.confo#vietcntp.conf按“i”,将Vi编辑器切换至插入模式。插入内容:SerVerdevnu11;s
8、binhwc1ock-w按“ESC”,将Vi编辑器切换至命令行模式;按“:”,将Vi编辑器切换至底行模式,输入Wq,按“Enter,保存修改并退出Vi编辑器。重启服务:执行命令/etc/init.d/cronrestart”结束本节点的NTP配置etcinit.dcronrestart登录第二个HANA服务器节点,重复上面步骤配置NTP服务器;1.12SSH免密码互联服务配置HA集群的两台服务器的需要配置SSH免密码互联服务,执行过程如下:生成认证公钥分别在两个服务器上面执行依次执行:登录服务器节点1分别执行命令ssh-keygen-trsa”;ussh-keygen-tdsa,生成公钥;执行
9、过程参考如下:erpprd1:#ssh-keygen-trsaGeneratingpub1ic/privatersakeypair.Enterfi1einwhichtosavethekey(roo1.sshid-rsa):Createddirectory,root.ssh,.Enterpassphrase(emptyfornopassphrase):(默认,直接回车)Entersamepassphraseagain:(默认,直接回车)Youridentificationhasbeensavedinroot.sshid-rsa.Yourpub1ickeyhasbeensavedinroot.ss
10、hid-rsa.pub.Thekeyfingerprintis:b9:67:bb:07:06:8b:20:1b:3a:a4:2e:ed:e3:d7:58:54MD5Jrooterpprd01Thekeysrandomartimageis:+-RSA2048-一+IIIEIIII.o.Io.+o.SoI+o.oI.o+.o.I.oo.o.I.oooooI-1MD5J+登录服务器节点2同样分别执行命令rtssh-keygen-trsaw;ssh-keygen-tdsaw生成公钥;复制认证公钥依次执行下面把产生的公钥匏制到另外一台机器在服务器节点I依次执行下面命令复制公钥到对方节点;提示输入节点密码
11、时输入root用户密码;执行该命令必须先完成etchosts文件编辑,实现主机名到IP地址的解析;SSherpprd1echo$(catroot.sshid-dsa.pub)/root/.ssh/authorized_keysMsshsrmapp2,echo$(catroot.sshid-dsa.pub)root.sshauthorized-keysssherpprd1,echo$(catrt.sshidjrsapub)rt.sshauthorizedJkeysosshsrmapp2,echo$(cat/root/.ssh/id_rsa.pub)/root/.ssh/authorized_ke
12、ys打印参考如下:S1BaPP1二sshsrmapp1echo$(Cat/root/.ssh/id_dsa.pub)/root/.ssh/authorized_keysssrmapp2echoS(cat/root/.ssh/id_dsa.pub)root.ssh/authorized_keysssnsrmapp1echoS(cat/root/.ssh/id_rsa.pub)/root/.sshauthorized_keyssshsrmapp2echoS(cat/roor/.ssh/id_rsa.pub)root.ssh/authorized_keysTheauthenticityofhostsrmapp1(10.132.2.167),can,tbeestab1ished.ECDSAkeyfingerprintisf3:5c:6a:c8:ff:12:9d:7a:e4:22:5b:8e:9e:a9:Of:57md5.Areyousureyouwantocontinueconnecting(yesno)?yes