⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 1677.html

📁 著名的linux英雄站点的文档打包
💻 HTML
📖 第 1 页 / 共 3 页
字号:
4.建立cluster server <br>
(1)安装基本的系统,主要是包括硬件的驱动 <br>
(2)确认网络,包括交换机的部分,网卡的使用,用来进行心跳监测 <br>
(3)cluster的安装步骤: <br>
 A.在两台机器上安装Redhat Advance Server 2.1,记得在安装的时候要选择kernel source和cluster system 两个部分 <br>
 B.重启编辑一下/etc/hosts,将所有加入到集群中的机器写到里面,包括主机和IP地址的对应关系。 <br>
 C.确认每个系统都已经认出了所需要的硬件环境,如网卡等 <br>
 D.对于内核的一些要求: <br>
  IP ALIAS的支持 (CONFIG_IP_ALIAS) <br>
 E.由于有一些cluster可能会用的storage(盘柜)一类的设备,同时系统在启动的时候,内核也会对cluster在时间有一定的限制,所以这个时候建议更改lilo.conf将里面: <br>
 TIMEOUT=30 <br>
(4)创建裸设备: <br>
 /dev/raw/下的设备文件,配置文件则去更改/etc/sysconfig/rawdevices这个文件,在集群中首先需要一个Quorum Partition。这些分区和一些数据库的应用必须要求有裸设备,因为他们需要满足自己的buffer cache,而不是系统的,所以他们不包括文件系统。 <br>
一个/etc/sysconfig/devices的样式文件: <br>
 /dev/raw/raw1 /dev/sdb1 <br>
/dev/raw/raw2 /dev/sdb2 <br>
这个可以根据自己的需要来进行相应的更改,因为对应的设备可能会有所不同,这事前必要要用fdisk来为Quorum Partition来提定两个分区,不用太大,100M就足够用了。 <br>
 在机器查看裸设备可以用raw –aq的命令,更多的信息可以用man raw。 <br>
(5)确认机器上是否安装clumanager-xxx.rpm(rpm –qa |grep clumanager)。如果没有安装的话,可以找到这个文件后,rpm –ivh clumanager-xxx.rpm <br>
(6)确认裸设备建立无误后,那么如何来测试Quorum Partition是否正常的工作,可以用如下的命令来进行测试: <br>
  cludiskutil –p,列出的信息里,不同服务器上相同的裸设备,如(/dev/raw/raw1)的Magic和Version的值应该是一样的。这一点还请大家多多注意。 <br>
然后再来运行cluconfig进行cluster server的配置,会问一些相关的信息,正确的回答给他,会自动的更新cluster的一个信息文件,以备为cluster的运行使用。 <br>
  这其中会问到一个关于IP adderss for cluster alias的地方,就是指这个集群建立起来后,客户用来访问的一个总的地址。 <br>
