CentOS 6.6 上使用 luci-ricci 安装配置 RHCS 集群

本文详细介绍了如何在CentOS 6.6上利用luci-ricci安装配置RHCS集群,包括环境准备、luci和ricci的安装、集群管理以及服务的高可用性和故障转移测试。步骤涵盖从安装luci、ricci到创建和管理集群资源,确保服务的稳定和自动故障切换。
摘要由CSDN通过智能技术生成


1.配置 RHCS 集群的前提:

 

  1. 时间同步

  2. 名称解析,这里使用修改/etc/hosts 文件

  3. 配置好 yum 源,CentOS 6 的默认的就行

  4. 关闭防火墙(或者开放集群所需通信端口),和selinux

  5. 关闭 NetworkManager 服务


2. RHCS 所需要的主要软件包为 cman  rgmanager

 

cman: 是集群基础信息层,在 CentOS 6中依赖 corosync

rgmanager: 是集群资源管理器, 类似于pacemaker 的功能

 

luci: 提供了管理 rhcs 集群的 web 界面, luci 管理集群主要是通过跟 ricci 通信来完成的。

ricci: 安装在集群的节点的接收来自 luci 管理请求的代理。

 

luci ricci 的关系就好像 ambari-server ambari-agent 一样。


3.环境说明:

luci :   
ricci:   
ricci:   
ricci:   

我这里已经配好了主机名了,但是其他的如时间同步,配置/etc/hosts/  等都没执行,为了方便,所以写了个 playbook 来进行初始化一下

---
- hosts:hdpservers
  remote_user: root
  vars:
  tasks:
  - name: add synctime cron
    cron: name='sync time' minute='*/5'job='/usr/sbin/ntpdate '  
  - name: shutdown iptables
    service: name={
  {}}state={
  {}} enabled={
  {}}
    with_items:
    - { name: iptables, state: stopped,enabled: no}
    - { name: NetworkManager, state: stopped,enabled: no}
    tags: stop service
  - name: copy selinux conf file
    copy: src={
  {}} dest={
  {}}owner={
  {}} group={
  {}} mode={
  {}}
    with_items:
    - { src=\'#\'" /etc/selinux/config', dest:/etc/selinux/config, owner: root, group: root, mode: '0644'}
    - { src=\'#\'" /etc/hosts', dest: /etc/hosts,owner: root, group: root, mode: '0644'}
  - name: cmd off selinux
    shell: setenforce 0

执行这个 playbook,进行初始化

[root@cent1 yaml]#ansible-playbook 

4. cent1 上安装 luci, luci 是一个 python 程序,依赖很多python

[root@cent1 ~]#yum install luci

启动 luci

[root@cent3 ~]#/etc//luci start
Adding followingauto-detected host IDs (IP addresses/domain names), corresponding to `cent3'address, to the configuration of self-managed certificate`/var/lib/luci/etc/' (you can change them by editing`/var/lib/luci/etc/', removing the generated certificate`/var/lib/luci/certs/' and restarting luci):
         (none suitable found, you can still doit manually as mentioned above)
 
Generating a 2048bit RSA private key
writing newprivate
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值