rhcs 集群相关记录

1.rhcs 安装

yum install luci ricci rgmanager cman

 

2. luci  web管理界面,只需要一个主节点安装即可

    ricci   agent  都需要安装

3.查看集群状态

[root@app ~]# clustat -l
Cluster Status for ncmaster @ Wed Feb 19 12:55:37 2014
Member Status: Quorate

 Member Name                                                   ID   Status
 ------ ----                                                   ---- ------
 app3                                                              1 Online, rgmanager
 app2                                                              2 Online, Local, rgmanager

Service Information
------- -----------

Service Name      : service:nc-vip
  Current State   : started (112)
  Flags           : none (0)
  Owner           : app3
  Last Owner      : app2
  Last Transition : Wed Feb 19 10:17:47 2014

[root@app ~]# clustat
Cluster Status for ncmaster @ Wed Feb 19 12:56:14 2014
Member Status: Quorate

 Member Name                                                   ID   Status
 ------ ----                                                   ---- ------
 app3                                                              1 Online, rgmanager
 app2                                                              2 Online, Local, rgmanager

 Service Name                                         Owner (Last)                                         State         
 ------- ----                                         ----- ------                                         -----         
 service:nc-vip                                       app3                                                 started 

 

[root@app ~]# cman_tool status
Version: 6.2.0
Config Version: 8
Cluster Name: ncmaster
Cluster Id: 27156
Cluster Member: Yes
Cluster Generation: 24
Membership state: Cluster-Member
Nodes: 2
Expected votes: 1
Total votes: 2
Node votes: 1
Quorum: 1  
Active subsystems: 9
Flags: 2node Dirty 
Ports Bound: 0 11 177  
Node name: app2
Node ID: 2
Multicast addresses: 239.192.106.126 
Node addresses: 172.16.1.10

 

4.手动切换

clusvcadm -r 服务名 -m 目标节点 

 

5.ipmi配置  有的在bios 里面设置(联想服务器),有的在启动的时候有单独界面设置(dellr710)

配置完以后,ie 就可以远程访问这些服务器,进行远程配置

 

6.没有共享资源应该不用配置quorum disk,待实验,我只是配置了vip

 

7.查看节点

[root@app ~]# ccs_tool lsnode 

Cluster name: ncmaster, config_version: 8

Nodename                        Votes Nodeid Fencetype
app3                               1    1    app3
app2                               1    2    app2

8. 查看fence

[root@app2 ~]# ccs_tool lsfence
Name             Agent
app3             fence_ipmilan
app2             fence_ipmilan

你可能感兴趣的:(集群,记录,rhcs)