CentOS 6.5 x64 RHCS GFS配置(2)

Adding following auto-detected host IDs (IP addresses/domain names), corresponding to `node01' address, to the configuration of self-managed certificate `/var/lib/luci/etc/cacert.config' (you can change them by editing `/var/lib/luci/etc/cacert.config', removing the generated certificate `/var/lib/luci/certs/host.pem' and restarting luci):  
        (none suitable found, you can still do it manually as mentioned above)

Generating a 2048 bit RSA private key  
writing new private key to '/var/lib/luci/certs/host.pem'    
Start luci...                                              [确定]    
Point your web browser to https://node01:8084 (or equivalent) to access luci

2) 配置管理地址, RHCS6版本采用root用户密码登录。

https://node01:8084    
root/111111

三、RHCS集群配置 1. 添加集群

登录进管理界面,点击Manage Clusters --> Create 填入如下内容:

Cluster Name: gfs

NodeName        Password    RicciHostname      Ricci Port  
node01.abc.com  111111      node01.abc.com    11111    
node02.abc.com  111111      node01.abc.com    11111

选中如下选项,然后提交  
Use locally installed packages.

说明:这步会生成集群配置文件/etc/cluster/cluster.conf

2. 添加Fence Devices

说明:    
RHCS要实现完整的集群功能,必须要实现fence功能。由于非物理服务器配置等条件限制,特使用VMware ESXi5.X的虚拟fence来实现fence设备的功能。    
正是由于有了fence设备可以使用,才得以完整测试RHCS功能。

(1)登录进管理界面,点击cluster-> Fence Devices->  
(2)选择"Add 选择VMware Fencing(SOAP Interface)    
(3)Name "ESXi_fence"    
(4)IP Address or Hostname "192.168.0.21"(ESXi地址)    
(5)Login "root"    
(6)Password "111111"

3. 节点绑定Fence设备 添加节点一fence

1) 点击node01.abc.com节点,Add Fence Method,这里填node01_fence;  
2) 添加一个fence instance,选择"ESXi_fence" VMware Fencing(SOAP Interface)    
3) VM NAME "kvm_node01"    
4) VM UUID "564d6fbf-05fb-1dd1-fb66-7ea3c85dcfdf"  选中ssl

说明: VMNAME: 虚拟机名称,VM UUID: 虚拟机.vmx文件中"  
uuid.location"值, 采用下面的字符串的格式。

# /usr/sbin/fence_vmware_soap -a 192.168.0.21 -z -l root -p xjj876543 -n kvm_node2 -o list  
kvm_node2,564d4c42-e7fd-db62-3878-57f77df2475e    
kvm_node1,564d6fbf-05fb-1dd1-fb66-7ea3c85dcfdf

添加节点二fence

1) 点击node02.abc.com节点,Add Fence Method,这里填node02_fence;  
2) 添加一个fence instance,选择"ESXi_fence" VMware Fencing(SOAP Interface)    
3) VM NAME "kvm_node02"    
4) VM UUID "564d4c42-e7fd-db62-3878-57f77df2475e" 选中ssl

#手动测试fence功能示例:

# /usr/sbin/fence_vmware_soap -a 192.168.0.21 -z -l root -p xjj876543 -n kvm_node02 -o reboot    
Status: ON

选项:  
-o : list,status,reboot等参数

4. 添加Failover Domains配置

Name "gfs_failover"  
Prioritized    
Restricted    
node01.abc.com    1    
node02.abc.com    1

5. 配置GFS服务 (1) GFS服务配置

分别在node01,node02启动CLVM的集成cluster锁服务

lvmconf --enable-cluster   
chkconfig clvmd on

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/8641d5544ac5575b3c00359fab21f730.html