(7)用cludiskutil –t来检查Quorum Partition,假如用了Power switch的话,可以用clustonith来进行检查。 <br>
(最后就可以用命令来启动cluster了,命令方式如下:services cluster start。当cluster运行的时候,系统会有几个进程起动,下面将这几个进程都是作什么,给大家说一些: <br>
  cluquorumd Quorum deamon(裸设备的守护进程) <br>
  clusvcmgrd Service manager daemon(管理服务的守护) <br>
  clupowerd Power daemon (电源管理的守护) <br>
cluhbd Heartbeat daemon (心跳的守护) <br>
clumibd Administrative system monitoring daemon (监测守护) <br>
<br>
5.Cluster的管理: <br>
  可能这个东东相对来说要比较简单一些,因为目前在Redhat Advance Server 2.1上的已经用clumanager这样的管理包,将cluster的管理功能利用TUI的方式来管理的很好,下面主要给大家介绍一下相关的命令的使用,希望能对大家有所帮助。 <br>
  一个管理的命令就是cluadmin,这个命令可以提供如下的功能: <br>
 A.增加,删除和修改cluster里的服务 <br>
 B.启动和停止cluster <br>
 C.显示cluster和里面所跑服务的状态 <br>
 D.修改cluster日志级别 <br>
 E.备份和恢复cluster的数据 <br>
  当cluadmin命令执行后,如果你对网络有一定了解的话,他的接口就像是cisco设备的字符管理界面一样的,主要是来使用一些命令来控制,这里你可以用help来列出所有的可用命令和一些简单的帮助信息,对你的使用可能会比较有帮助的,这个功能就在这里不给大家详细的讲解了,如果有什么问题,最好还是在这里直接去help来看一下他的帮助信息。 <br>
<br>
---------------------------------------------------------------------------------------------------------------------- <br>
在此作一个小结,以上的工作如果顺利作完的话,那就说明你的cluster已经正常的运转起来报,但是我们的最后的目的是什么,不是只让cluster跑起来,而是要在这个cluster的基本来跑我们的应用服务,让cluster来对我们所应用的服务起到一个很好的保护作用。 <br>
---------------------------------------------------------------------------------------------------------------------- <br>
<br>
6.Cluster里服务的建立: <br>
(1)所必要的几个条件: <br>
 A.所保护服务必须要有一个可能控制启动和停止的脚本,安装了clumanage-xxx.rpm后,这个包里面自带了一些常用服务的控制脚本,这个很方便的,省着自己去动手写这样的一个东东,具体的位置放在/usr/share/cluster/doc/services/examples <br>
 B.确认所要运行的服务在每一台cluster server的机器上都能正常的运行 <br>
(2)务份一下/etc/cluster.conf,以备如果出错后,可以恢复到原始的状态,以免以前的工作都浪费了 <br>
(3)运行如下的命令: <br>
 /sbin/cluadmin <br>
cluadmin&gt;service add这样就可以来增加服务了,这个过程中同样会问你许多有关此项服务的信息,所以需要你对这个服务有一些了解,如他的启动停止控制脚本在哪?所必要的配置文件在哪里等这样的问题。不是很难的,如果不能确认,可以先到服务器看去转一转,了解一下所要的信息。 <br>
  对于cluster里面服务的一些管理,以及一些系统状态的监测,可以直接用cluadmin里面提供的一些命令去跟踪,这些就不详细地讲解了,有空的大家可以去看命令的帮助信息,也可以去www.redhat.com网站去查看官方的doc。 <br>
<br>
7.Cluster数据的备份与恢复 <br>
/sbin/cluadmin <br>
cluadmin&gt;cluster backup [filename] 这里的filename可以不指定 <br>
cluadmin&gt;cluster restore [filename] 同上 <br>
然后要将cluster重新启动一下,才会生效 <br>
<br>
<br>
大概就写这些东东,希望对各位有需要的网友带来一些帮助的说,结合最近所作的一个项目,同时翻译了redhat官方doc里的内容形成了此篇文章,今天早上终于在被窝里抱着笔记本把这个东东写完了!希望能给大家带来一些启示。 <br>
<br>
<br>
               Wind521 <br>
           2003-5-18 早10:08 <br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
参考资料: <br>
  redhat.com上官方资料中有关Advance Server 2.1 Cluster的内容,作了不少的翻译 <br>
一些有用的网站: <br>
www.linux-ha.org/stonith<br>
<br>
</FONT><br>
                                      </TD>
                                    </TR>
                                <TR>
                                <TD colSpan=2><FONT 
                                class=middlefont></FONT><BR>
                                        <FONT 
                                class=normalfont>全文结束</FONT> </TD>
                                    </TR>
                                <TR>
                                <TD background="images/dot.gif" tppabs="http://www.linuxhero.com/docs/images/dot.gif" colSpan=2 
                                height=10></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV></TD>
                        <TD vAlign=top width="20%" 
                      background="images/line.gif" tppabs="http://www.linuxhero.com/docs/images/line.gif" rowSpan=2> 
                          <DIV align=center> 
                            <table class=tableoutline cellspacing=1 cellpadding=4 
                        width="100%" align=center border=0>
                              <tr class=firstalt> 
                                <td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colspan=2 height=21>
                                <font class=normalfont><b>所有分类</b></font></td>
                              </tr>
<tr class=secondalt> <td noWrap width=27%> <font class=normalfont>1:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type1.html" tppabs="http://www.linuxhero.com/docs/type1.html">非技术类</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>2:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type2.html" tppabs="http://www.linuxhero.com/docs/type2.html">基础知识</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>3:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type3.html" tppabs="http://www.linuxhero.com/docs/type3.html">指令大全</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>4:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type4.html" tppabs="http://www.linuxhero.com/docs/type4.html">shell</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>5:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type5.html" tppabs="http://www.linuxhero.com/docs/type5.html">安装启动</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>6:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type6.html" tppabs="http://www.linuxhero.com/docs/type6.html">xwindow</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>7:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type7.html" tppabs="http://www.linuxhero.com/docs/type7.html">kde</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>8:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type8.html" tppabs="http://www.linuxhero.com/docs/type8.html">gnome</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>9:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type9.html" tppabs="http://www.linuxhero.com/docs/type9.html">输入法类</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>10:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type10.html" tppabs="http://www.linuxhero.com/docs/type10.html">美化汉化</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>11:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type11.html" tppabs="http://www.linuxhero.com/docs/type11.html">网络配置</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>12:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type12.html" tppabs="http://www.linuxhero.com/docs/type12.html">存储备份</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>13:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type13.html" tppabs="http://www.linuxhero.com/docs/type13.html">杂项工具</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>14:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type14.html" tppabs="http://www.linuxhero.com/docs/type14.html">编程技术</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>15:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type15.html" tppabs="http://www.linuxhero.com/docs/type15.html">网络安全</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>16:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type16.html" tppabs="http://www.linuxhero.com/docs/type16.html">内核技术</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>17:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type17.html" tppabs="http://www.linuxhero.com/docs/type17.html">速度优化</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>18:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type18.html" tppabs="http://www.linuxhero.com/docs/type18.html">apache</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>19:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type19.html" tppabs="http://www.linuxhero.com/docs/type19.html">email</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>20:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type20.html" tppabs="http://www.linuxhero.com/docs/type20.html">ftp服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>21:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type21.html" tppabs="http://www.linuxhero.com/docs/type21.html">cvs服务</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>22:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type22.html" tppabs="http://www.linuxhero.com/docs/type22.html">代理服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>23:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type23.html" tppabs="http://www.linuxhero.com/docs/type23.html">samba</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>24:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type24.html" tppabs="http://www.linuxhero.com/docs/type24.html">域名服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>25:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type25.html" tppabs="http://www.linuxhero.com/docs/type25.html">网络过滤</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>26:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type26.html" tppabs="http://www.linuxhero.com/docs/type26.html">其他服务</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>27:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type27.html" tppabs="http://www.linuxhero.com/docs/type27.html">nfs</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>28:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type28.html" tppabs="http://www.linuxhero.com/docs/type28.html">oracle</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>29:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type29.html" tppabs="http://www.linuxhero.com/docs/type29.html">dhcp</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>30:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type30.html" tppabs="http://www.linuxhero.com/docs/type30.html">mysql</a></font></td>    </tr>  </table></td></tr><tr class=secondalt> <td noWrap width=27%> <font class=normalfont>31:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type31.html" tppabs="http://www.linuxhero.com/docs/type31.html">php</a></font></td>    </tr>  </table></td></tr><tr class=firstalt> <td noWrap width=27%> <font class=normalfont>32:</font> </td><td noWrap width=73%>   <table width=100% border=0>    <tr>       <td><font class=normalfont><a href="type32.html" tppabs="http://www.linuxhero.com/docs/type32.html">ldap</a></font></td>    </tr>  </table></td></tr>                            </table>
                          </DIV></TD></TR>
                    <TR vAlign=top>
                        <TD width="80%"> 
                          <DIV align=center><BR>
                          </DIV>
                        </TD></TR></TBODY></TABLE></TD></TR>
                </TABLE></TD></TR>
          </TABLE>
      <TABLE cellSpacing=0 cellPadding=4 width="100%" bgColor=#eeeeee 
        border=0><TBODY>
        <TR>
          <TD width="50%">
              <P><FONT class=middlefont>版权所有 &copy; 2004 <A 
            href="mailto:bjchenxu@sina.com">linux知识宝库</A><BR>
                违者必究. </FONT></P>
            </TD>
          <TD width="50%">
              <DIV align=right><FONT class=middlefont>Powered by: <A 
            href="mailto:bjchenxu@sina.com">Linux知识宝库</A> Version 0.9.0 </FONT></DIV>
            </TD></TR></TBODY></TABLE>
      <CENTER></CENTER></TD></TR>
    </TABLE></CENTER></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -