<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Life Style! &#187; rhcs</title>
	<atom:link href="http://www.realqi.cn/tag/rhcs/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.realqi.cn</link>
	<description>系统管理  维护监控  简单生活</description>
	<lastBuildDate>Wed, 25 Aug 2010 14:41:03 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>REDHAT CLUSTER SUIT WITH GFS</title>
		<link>http://www.realqi.cn/2009/09/redhat-cluster-suit-with-gfs-2/</link>
		<comments>http://www.realqi.cn/2009/09/redhat-cluster-suit-with-gfs-2/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 07:32:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[技术实践]]></category>
		<category><![CDATA[系统管理]]></category>
		<category><![CDATA[gfs]]></category>
		<category><![CDATA[rhcs]]></category>

		<guid isPermaLink="false">http://realqi.cn/2009/09/redhat-cluster-suit-with-gfs-2/</guid>
		<description><![CDATA[          RHCS（REDHAT CLUSTER SUIT）是一款能够提供高性能、高可靠性、负载均衡、高可用性的集群工具集,一个集群通常有两个或两个以上的计算机（称为“节点”或”成员“）共同执行一个任务。其中有四种常见集群：

本篇主要介绍一些概念.不讲操作]]></description>
			<content:encoded><![CDATA[<li>redhat cluster suit 介绍</li>
<li>redhat cluster suit 组件</li>
<h2>一、redhat cluster suit 介绍</h2>
<p>          RHCS（REDHAT CLUSTER SUIT）是一款能够提供高性能、高可靠性、负载均衡、高可用性的集群工具集,一个集群通常有两个或两个以上的计算机（称为“节点”或”成员“）共同执行一个任务。其中有四种常见集群：</p>
<ul>
<li><strong>存储集群<br />
</strong></li>
</ul>
<p>           存储集群在一个集群中为服务提供一个一致的文件系统映像，允许服务同时去读写一个单一的共享文件系统。存储集群通过将数据放到一个共享文件系统中从而消除了在应用程序间拷贝数据的麻烦，并提供一个单一的备份和故障恢复点。Red Hat Cluster Suite通过Red Hat GFS提供一个存储集群。</p>
<ul>
<li><strong>高可用性集群 </strong></li>
</ul>
<p>         高可用性集群通过消除单一故障点和节点故障转移功能（当一个集群节点失败后将服务转移到其他节点上）来提供高可用性。节点故障转移功能对客户端是透明的，当节点失败后客户端并不会看到节点之间的服务转移。Red Hat Cluster Suite通过高可用性服务管理组件来提供一个高可用性集群。</p>
<ul>
<li><strong>负载均衡 </strong></li>
</ul>
<p>          负载均衡集群将服务请求调度到集群中的多个节点上。负载均衡是一个低成本、高可用性的集群，因为你可以根据负载情  况灵活的添加和删除节点。在负载均衡集群中当一个节点失败后，调度器会发现这个失败并停止向此节点发送请求。节点的失败对于客户端是透明的。Red Hat Cluster Suite 通过LVS（Linux Virtual Server）来提供负载均衡集群。</p>
<ul>
<li><strong>高性能集群</strong></li>
</ul>
<p>           高性能集群在节点上执行并行计算。高性能集群允许应用程序并行计算从而提高应用程序性能。</p>
<h2>二、RHCS主要组件：</h2>
<ul>
<li><strong>集群架构</strong></li>
</ul>
<p>              提供一个基本功能使节点作为集群工作在一起：配置文件管理，成员关系管理，锁管理和栅设备。</p>
<ul>
<li><strong>高可用性服务管理</strong></li>
</ul>
<p>              提供节点失败转移服务，当一个节点失败后将服务转移到另一个节点上。</p>
<ul>
<li><strong>集群管理工具</strong></li>
</ul>
<p>             通过配置和管理工具来配置和管理Red Hat集群。</p>
<ul>
<li><strong>Linux Virtual Server (LVS)</strong></li>
</ul>
<p>             LVS提供一个基于IP的负载均衡功能，通过LVS可以将客户请求均匀的分配到集群节点上。</p>
<h2>三、其它Red Hat集群组件：</h2>
<ul>
<li><strong>Red Hat GFS (Global File System)</strong></li>
</ul>
<p>            GFS为Red Hat Cluster Suite提供一个集群文件系统，CFS允许多个节点在块级别上共享存储。</p>
<ul>
<li><strong>Cluster Logical Volume Manager (CLVM)</strong></li>
</ul>
<p>            提供逻辑卷管理集群存储。</p>
<ul>
<li><strong>Global Network Block Device (GNBD)</strong></li>
</ul>
<p>           GFS的一个补充组件用于将存储在块级别导出到以太网上。更参请参考：<a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/RHEL510/Cluster_Suite_Overview/s1-rhcs-intro-CSO.html#fig-intro-cluster-CSO">http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/RHEL510/Cluster_Suite_Overview/s1-rhcs-intro-CSO.html#fig-intro-cluster-CSO</a></p>
<h2>四、集群管理器</h2>
<ul>
<li><strong>布式集群管理器(CMAN/DLM)</strong></li>
</ul>
<p>         CMAN是一个分布式集群管理器（DLM），它运行在每一个集群节点上，CMAN通过监视集群节点提供一个法定节点数（quorum），当集群中有多于一半的节点处于活跃状态时,此时符合法定节点数，集群继续可用，当只有有一半或少于一半的节点处于活跃状态是则已达到不到法定节点数，此时整个集群变得不可用。CMAN通过监控集群中节点来确定各节点的成员关系，当集群中的成员关系发生改变，CMAN会通架构中其它组件来进行相应的调整。</p>
<p align="left">                                          CMAN/DLM Overview</p>
<p align="left"><img class="aligncenter" src="http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/RHEL510/Cluster_Suite_Overview/images/DLM_Overview.png" alt="" width="620" height="320" /></p>
<p>              图片引用：<a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/RHEL510/Cluster_Suite_Overview/images/DLM_Overview.png">http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/RHEL510/Cluster_Suite_Overview/images/DLM_Overview.png</a></p>
<ul>
<li><strong>DLM锁管理</strong></li>
</ul>
<p>        分布式锁管理器，它运行在所有的集群节点上，锁管理是一个公共的基础结构，为集群提供一种共享集群资源的管理机制，GFS通过锁管理器使用锁机制来同步访问文件系统元数据，CLVM通过锁管理器来同步更新数据到LVM卷和卷组。详细参考：<a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/RHEL510/Cluster_Suite_Overview/s2-clumembership-overview-CSO.html">http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/RHEL510/Cluster_Suite_Overview/s2-clumembership-overview-CSO.html</a></p>
<ul>
<li><strong>数据的完整保证</strong></li>
</ul>
<p>         RHCS 通过 Fence设备从共享存储切断失效节点的I/O以保证数据的完整性。当CMAN确定一个节点失败后，它在集群结构中通告这个失败的节点（组播），fenced进程会将失败的节点隔离，以保证失败节点不破坏共享数据。Fenced运行在每个节点上更多详细的介绍：<a href="http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/RHEL510/Cluster_Suite_Overview/s2-fencing-overview-CSO.html">http://www.redhat.com/docs/manuals/enterprise/RHEL-5-manual/en-US/RHEL510/Cluster_Suite_Overview/s2-fencing-overview-CSO.html</a></p>
<p>  fence 设备：<a href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Configuration_Example_-_Fence_Devices/index.html">http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/5/html/Configuration_Example_-_Fence_Devices/index.html</a></p>
<ul>
<li><strong>Rgmanger/gulm()</strong></li>
<p> </ul>
<h2>五、REDHAT集群配置及工具</h2>
<p>          集群配置系统（CCS）管理集群配置，并为其他集群结构提供配置信息。CCS运行在每个节点上并确保集群配置文件在每个节点上是最新的。举例，假如管理员在节点A上更新配置文件，CCS负责传播更新到其他节点上。</p>
<ul>
<li><strong>集群配置文件</strong></li>
</ul>
<p>           <strong>集群配置文件</strong>：(/etc/cluster/cluster.conf) 是一个XML文件，用来描述下面的集群特性：<br />
<strong>                集群名称:</strong>列出集群名称、集群配置文件版本和一个隔离时间，隔离相应时间当一个新节点加入或从集群中隔离时。<br />
       <strong>               集群:</strong>列出集群中的每一个节点，指定节点名称，节点ID，法定投票数，和栅模式。<br />
 <strong>             fence设备:</strong>定义fence设备。<br />
<strong>                管理资源:</strong>定义创建集群服务需要的资源。管理资源包括失败转移域，资源（如IP）和服务。<br />
<span style="color: #ff0000;">  更多详细：man cluster.conf</span></p>
<ul>
<li><strong>配置工具价绍</strong></li>
</ul>
<p><strong>             1、Cronga</strong><br />
                  是一个集中化的的集群管理器，主要用于管理集群中的节点和集群中的存储。主要特性如下：<br />
                           1．  通过一个WEB 界面管理集群和存住储<br />
                           2．  自动化部署集群节点和存储<br />
                           3．  可以很容易的整合进已存在的集群<br />
                           4．  合的的验证机制<br />
                           5．  集中化的集群节点状态及日志管理<br />
                           6．  细致化的权限控制<br />
<span style="color: #ff0000;">                         更多详细了解请参考：</span><a href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4.8/html/Cluster_Administration/s1-conga-overview-CA.html">http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4.8/html/Cluster_Administration/s1-conga-overview-CA.html</a></p>
<p><span style="color: #ff0000;"><strong><span style="color: #000000;">     </span></strong></span><br />
<span style="color: #ff0000;"><strong><span style="color: #000000;">      </span></strong></span><strong>       2、</strong><span style="color: #ff0000;"><strong><span style="color: #000000;">system-config-cluster</span></strong></span><span style="color: #ff0000;"><strong><br />
                        </strong></span>参考:<a href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4.8/html/Cluster_Administration/s1-clumgmttools-overview-CA.html">http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4.8/html/Cluster_Administration/s1-clumgmttools-overview-CA.html</a></p>
<p><span style="color: #ff0000;"><strong><span style="color: #000000;">      </span></strong></span><strong>       3、</strong><strong>命令行管理</strong></p>
<ul>
<li><strong>配置工具的使用</strong></li>
</ul>
<p>             在进行配置之前请阅读：<a href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4.8/html/Cluster_Administration/ch-before-config-CA.html%20">Before Configuring a Red Hat Cluster</a></p>
<p><strong>                        1、Cronga<br />
</strong>                              安装及启动：<a href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4.8/html/Cluster_Administration/s1-start-luci-ricci-conga-CA.html">http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4.8/html/Cluster_Administration/s1-start-luci-ricci-conga-CA.html</a></p>
<p>                             全局配置参数：<a href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4.8/html/Cluster_Administration/s1-general-prop-conga-CA.html">http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4.8/html/Cluster_Administration/s1-general-prop-conga-CA.html</a></p>
<p><strong>                      2、命令行配置工具</strong><br />
                             参考以下连接</p>
<p align="left">                                     <a title="6.1. Starting and Stopping the Cluster Software" href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4.8/html/Cluster_Administration/ch-mgmt-scc-CA.html#s1-admin-start-CA">Starting and Stopping the Cluster Software</a></p>
<p align="left">                                     <a title="6.2. Managing High-Availability Services" href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4.8/html/Cluster_Administration/s1-admin-service-CA.html">Managing High-Availability Services</a></p>
<p align="left">                                     <a title="6.4. Backing Up and Restoring the Cluster Database" href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4.8/html/Cluster_Administration/s1-admin-backup-CA.html">Backing Up and Restoring the Cluster Database</a></p>
<p align="left">                                     <a title="6.5. Disabling the Cluster Software" href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4.8/html/Cluster_Administration/s1-admin-disable-CA.html">Disabling the Cluster Software</a></p>
<p align="left">                                     <a title="6.6. Diagnosing and Correcting Problems in a Cluster" href="http://www.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/4.8/html/Cluster_Administration/s1-admin-problems-CA.html">Diagnosing and Correcting Problems in a Cluster</a></p>
<h2> 六、GFS 简要说明</h2>
<p>           GFS是GOOGLE实现的是一个可扩展的分布式文件系统，用于大型的、分布式的、对大量数据进行访问的应用。它运行于廉价的普通硬件上，但可以提供容错功能。它可以给大量的用户提供总体性能较高的服务。更深入了解，请参考:<a href="http://www.codechina.org/doc/google/gfs-paper/introduction.html">http://www.codechina.org/doc/google/gfs-paper/introduction.html</a></p>
<p>            Redhat 的GFS 可以根据对性能或是，可扩展性，或者以经济性多个原则进行不同方案的部署，参考：<a href="http://www.redhat.com/docs/manuals/csgfs/admin-guide/s1-ov-perform.html#S2-OV-SUPERIOR">http://www.redhat.com/docs/manuals/csgfs/admin-guide/s1-ov-perform.html#S2-OV-SUPERIOR</a></p>
<p>         GFS（Global File System）自己以本地文件系统的形式出现。多个Linux机器通过网络共享存储设备，每一台机器都可以将网络共享磁盘看作是本地磁盘，如果某台机器对某个文件执行了些操作，则后来访问此文件的机器就会读到写以后的结果。</p>
<p align="left">         GFS 主要组件，集群卷管理，锁管理，集群管理，围栏和恢复，集群配置管理</p>
<div class="zemanta-pixie"><img class="zemanta-pixie-img" src="http://img.zemanta.com/pixy.gif?x-id=ab0eb095-7c05-87ce-852d-b9a8c2cb65db" alt="" /></div>
<h3>相关文章</h3>
<ul class="related_post">
<li>2009年08月31日 -- <a href="http://www.realqi.cn/2009/08/centos5-install-gfs/" title="centos5 install gfs">centos5 install gfs (2)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.realqi.cn/2009/09/redhat-cluster-suit-with-gfs-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

