<?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; gfs</title>
	<atom:link href="http://www.realqi.cn/tag/gfs/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>
		<item>
		<title>centos5 install gfs</title>
		<link>http://www.realqi.cn/2009/08/centos5-install-gfs/</link>
		<comments>http://www.realqi.cn/2009/08/centos5-install-gfs/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 07:57:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[系统管理]]></category>
		<category><![CDATA[经验技巧]]></category>
		<category><![CDATA[centos5]]></category>
		<category><![CDATA[gfs]]></category>

		<guid isPermaLink="false">http://realqi.cn/?p=152</guid>
		<description><![CDATA[环境说明：
        centos5.2+iscsi+gfs
1、安装centos5.2：
          最小化安装系统三台
2、初始化三台系统：
          1、关闭不必要的服务
turnseroff( )
        {
        for ser in `chkconfig --list   &#124;grep 3:on &#124;awk '{print $1}'`
        do
                echo $ser
                case $ser in
                  crond &#124; irqbalance &#124; microcode_ctl &#124; network &#124; random &#124; sendmail \
                        &#124; sshd &#124; syslog &#124; messagebus &#124; haldaemon &#124; readahead_early \
                        &#124; apmd &#124; readahead_later &#124; readahead &#124; iptables &#124; lvm2-monitor  <a href="http://www.realqi.cn/2009/08/centos5-install-gfs/" class="more-link">更多 &#62;</a>]]></description>
			<content:encoded><![CDATA[<h3>环境说明：</h3>
<p>        centos5.2+iscsi+gfs</p>
<h3>1、安装centos5.2：</h3>
<p>          最小化安装系统三台</p>
<h3>2、初始化三台系统：</h3>
<p>    <strong><span style="color: #ff0000;">      1、关闭不必要的服务</span></strong></p>
<blockquote><p>turnseroff( )<br />
        {<br />
        for ser in `chkconfig --list   |grep 3:on |awk '{print $1}'`<br />
        do<br />
                echo $ser<br />
                case $ser in<br />
                  crond | irqbalance | microcode_ctl | network | random | sendmail \<br />
                        | sshd | syslog | messagebus | haldaemon | readahead_early \<br />
                        | apmd | readahead_later | readahead | iptables | lvm2-monitor | xinetd | auditd | cpuspeed )<br />
                echo "Base services, Skip"<br />
             ;;<br />
             *)<br />
                 echo "change $ser to off"<br />
                 chkconfig --level 3 $ser off<br />
                 service $ser stop<br />
 <br />
             ;;<br />
 <br />
                esac<br />
        done<br />
}<br />
turnseroff</p></blockquote>
<p><strong><span style="color: #ff0000;">          2、修改yum 源</span></strong></p>
<blockquote><p>#change the yum source<br />
\cp -f /etc/yum.repos.d/CentOS-Base.repo ~/<br />
cat &lt;/etc/yum.repos.d/CentOS-Base.repo<br />
[lan]<br />
name=LAN<br />
baseurl=ftp://10.20.2.11/centos52<br />
gpgcheck=1<br />
gpgkey=http://mirror.centos.org/centos/RPM-GPG-KEY-CentOS-5</p>
<p>EOF</p></blockquote>
<p>     <strong><span style="color: #ff0000;">     3、添加vi 语法高亮</span></strong></p>
<blockquote><p>aliasvi ()<br />
{<br />
        sed -i "8 s/^/alias vi='vim'/" /root/.bashrc</p>
<p>        source /root/.bashrc<br />
}<br />
aliasvi</p></blockquote>
<p><strong><span style="color: #ff0000;">          4、关闭防火墙</span></strong></p>
<blockquote><p>service iptables stop<br />
chkconfig iptables off</p>
<p> </p></blockquote>
<h3>3、安装需要的软件包</h3>
<blockquote><p>  yum install -y cman gfs-utils kmod-gfs kmod-dlm  cluster-snmp iscsi-initiator-utils lvm2-cluster  rgmanager</p></blockquote>
<p>如查有报错，直接导入KEY 参考：</p>
<h3>4、在每个节点上持载iscsi共享存储</h3>
<p>有关iscis 相关请参考：</p>
<blockquote><p>service iscsi restart<br />
iscsiadm --mode discovery --type sendtargets --portal 10.20.15.249<br />
service iscsi restart</p></blockquote>
<p>fdisk -l 会多一个20.3GB 的sdb</p>
<h3>5、在其中一个节点上上创建一个名为gfscg的 LVM 卷组</h3>
<blockquote><p>pvcreate -ff  /dev/sdb<br />
vgcreate  gfsvg /dev/sdb</p></blockquote>
<p>列出VG大小：</p>
<blockquote><p>vgdisplay  gfsvg |grep "Total PE "</p>
<p><span style="color: #ff0000;">  Total PE              4847</span></p></blockquote>
<p>创建lv</p>
<blockquote><p>lvcreate -l 4847  -n gfs gfsvg</p></blockquote>
<h3>5、在其中一个节点上上创建一个GFS卷</h3>
<p>        1、确认cluster name</p>
<blockquote><p>    cman_tool status |grep "Cluster Name"<br />
<span style="color: #ff0000;">   Cluster Name: gfs_cluster</span></p></blockquote>
<p><span style="color: #000000;">       2、创建GFS 文件系统</span></p>
<blockquote><p>gfs_mkfs -j 5 -p lock_dlm -t gfs_cluster:gfs /dev/gfsvg/gfs</p></blockquote>
<p>相关参数请参考：</p>
<p>6、配置节点做集群</p>
<p>    1、分别在三台机器上添加主机名到ip的映设</p>
<blockquote><p>echo "10.20.15.151 clustera"  &gt;&gt;/etc/hosts<br />
echo "10.20.15.152 clusterb"  &gt;&gt;/etc/hosts<br />
echo "10.20.15.153 clusterc"  &gt;&gt;/etc/hosts</p></blockquote>
<p>  2、创建集群配置文件,并分别复制到每个节点上</p>
<blockquote><p><strong> cat &lt;&lt;EOF  &gt;/etc/cluster/cluster.conf</strong><br />
&lt;?xml version="1.0"?&gt;<br />
&lt;cluster alias="gfs_cluster" config_version="2" name="gfs_cluster"&gt;<br />
        &lt;fence_daemon post_fail_delay="0" post_join_delay="3"/&gt;<br />
        &lt;clusternodes&gt;<br />
                &lt;clusternode name="clustera" nodeid="1" votes="1"&gt;<br />
                        &lt;fence&gt;<br />
                                &lt;method name="1"/&gt;<br />
                        &lt;/fence&gt;<br />
                &lt;/clusternode&gt;<br />
                &lt;clusternode name="clusterb" nodeid="2" votes="1"&gt;<br />
                        &lt;fence&gt;<br />
                                &lt;method name="1"/&gt;<br />
                        &lt;/fence&gt;<br />
                &lt;/clusternode&gt;<br />
                &lt;clusternode name="clusterc" nodeid="3" votes="1"&gt;<br />
                        &lt;fence/&gt;<br />
                &lt;/clusternode&gt;<br />
        &lt;/clusternodes&gt;<br />
        &lt;cman/&gt;<br />
        &lt;fencedevices&gt;<br />
                &lt;fencedevice agent="fence_manual" name="manual"/&gt;<br />
        &lt;/fencedevices&gt;<br />
        &lt;rm&gt;<br />
                &lt;failoverdomains&gt;<br />
                        &lt;failoverdomain name="failover" ordered="0" restricted="0"/&gt;<br />
                &lt;/failoverdomains&gt;<br />
                &lt;resources&gt;<br />
                        &lt;clusterfs device="/dev/gfsvg/gfs" force_unmount="0" fsid="32101" fstype="gfs" mountpoint="/opt/pgfsql" name="gfsmount" options="-t gfs"/&gt;<br />
                &lt;/resources&gt;<br />
        &lt;/rm&gt;<br />
&lt;/cluster&gt;<br />
 <br />
<strong>EOF</strong></p></blockquote>
<h3>7、在每一个节点上启动相关服务</h3>
<p>以下命令在每个节点上执行</p>
<blockquote><p> for   ser in iscis gfs gfs2 cman clvmd<br />
        do<br />
             chkconfig $ser on<br />
 done</p></blockquote>
<blockquote><p>for ser in  gfs gfs2 cman clvmd<br />
do<br />
service $ser restat<br />
done</p></blockquote>
<h3>8、确认集群各节点的状态</h3>
<p>    1、clustat 如下图:</p>
<blockquote><p><span style="color: #ff0000;"><span style="color: #000000;">[root@pgsqla scripts]# clustat<br />
Cluster Status for gfs_cluster @ Wed Sep  2 23:13:20 2009<br />
Member Status: Quorate</span><br />
 <br />
 Member Name                                                     ID   Status<br />
 ------ ----                                                     ---- ------<br />
 clustera                                                            1 Online, Local<br />
 clusterb                                                            2 Online<br />
 clusterc                                                            3 Online<br />
 <br />
<span style="color: #000000;">[root@pgsqla scripts]#</span></span></p></blockquote>
<p><span style="color: #ff0000;"><span style="color: #000000;"><strong>Online 说明节点正常,反之为<span style="color: #ff0000;">offlice  ,<span style="color: #000000;">可以通过cat /var/log/messages 得到相关信息</span></span></strong></span></span></p>
<h3>9、命令行集群管理工具</h3>
<p><strong> 1、cman_tool</strong></p>
<blockquote><p>Usage:<br />
 <br />
cman_tool &lt;join|leave|kill|expected|votes|version|wait|status|nodes|services|debug&gt; [options]</p></blockquote>
<p><strong> 2、ccs_tool</strong></p>
<blockquote><p>Usage::<br />
  ccs_tool [options] &lt;command&gt;<br />
 <br />
Options:<br />
  -h                  Print this usage and exit.<br />
  -V                  Print version information and exit.<br />
 <br />
Commands:<br />
  help                Print this usage and exit.<br />
  update &lt;xml file&gt;   Tells ccsd to upgrade to new config file.<br />
  upgrade &lt;location&gt;  Upgrade old CCS format to new xml format.<br />
  addnode &lt;node&gt;      Add a node<br />
  delnode &lt;node&gt;      Delete a node<br />
  lsnode              List nodes<br />
  lsfence             List fence devices<br />
  addfence &lt;fencedev&gt; Add a new fence device<br />
  delfence &lt;fencedev&gt; Delete a fence device<br />
  create              Create a skeleton config file<br />
  addnodeids          Assign node ID numbers to all nodes<br />
 </p></blockquote>
<h3>相关文章</h3>
<ul class="related_post">
<li>2009年09月21日 -- <a href="http://www.realqi.cn/2009/09/redhat-cluster-suit-with-gfs-2/" title="REDHAT CLUSTER SUIT WITH GFS">REDHAT CLUSTER SUIT WITH GFS (0)</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.realqi.cn/2009/08/centos5-install-gfs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

