RHCA-436-4 rhcs conga
RHCS包含组件:
corosync udp/5404
cman udp/5405
ricci tcp/11111
dlm tcp/21064
modclusterd tcp/16861
RHCS提供了多种管理工具来创建和维护集群,这里主要谈谈conga和ccs。用几个示例来综合谈谈rhcs。
示例一:2节点集群(xfs+nginx+lvm-ha)+仲裁盘qdisk
集群环境概述:3台kvm虚拟机(node1和node2跑应用,node3作存储),每台4块网卡(2块网卡eth3,eth4连存储,1块eth2心跳,1块eth1和物理机通信安装软件之用),操作系统都采用CentOS6.5 x64
1.准备环境
实验情况暂不考虑iptables和selinux,所以在每个节点上permissive selinux及清空iptables,再关闭可能对集群产生干扰及故障的不必要的服务,并修改集群节点的hosts表。
/etc/init.d/iptables stop
iptables-save >/etc/sysconfig/iptables
sed -i 's/SELINUX=enforcing/SELINUX=permissive/g' /etc/sysconfig/selinux
chkconfig kdump off
chkconfig NetworkManager off
node1 #nginx服务节点
eth1 192.168.8.101
eth2 192.168.7.101
eth3 192.168.6.101
eth4 192.168.5.101
/etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.8.101 node1
192.168.7.101 node1
192.168.6.101 node1
192.168.5.101 node1
192.168.7.102 node2
192.168.7.103 luci
192.168.6.103 storage
192.168.5.103 storage
node2 #nginx服务节点
eth1 192.168.8.102
eth2 192.168.7.102
eth3 192.168.6.102
eth4 192.168.5.102
/etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.8.102 node2
192.168.7.102 node2
192.168.6.102 node2
192.168.5.102 node2
192.168.7.101 node1
192.168.7.103 luci
192.168.6.103 storage
192.168.5.103 storage
node3 #iSCSI存储及luci管理节点
eth1 192.168.8.103
eth2 192.168.7.103
eth3 192.168.6.103
eth4 192.168.5.103
/etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.8.103 storage
192.168.7.103 storage
192.168.6.103 storage
192.168.5.103 storage
192.168.6.101 node1
192.168.5.101 node1
192.168.6.102 node2
192.168.5.102 node2
192.168.7.103 luci
2.配置iSCSI存储,请参阅
RHCA-436-1 iSCSI
RHCA-436-3 multipath
3.部署conga
分别在node1,node2上安装ricci, 在node3上安装luci
yum -y install ricci
echo root|passwd --std ricci
/etc/init.d/ricci start
chkconfig ricci on
yum -y install luci
echo root|passwd --stdin luci
/etc/init.d/luci start
4.通过luci建立nginx ha集群
一.登录luci管理控制台
在浏览器中输入luci所在主机的ip,在luci启动时会给予提示。
https://192.168.7.103:8084
添加例外,直接信任。
初始用户为root,登录进去后会看到一个Warning, 直接忽略。最好添加一个普通账号来管理,我这里以luci来管理。加完账号赋予权限后,logout 再用luci这个用户登录。
二. 创建集群
集群名字,随便取,点完“Create cluster"之后会在后台为所有加入到该集群的节点安装相关软件包,装完后会重启集群节点。成功后如下图:
在没有添加集群服务之前,我们通过clustat 可以看到以下状态。
Cluster Status for rhcs @ Sun Sep 28 14:32:02 2014
Member Status: Quorate
Member Name ID Status
------ ---- ---- ------
node1 1 Online, Local
node2 2 Online
基础设施
包括服务安装,集群集逻辑卷等。待基础设施做好后即可添加相关集群资源及集群服务了。
A.安装nginx,请参看Nginx-1.x.x源码自动安装配置(CentOS6)
B.lvm-ha
1.在所有服务节点上开启lvm cluster功能,并重启clvmd
lvmconf --enable-cluster
/etc/init.d/clvmd restart
[root@node1 ~]# grep locking_type /etc/lvm/lvm.conf
locking_type = 3
# NB. This option only affects locking_type = 1 viz. local file-based
# The external locking library to load if locking_type is set to 2.
chkconfig clvmd on
chkconfig rgmanager on
chkconfig cman on
2.分区,我这里分了1个2G的空间,用来建立集群级逻辑卷
[root@node1 ~]# parted /dev/mapper/redhat mklabel gpt
Information: You may need to update /etc/fstab.
[root@node1 ~]# parted /dev/mapper/redhat mkpart primary 1 2048
Information: You may need to update /etc/fstab.
[root@node1 ~]# partprobe /dev/mapper/redhat
WARNING: GPT (GUID Partition Table) detected on '/dev/mapper/redhat'! The util fdisk doesn't support GPT. Use GNU Parted.
Disk /dev/mapper/redhat: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000
Device Boot Start
转载于:https://www.cnblogs.com/lixuebin/p/10814497.html
RHCA-436-4 rhcs conga相关推荐
- RHCS+Conga+GFS+cLVM共享存储的高可用性web集群
原创作品,允许转载,转载时请务必以超链接形式标明文章 原始出处 .作者信息和本声明.否则将追究法律责任.http://sohudrgon.blog.51cto.com/3088108/1599984 ...
- RHCS+Conga+iSCSI+CLVM+GFS实现Web服务的共享存储HA集群
一.RHCS架构规划: 所有服务器系统均为CentOS6.4_x86_64 在架构RHCS集群的诸多设定中如rpm包安装.配置文件修改等都需要在三个节点上同时进行:为了便于实现此过程,配置一台step ...
- RHEL6.4x64+RHCS+Conga(luci/ricci)+iSCSI+CLVM+gfs2安装配置V1.0
主机名 IP地址 主机用途 虚拟IP 所需软件 Manager 192.168.182.128 iSCSI-Target/RHCS管理端 无 scsi-target/luci Agent1 192.1 ...
- RHEL6.3x64 RHCS+Conga(Luci/ricci)+iscsi +CLVM+GFS+Apache配置
1.拓扑 主机名 主机用途 IP地址 虚拟IP(VIP) FreeNAS ISCSI Server 172.16.1.20 ...
- RHCA—436集群
集群存储,先做存储再做集群 集群三类 HA--高可用集群 HB--负载均衡集群<例如LVS> HPC--高性能集群 HA <rhel7> ...
- 基于conga实现RHCS简单部署
-----本文大纲 简介 术语 环境配置 实现过程 命令行管理工具 ------------- 一.简介 RHCS即 RedHat Cluster Suite ,中文意思即红帽集群套件.红帽集群套件( ...
- 使用conga部署RHCS
conga:是RHCS的全生命期的配置工具(在图形用户界面下配置corosync+cman+rgmanager) 测试环境: OS:rhel6.5 Director: 192.168.1.115 l ...
- centos6.5环境基于conga的web图形化界面方式配置rhcs集群
一.简介 RHCS 即 RedHat Cluster Suite ,中文意思即红帽集群套件.红帽集群套件(RedHat Cluter Suite, RHCS)是一套综合的软件组件,可以通过在部署时采用 ...
- rhcs套件conga实现高可用nginx+httpd集群,fence双机热备, clvm集群
红帽套件集群 HA( 高可用,双机热备,对外只有一个主机,但是两个主机都活着 ) luci: 提供了管理 rhcs 集群的 web 界面, luci 管理集群主要是通过跟 ricci 通信来完成的. ...
最新文章
- Python 微信机器人-通过wxpy库向指定名称的好友发送微信消息实例演示
- leetcode 349. 两个数组的交集 两种方案,c语言实现
- 洛谷P2680 运输计划(倍增LCA + 树上差分 + 二分答案)
- H5页面移动端双击屏幕禁止页面放大
- LeetCode 453. 最小移动次数使数组元素相等(数学)
- easyui datagrid加载数据的三种方式
- openstack错误汇总
- Oracle导出部分表 par,Oracle使用par文件进行全库导入导出
- stm32 火灾自动报警及联动控制源码_火灾自动报警系统怎么进行消防联动控制设计...
- 由于找不到vcruntime140_1.dll,无法继续执行代码
- 搜索引擎优化SEO专业术语总结(新手篇)
- 如何设计出优秀的EDM邮件营销模板
- Python3:好玩游戏的物品清单 和 列表到字典的函数
- 红帽linux安装docker,在CentOS7.6、红帽7.6系统中安装Docker:只需3条命令
- html5 制作 蝴蝶飞动的动态图片,fireworks制作蝴蝶飞gif动画
- 学习记录之OLED显示屏(IIC)1
- Password / Word lists
- CC Compare发布,再见了beyoned compare, 用qt自己写了个代码对比同步工具,大家给提提建议呢
- 华为OD两轮技术面试
- 可怕 !FaceBook 工程师上班跳楼自杀,北美这是怎么了