SUSE12SP2_HAE搭建详细教程.docx

上传人:暗伤 文档编号:94771668 上传时间:2023-08-06 格式:DOCX 页数:33 大小:913.59KB
返回 下载 相关 举报
SUSE12SP2_HAE搭建详细教程.docx_第1页
第1页 / 共33页
SUSE12SP2_HAE搭建详细教程.docx_第2页
第2页 / 共33页
点击查看更多>>
资源描述

《SUSE12SP2_HAE搭建详细教程.docx》由会员分享,可在线阅读,更多相关《SUSE12SP2_HAE搭建详细教程.docx(33页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、1 安装配置HAE1.1 网络规划设备名类型IP规划备注Erpprd01Erpprd02Eth0以太网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业务访问浮动IP1.2 检查OS版本# cat /etc/issue1.3 检查内存# cat /proc/meminfo | grep -i memtotal1.4 检查cpu# cat /proc/cpuinfo |grep processo

2、r|wc l1.5 检查swap#cat /proc/swaps1.6 检查文件系统#df -h1.7 检查umask#umask1.8 检查uuidd#rpm qa | grep uuidd1.9 设置Network IP操作系统使用yast2配置网口参考指导如下:以root 用户登录服务器,执行”yast2”, 选择“network Devices”, 选择“Network Settings”如下图所示:设置“eth0”业务网段设置“eth1”心跳网段设置HOSTNAME/DNS设置网关按照上述操作,完成node2服务器的网络设置。1.10 修改主机host文件编辑hosts文件,同步no

3、de1和node2 hosts2文件,如下图:1.11 NTP客户端配置HA集群中两台HANA服务器都需要分别配置NTP客户端,实现和NTP服务器时间同步。以root用户登录第一个服务器节点; 执行下面命令“chkconfig ntp on”设置NTP自启动:#chkconfig ntpd on执行“#vi /etc/ntp.conf”命令编辑NTP配置文件 ntp.conf。#vi /etc/ntp.conf按“i”,将vi编辑器切换至插入模式。插入内容:server 。本指导书以 10.1.11.253 地址为例,请根据用户实际的NTP服务器地址进行替换;server 10.1.11.25

4、3按“ESC”,将vi编辑器切换至命令行模式。按“:”,将vi编辑器切换至底行模式,输入wq!,按“Enter”,保存修改并退出vi编辑器。执行命令“service ntp restart”重启NTP服务#service ntpd restart执行命令“ntpq -p”查看NTP运行状态。#ntpq -p显示结果主要参数说明:remote :响应这个请求的NTP服务器的名称。when: 上一次成功请求之后到现在的秒数。poll : 本地机和远程服务器多少时间进行一次同步(单位为秒)。offset :主机通过NTP时钟同步与所同步时间源的时间偏移量,单位为毫秒(ms)。配置时间同步间隔:执行

5、命令“crontab -e”进入VI编辑;输入“i”进入插入模式;增加下面语句*/15 * * * * /usr/sbin/rcntp ntptimeset & /dev/null; /sbin/hwclock -w按“ESC” ,将vi编辑器切换至命令行模式;按“:”,将vi编辑器切换至底行模式,输入wq,按“Enter”,保存修改并退出vi编辑器。重启服务:执行命令“/etc/init.d/cron restart”结束本节点的NTP配置/etc/init.d/cron restart登录第二个HANA服务器节点,重复上面步骤配置NTP服务器;1.12 SSH免密码互联服务配置HA 集群的

6、两台服务器的需要配置SSH免密码互联服务,执行过程如下:生成认证公钥分别在两个服务器上面执行依次执行:登录服务器节点1 分别执行命令“ssh-keygen -t rsa”;“ ssh-keygen -t dsa”生成公钥;执行过程参考如下:erpprd01: # ssh-keygen -t rsaGenerating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa):Created directory /root/.ssh.Enter passphrase (empty for

7、 no passphrase): (默认,直接回车)Enter same passphrase again: (默认,直接回车)Your identification has been saved in /root/.ssh/id_rsa.Your public key has been saved in /root/.ssh/id_rsa.pub.The key fingerprint is:b9:67:bb:07:06:8b:20:1b:3a:a4:2e:ed:e3:d7:58:54 MD5 rooterpprd01The keys randomart image is:+- RSA 20

8、48-+| | E | . | .o . . . |o. + o .So |+ . o .o |.o + .o. |.o o . o . |.ooo oo |+-MD5-+登录服务器节点2 同样分别执行命令“ssh-keygen -t rsa”;“ ssh-keygen -t dsa”生成公钥;复制认证公钥依次执行下面把产生的公钥复制到另外一台机器在服务器节点1依次执行下面命令复制公钥到对方节点;提示输入节点密码时输入root用户密码;执行该命令必须先完成/etc/hosts文件编辑,实现主机名到IP地址的解析;ssh erpprd01 echo $(cat /root/.ssh/id_dsa

9、.pub) /root/.ssh/authorized_keysssh srmapp2 echo $(cat /root/.ssh/id_dsa.pub) /root/.ssh/authorized_keysssh erpprd01 echo $(cat /root/.ssh/id_rsa.pub) /root/.ssh/authorized_keysssh srmapp2 echo $(cat /root/.ssh/id_rsa.pub) /root/.ssh/authorized_keys打印参考如下:登录服务器节点2,参考服务器节点1的方法,依次执行下面命令复制公钥到对方节点;ssh e

10、rpprd01 echo $(cat /root/.ssh/id_dsa.pub) /root/.ssh/authorized_keysssh srmapp2 echo $(cat /root/.ssh/id_dsa.pub) /root/.ssh/authorized_keysssh erpprd01 echo $(cat /root/.ssh/id_rsa.pub) /root/.ssh/authorized_keysssh srmapp2 echo $(cat /root/.ssh/id_rsa.pub) /root/.ssh/authorized_keys验证配置结果SSH免密码互联验

11、证方法:分别在两个节点上,使用SSH登录另外一个节点,如果不需要密码登录,则说明互信已经建立;登录服务器节点1,运行“ ssh srmapp2”,应该可以直接登录到节点2,不需要输入密码;在服务器节点2,运行“ ssh erpprd01”,应该可以直接登录到节点1,不需要输入密码;1.13 Suse 11 SP3 Cluster组件安装两台HANA集群的服务器,需要分别安装Cluster组件安装Suse 11 SP3 Cluster组件;服务器节点1安装;挂载ISO文件:通过BMC的KVM把Suse 12 SP2 For SAP 的ISO文件挂载入Suse 12的OS 中;在桌面点击鼠标右键,

12、打开一个“Terminal”,输入yast2命令,打开管理界面;选择左边“software”项,并且在右边项中选 择“Add-On Products”;登录HA服务器节点2, 参考上面步骤16;在服务器节点2,安装cluster HA组件;2.14 Suse 11 SAP Cluster HA 配置主节点初始化HA集群在HA集群服务器节点1 上运行Suse 12 Cluster的命令进行集群的初始化,在进行集群初始化前需要配置SSH互信连接和NTP。以root用户登录服务器节点1(配置为主节点),执行命令“ha-cluster-init”,进行初始化;执行过程中根据下面提示选择 打印提示完成,

13、记住登录用户为“hacluster”密码为“linux”打印参考如下:Erpprd01: # ha-cluster-init Enabling sshd service /root/.ssh/id_rsa already exists - overwrite? y/N N ( 输入N,不覆盖) Generating ssh key Configuring csync2 Generating csync2 shared key (this may take a while).done Enabling csync2 service Enabling xinetd service csync2 c

14、hecking files Configure Corosync: This will configure the cluster messaging layer. You will need to specify a network address over which to communicate (default is eth0s network, but you can use the network address of any active interface), a multicast address and multicast port. Network address to

15、bind to (e.g.: 192.168.1.0) 172.18.12.0 172.18.12.0 (输入本机OS维护网段) Multicast address (e.g.: 239.x.x.x) 239.140.42.209 ( 默认不修改,回车) Multicast port 5405 ( 默认不修改,回车) Configure SBD: If you have shared storage, for example a SAN or iSCSI target, you can use it avoid split-brain scenarios by configuring SBD.

