华为机密,未经许可不得扩散资料编码产品名称集成服务使用对象华为工程师、合作方工程师产品版本V100R001编写部门国内软件服务部资料版本V1.1RHCS双机调测指导书拟制:日期:审核:日期:审核:日期:批准:日期:华为技术有限公司版权所有侵权必究RHCS双机调测指导书指导书文档密级:内部公开华为机密,未经许可不得扩散修订记录日期修订版本描述作者RHCS双机调测指导书指导书文档密级:内部公开华为机密,未经许可不得扩散目录第1章安装规划...........................................................................................................................11.1实例说明................................................................................................................................11.2安装环境................................................................................................................................11.2.1硬件环境......................................................................................................................11.2.2操作系统......................................................................................................................11.3安装规划.................................................................................................................................1第2章系统安装配置....................................................................................................................52.1系统安装.................................................................................................................................52.1.1操作系统安装...............................................................................................................52.1.2RHCS安装...............................................................................................................152.2配置系统环境......................................................................................................................162.2.1打开telnet服务........................................................................................................162.2.2开启root用户Xmanager远程登录..........................................................................172.2.3缩短内核引导超时限度.............................................................................................182.3HPILO卡配置.....................................................................................................................18第3章双机调测.........................................................................................................................233.1配置双机..............................................................................................................................233.2集群管理..............................................................................................................................323.2.1集群启动和关闭........................................................................................................323.2.2显示群集和服务状态.................................................................................................32RHCS双机调测指导书指导书文档密级:内部公开华为机密,未经许可不得扩散关键词:RHCS、Redhat、Liunx、DHCP、DNS、Cluster摘要:RHCS双机调测指导书介绍了如何安装redhat操作系统和RHCS集群软件,并通过配置实例介绍了RHCS双机调测过程,旨在对工程师的开局和维护有指导作用。缩略语清单:RHCS:RedhatClusterSuite参考资料清单:RHCS双机调测指导书指导书文档密级:内部公开2007-05-22华为机密,未经许可不得扩散第1页,共32页第1章安装规划1.1实例说明本文以两台HP服务器搭建HTTP服务双机为例,并使用最少的资源,详细介绍RHCS双机配置过程。1.2安装环境1.2.1硬件环境HPDL585机架服务器:(HPProLiantDL585R05机架式机箱)*1/(CPUAMDO8380Quad-CoreProcessor)*4/(内存HP2GBRegPC2-64002x4GB)*16/(网卡HPNC364TPCIe四通道千兆网卡(铜介质))*1/(硬盘146GB10KSAS2.5双端口热插拔硬盘)*41.2.2操作系统Redhat5.4企业版x86_64,集群软件:RedhatClusterSuite,操作系统自带。1.3安装规划主机名网卡IP地址掩码网关应用浮动ipredhat1.test.cometh4192.168.1.8255.255.255.0192.168.1.1192.168.1.10ilo2192.168.1.11255.255.255.0192.168.1.1redhat2.test.cometh4192.168.1.9255.255.255.0192.168.1.1192.168.1.10ilo2192.168.1.12255.255.255.0192.168.1.1相关配置文件参考:/etc/hosts文件,两个节点一样。#Donotremovethefollowingline,orvariousprogramsRHCS双机调测指导书指导书文档密级:内部公开2007-05-22华为机密,未经许可不得扩散第2页,共32页#thatrequirenetworkfunctionalitywillfail.127.0.0.1localhost.localdomainlocalhost::1localhost6.localdomain6localhost6192.168.1.8redhat1.test.com192.168.1.9redhat2.test.com双机配置文件/etc/cluster/cluster.conf,两个节点一样。?xmlversion=1.0?clusteralias=haclusterconfig_version=6name=haclusterfence_daemonpost_fail_delay=0post_join_delay=3/clusternodesclusternodename=redhat1.test.comnodeid=1votes=1fencemethodname=1devicename=ilo1//method/fence/clusternodeclusternodename=redhat2.test.comnodeid=2votes=1fencemethodname=1devicename=ilo2//method/fence/clusternode/clusternodesRHCS双机调测指导书指导书文档密级:内部公开2007-05-22华为机密,未经许可不得扩散第3页,共32页cmanexpected_votes=1two_node=1/fencedevicesfencedeviceagent=fence_ilohostname=192.168.1.11login=adminname=ilo1passwd=huawei123456/fencedeviceagent=fence_ilohostname=192.168.1.12login=adminname=ilo2passwd=huawei123456//fencedevicesrmfailoverdomainsfailoverdomainname=redhatfdordered=0restricted=0failoverdomainnodename=redhat1.test.compriority=1/failoverdomainnodename=redhat2.test.compriority=1//failoverdomain/failoverdomainsresourcesscriptfile=/etc/rc.d/init.d/httpdname=httpserver/ipaddress=192.168.1.10/24monitor_link=1//resourcesserviceautostart=1name=testserverscriptref=httpserver/ipref=192.168.1.10/24/RHCS双机调测指导书指导书文档密级:内部公开2007-05-22华为机密,未经许可不得扩散第4页,