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

📄 59.html

📁 著名的linux英雄站点的文档打包
💻 HTML
📖 第 1 页 / 共 3 页
字号:
            <TD colSpan=3>
              <form action="http://www.linuxhero.com/docs/search.html" method=get>
                <table 
                        style="BORDER-RIGHT: #c4c4c4 1px solid; BORDER-TOP: #c4c4c4 1px solid; BORDER-LEFT: #c4c4c4 1px solid; BORDER-BOTTOM: #c4c4c4 1px solid" 
                        cellspacing=0 cellpadding=3 width="95%" border=0 align="center">
                  <tbody> 
                  <tr> 
                    <td noWrap background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif"> 
                      <div align=center><font class=normalfont>搜索文章: 
                        <input type=hidden value=result name=action2>
                          <input type=radio checked value=title name=type>标题 
                          <input type=radio value=content name=type>内容 
                          <input type=image src="images/button_go.gif" tppabs="http://www.linuxhero.com/docs/images/button_go.gif" border=0 name=image2>
                        </font></div>
                    </td>
                  </tr>
                  <tr> 
                    <td noWrap> 
                      <div align="center"> 
                        <input maxlength=100 size=30 name=keyword2>
                      </div>
                    </td>
                  </tr></tbody> 
                </table>
              </form>
            </TD>
            <TD rowSpan=2><IMG src="images/header_r1_c7.gif" tppabs="http://www.linuxhero.com/docs/images/header_r1_c7.gif" width=26 border=0 name=header_r1_c7></TD>
          <TD><IMG height=83 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 border=0></TD></TR>
        <TR>
          <TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif"><IMG height=22 
            src="images/header_r2_c1.gif" tppabs="http://www.linuxhero.com/docs/images/header_r2_c1.gif" width=296 border=0 
            name=header_r2_c1></TD>
          <TD background="images/bgline.gif" tppabs="http://www.linuxhero.com/docs/images/bgline.gif" colSpan=5>
              <DIV align=right><FONT class=normalfont>当前位置: 
              <A href="index.html" tppabs="http://www.linuxhero.com/docs/index.html">本站首页</A>
              <font color="#FF6699">&gt;&gt;</font>
<A href="type2.html" tppabs="http://www.linuxhero.com/docs/type2.html">基础知识</A>                 | <A href="copyright.html" tppabs="http://www.linuxhero.com/docs/copyright.html">版权说明</A></font></DIV>
            </TD>
          <TD><IMG height=22 src="images/spacer.gif" tppabs="http://www.linuxhero.com/docs/images/spacer.gif" width=1 
        border=0></TD></TR></TBODY></TABLE>
      <TABLE cellSpacing=10 cellPadding=0 width="100%" bgColor=#ffffff 
        border=0>
         <TR>
          <TD>
            <TABLE cellSpacing=0 cellPadding=3 width="100%" border=0>
              
              <TR>
                <TD vAlign=top align=middle width="60%">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" 
                  background="images/back.gif" tppabs="http://www.linuxhero.com/docs/images/back.gif" border=0>
                    <TBODY>
                    <TR>
                        <TD vAlign=top width="80%"> 
                          <DIV align=center>
                        <FORM action="search.html" tppabs="http://www.linuxhero.com/docs/search.html" method=get>
                            </FORM>
                        <TABLE cellSpacing=0 cellPadding=0 width="95%" 
                          border=0><TBODY>
                          <TR>
                            <TD background="images/bgi.gif" tppabs="http://www.linuxhero.com/docs/images/bgi.gif" 
                          height=30></TD></TR></TBODY></TABLE>
                        <TABLE cellSpacing=0 cellPadding=3 width="95%" 
                        align=center border=0>
                          <TBODY>
                          <TR>
                            <TD>
                              <TABLE cellSpacing=0 cellPadding=3 width="100%" 
                              border=0>
                                <TBODY>
                                <TR>
                                      <TD vAlign=top> 