16、 This requires a 1 MB partition, accessible to all nodes in the cluster. The device path must be persistent and consistent across all nodes in the cluster, so /dev/disk/by-id/* devices are a good choice. Note that all data on the partition you specify here will be destroyed. Do you wish to use SBD?

17、y/N N(不使用SBD 模式)WARNING: Not configuring SBD - STONITH will be disabled. Enabling hawk service HA Web Konsole is now running, to see cluster status go to: https:/10.132.1.167:7630/ Log in with username hacluster, password linuxWARNING: You should change the hacluster password to something more secur

18、e! Enabling openais service Waiting for cluster.done Loading initial configuration Done (log saved to /var/log/sleha-bootstrap.log)备节点加入集群在HA集群服务器备节点上,运行Suse 11 Cluster的命令加入现有的集群中;以root用户登录 HA集群备节点,运行命令“ha-cluster-join”参考打印如下:Erpprd02: # ha-cluster-join Join This Node to Cluster: You will be asked f

19、or the IP address of an existing node, from which configuration will be copied. If you have not already configured passwordless ssh between nodes, you will be prompted for the root password of the existing node. IP address or hostname of existing node (e.g.: 192.168.1.1) 172.18.12.161 Enabling sshd

20、service /root/.ssh/id_rsa already exists - overwrite? y/N N Configuring csync2The authenticity of host 10.132.1.167 (10.132.1.167) cant be established.ECDSA key fingerprint is f3:5c:6a:c8:ff:12:9d:7a:e4:22:5b:8e:9e:a9:0f:57 MD5.Are you sure you want to continue connecting (yes/no)? yes Enabling csyn

21、c2 service Enabling xinetd service Merging known_hosts Probing for new partitions.done Enabling hawk service HA Web Konsole is now running, to see cluster status go to: https:/10.132.1.168:7630/ Log in with username hacluster, password linuxWARNING: You should change the hacluster password to someth

22、ing more secure! Enabling openais service Waiting for cluster.done Done (log saved to /var/log/sleha-bootstrap.log)You have mail in /var/mail/root备注:如果提示安装失败:“WARNING: csync2 of /etc/csync2/csync2.cfg failed - file may not be in sync on all nodes;”则需要在主节点运行命令“scp /etc/csync2/csync2.cfg srmapp2: /etc

23、/csync2/”,手动把主节点文件“csync2.cfg”同步到备节点;然后重新执行命令“sleha-join”。修改集群密码Erprpd01: # passwd haclusterChanging password for hacluster.New Password: Reenter New Password: Password changed.登陆“Hawk”,查看集群状态,用户:hacluster 密码 linux url:https:/10.0.12.61:7630或者通过crm_mon观察创建共享盘登录Vmware对erpprd01和erpprd02划分一块100g的共享盘(is

24、csi)创建文件系统之前,先在两台虚拟机上把对应的目录建完。以erpprd01为例:erpprd01: # cd /You have new mail in /var/mail/rooterpprd01:/ # mkdir /exporterpprd01:/ # mkdir /export/sapmnterpprd01:/ # mkdir /export/usrerpprd01:/ # mkdir /export/usr/saperpprd01:/ # mkdir /export/usr/sap/transerpprd01:/ #通过Yast进行磁盘划分备注:erpprd02上无需对磁盘进行操

25、作创建资源VIP、FS创建VIP资源,admin_addr创建FS资源,fs_trans和fs_sapmnt创建一个名为“APP_SAP”的Group,将admin_addr、fs_trans和fs_sapmnt添加到group中。创建Ping注意:ping是集群互认的心跳探测配置,关系到资源的切换。创建primitive资源,ID ping创建clone资源,ID r_ping。将资源ping添加其中添加ping约束:创建stonith打开stonith开关:勾选Stonith Enabled创建SDB创建primitive资源,ID r_sdb创建clone资源,ID SDB。添加r_sdbNFS SERVER设置在两个节点上,需要分别通过NFS mount两个目录mount -t nfs -o nolock erpprd:/export/sapmnt /sapmntmount -t nfs -o nolock erpprd:/export/usr/sap/trans /usr/sap/transnode1:node2:

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 技术资料 > 技术方案

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