RHCS
CMAN作为集群体系的核心,每个节点有cman,主节点的cman是当前节点的大脑。
ccs做配置文件管理,GFS集群文件系统 LUCI配置和管理RHCS集群
CLVM 集群逻辑卷管理
5 验收测试环境,(多厂商合作)
步骤: 两台机器node1 node2步骤同步
1、vi/etc/sysconfig/network 修改hostname=node1 2
2、修改IP地址 清空防火墙规则 iptables –F service iptablessave 保存防火墙状态 chkconfig iptables off 设置防火墙开机状态 vim /etc/sysconfig/selinux 脚本关闭SELinux
3、配置yum仓库
4、vi/etc/hosts
192.168.21.120node1
192.168.21.110node2
192.168.21.121node1-ha
192.168.21.111node2-ha
Scp/etc/hosts node2:/etc/ ntpdate node1
5、建立ssh上信任关系
ssh-keygen-t rsa 回车进入 公钥私钥
ssh-copy-id-i ~/.ssh/id_rsa.pub root@node2 拷贝
6、 先/etc/init.d/ntpdstart 后ntpdatenode2启动时间服务器,同步node2时间
7、配置yum仓库、 安装集群软件 yum install ricci
Passwd ricci 给Ricci一个密码
开启服务、重启启动service ricci start ; chkconfig ricci on
1、安装集群套件
yumgroupinstall “High Availability”
yumgroupinstall “High Availability Management”
安装所需要服务yum install openais cman rgmanager lvm2-cluster gfs2-utils httpd -y
2、配置Apache /etc/httpd/conf/httpd.conf
1、配置公共IP2、配置ServerName www.ha.com:80 配置NameVirtualHost 192.168.21.100:80
2、 DocumentRoot/var/WWW/html ServerName www.ha.com
、/var/www/html 添加index.html标签
11、安装管理端 service luci start 进入https://node1:8084/做配置