3、 新建集群
3.1、 集群工具介绍
rhcs有两种工具可以配置集群,一种是c/s结构的web界面的配置工具,服务端是luci,客户端是ricci默认安装clustering包组的时候都安装了这两个工具。
第二种是system-config-cluster是系统工具,但是在rhel6.0版本之后就没有这个工具了。
3.1.1、 Luci使用配置
第一次使用的时候要配置用户密码,默认的用户是admin:
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
[root@test001 ~]# luci_admin initInitializing the luci serverCreating the 'admin' userEnter password: #密码Confirm password: #确认密码Please wait...The admin password has been successfullyset.Generating SSL certificates...The luci server has been successfullyinitializedYou must restart the luci server forchanges to take effect.Run "service luci restart" to doso[root@test001 ~]# /etc/init.d/luci restartShutting down luci: [ OK ]Starting luci: Generating https SSLcertificates... done [ OK ]Point your web browser tohttps://test001:8084 to access luci |
然后用web游览器登陆https://test001:8084
3.1.2、 System-config-cluster
这个工具在系统工具里面,可以找到。或者直接在命令行下运行:
[root@test001~]#system-config-cluster

4、 利用system-config-cluser新建集群
点击:createNew configuration

填入集群名字:test
使用仲裁盘:参数设置:
Miniumscore:修改成1,默认是3.
添加程序:ping–c2 –t2 192.168.1.254 这个254是业务网关!!
Lable:qdisk01这个非常重要,不是乱填的,qdisk01是上面第二节我们建的仲裁盘他的标签是qdisk01,这里推荐用标签。
Score:1,间隔次数:interval:2
确认无误完:OK

4.1.1、 添加集群节点
选择:clusternodes,输入节点名(这个节点名要与/etc/hosts里面的保持一致)
将test001,test002,test003都按这个方法添加进去。