<p><FONT class=normalfont><B><font color=blue>LVS的配置详解配置</font></B></FONT><BR><FONT class=smallfont color=#ff9900>2004-04-23 15:18 pm</FONT><BR><FONT class=normalfont>作者:作者<br>来自:Linux知识宝库<br>联系方式:无名<br><br>Red Hat Cluster Manager<br>
安装操作系统,选择组件advance server,安装LVS部分。<br>
两台主机,主机名为haha和hehe<br>
主机haha的本地ip地址为net0:192.168.2.11,net1:192.168.2.14<br>
主机hehe的本地ip地址为net0:192.168.2.12,net1:192.168.2.16<br>
(主机网络连线只能用直连线进行连接,不能用交叉线连接,否则双机不能进行监控)<br>
修改/etc/hosts文件,封掉localhost行的内容,写入本地主机、对方主机和虚拟主机相应的ip地址和主机名:(两台主机配置相同)<br>
192.168.2.11 haha<br>
192.168.2.12 hehe<br>
192.168.2.13 xixi<br>
进入/etc/sysconfig/rawdevices文件,增加两行内容:(两台主机设置相同)<br>
/dev/raw/raw1 /dev/sdb1<br>
/dev/raw/raw2 /dev/sdb2<br>
以上两行是LVS需要的两个裸设备作为系统监控使用,每个裸设备的空间不能小于10M。当然需要fdisk建立两个两个相应的设备。<br>
然后从起主机,进入/sbin下,./cluconfig进行cluster的配置:<br>
Red Hat Cluster Manager Configuration Utility (running on haha) --haha为本地主机名<br>
Enter cluster name [Red Hat Cluster Manager]:xixi --xixi为虚拟主机名<br>
Enter IP address for cluster alias [NONE]:192.168.2.13 --地址为虚拟地址<br>
--------------------------------<br>
Information for Cluster Member 0<br>
--------------------------------<br>
Enter name of cluster member [haha]: --本地成员,回车即可<br>
Enter number of heartbeat channels (minimum = 1) [1]: 2 --两块网卡心跳线(也可串口心跳)<br>
Channel type: net or serial [net]: --第一块网卡做心跳<br>
Enter hostname of the cluster member on heartbeat channel 0 [haha]: --心跳线成员名称<br>
Channel type: net or serial [net]: --第二块网卡做心跳线<br>
Enter hostname of the cluster member on heartbeat channel 1:hehe --另外一个成员名称<br>
Information about Quorum Partitions<br>
Enter Primary Quorum Partition [/dev/raw/raw1]:<br>
Enter Shadow Quorum Partition [/dev/raw/raw2]:<br>
Information About the Power Switch That Power Cycles Member 'haha'<br>
Choose one of the following power switches:<br>
o NONE<br>
o RPS10<br>
o BAYTECH<br>
o APCSERIAL<br>
o APCMASTER<br>
o WTI_NPS<br>
o SW_WATCHDOG<br>
Power switch [NONE]:<br>
--------------------------------<br>
Information for Cluster Member 1<br>
--------------------------------<br>
Enter name of cluster member:hehe --对方成员名<br>
Enter hostname of the cluster member on heartbeat channel 0: hehe<br>
Enter hostname of the cluster member on heartbeat channel 1: haha<br>
Information about Quorum Partitions<br>
Enter Primary Quorum Partition [/dev/raw/raw1]:<br>
Enter Shadow Quorum Partition [/dev/raw/raw2]:<br>
Information About the Power Switch That Power Cycles Member 'hehe'<br>
Choose one of the following power switches:<br>
o NONE<br>
o RPS10<br>
o BAYTECH<br>
o APCSERIAL<br>
o APCMASTER<br>
o WTI_NPS<br>
o SW_WATCHDOG<br>
Power switch [NONE]:<br>
Save the cluster member information? yes/no [yes]: --对配置信息进行保存<br>
Save the cluster member information? yes/no [yes]:<br>
Writing to configuration file...done<br>
Configuration information has been saved to /etc/cluster.conf.<br>
----------------------------<br>
Setting up Quorum Partitions<br>
----------------------------<br>
Running cludiskutil -I to initialize the quorum partitions: done<br>
Saving configuration information to quorum partitions: done<br>
Do you wish to allow remote monitoring of the cluster? yes/no [yes]: --是否允许远程主机进行cluster监视访问<br>
Configuration on this member is complete.<br>
To configure the next member, invoke the following command on that system:<br>
# /sbin/cluconfig --init=/dev/raw/raw1<br>
Refer to the Red Hat Cluster Manager Installation and Administration Guide<br>
for details.<br>
本地主机配置完成<br>
进入对方主机的/sbin目录,执行cluconfig –init=/dev/raw/raw1显示信息如下:<br>
Information about Channel 0<br>
/sbin/cluconfig: [: haha: unary operator expected<br>
Looking for host haha (may take a few seconds)...<br>
Information about Channel 1<br>
/sbin/cluconfig: [: hehe: unary operator expected<br>
Looking for host hehe (may take a few seconds)...<br>
Information about Quorum Partitions<br>
Information About the Power Switch That Power Cycles Member 'haha'<br>
Note: Operating a cluster without a remote power switch does not pr<br>

⌨️ 快捷键说明

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