<?xml version="1.0" encoding="gb2312"?>
	<rss version="2.0">
		<channel>
		<title><![CDATA[言语草堂]]></title>
		<description><![CDATA[明 知 不 敌 亦 要 毅 然 亮 剑 ！]]></description>
		<link>http://www.cublog.cn/u/17982/</link>
		<language>zh-cn</language>
		<generator>www.cublog.cn</generator>
		<copyright>Copyright 2010 ChinaUnix.Net All Rights Reserved</copyright>
		<pubDate>Fri, 03 Sep 2010 02:11:53 GMT</pubDate>
	
		<item>
			<title><![CDATA[BLOG迁移!1]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=253043]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Sun, 04 Mar 2007 08:46:54 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV><STRONG><FONT size=6>本BLOG迁移&nbsp; </FONT></STRONG><A href="http://merlin.cublog.cn"><STRONG><FONT size=6>http://merlin.cublog.cn</FONT></STRONG></A></DIV>
<DIV><STRONG><FONT size=6></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT size=6></FONT></STRONG>&nbsp;</DIV>
<DIV><STRONG><FONT size=6>欢迎继续大家支持!!!</FONT></STRONG></DIV>
<DIV></DIV>  ]]></description>
		</item>	
			<item>
			<title><![CDATA[Cisco IOS下载]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=221235]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Tue, 26 Dec 2006 02:01:37 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV>
<H4 class=TextColor1 id=subjcns!D9BAAE7F4FAD80F8!167 style="MARGIN-BOTTOM: 0px">Cisco IOS下载(新添加3745 2691 3725)</H4>
<DIV id=msgcns!D9BAAE7F4FAD80F8!167>
<DIV>收集各类IOS的</DIV>
<DIV>大家可以把后缀改成.rar然后在解压出来&nbsp; 这样dynamips在载入的时候就快了</DIV>
<DIV>&nbsp;</DIV>
<DIV>如需要特别版本的 可以回复 我讲添加上去。</DIV>
<DIV>&nbsp;</DIV>
<DIV>K8 K9是支持VPN 的</DIV>
<DIV><SPAN><A title="Click this link to download this file" rel=nofollow><U><FONT color=#0000ff><SPA……  ]]></description>
		</item>	
			<item>
			<title><![CDATA[VMware+Dynamips 搭建广域网测试环境]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=218464]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Wed, 20 Dec 2006 04:58:15 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV>VMware+Dynamips 搭建广域网测试环境（pdf）</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#dddddd cellSpacing=0 cellPadding=0 width=360 align=center border=1>
<TBODY>
<TR height=60>
<TD align=middle width=60><IMG alt="" src="http://control.cublog.cn/fileicon/pdf.gif" border=0></TD>
<TD>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=20>
<TD align=middle width=40>文件:</TD>
<TD>VMware+Dynamips.pdf</TD></TR>
<TR height=20>
<TD align=middle width=40>大小:</TD>
<TD>501KB</TD></TR>
<TR height=20>
<TD align=middle width=40>下载:</TD>
<TD><A href="http://blogimg.chinaunix.net/blog/upfile/061220103332.pdf">下载</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
<DIV>相关软件以及介绍（Dynamips 0.2.6-RC3）：</DIV>
<DIV><U><FONT color=#3300ff><A href="http://blog.chinaunix.net/u/17982/article.php?frmid=44731">http://blog.chinaunix.net/u/17982/article.php?frmid=447……  ]]></description>
		</item>	
			<item>
			<title><![CDATA[VMware GSX虚拟服务器软件的实战应用]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=218468]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Wed, 20 Dec 2006 04:59:11 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV>VMware GSX虚拟服务器软件的实战应用（pdf）</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#dddddd cellSpacing=0 cellPadding=0 width=360 align=center border=1>
<TBODY>
<TR height=60>
<TD align=middle width=60><IMG alt="" src="http://control.cublog.cn/fileicon/pdf.gif" border=0></TD>
<TD>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=20>
<TD align=middle width=40>文件:</TD>
<TD>VMware GSX虚拟服务器软件的实战应用.pdf</TD></TR>
<TR height=20>
<TD align=middle width=40>大小:</TD>
<TD>1064KB</TD></TR>
<TR height=20>
<TD align=middle width=40>下载:</TD>
<TD><A href="http://blogimg.chinaunix.net/blog/upfile/061220103743.pdf">下载</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
<DIV></DIV>  ]]></description>
		</item>	
			<item>
			<title><![CDATA[Dynamips 0.2.6-RC3]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=218482]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Wed, 20 Dec 2006 05:11:41 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV>
<H3>
<H1>Download Dynamips&nbsp;0.2.6-RC3</H1><BR>
<P><B class=rd>简介:</B> Dynamips，这绝对不是一般的cisco路由器模拟器。dynamips和boson netsim的区别在于：boson是模拟出IOS的命令行，而dynamips是模拟出cisco7200路由器的硬件环境，然后在这个环境中直接运行Cisco的IOS。换句话讲，dynamips模拟出的是真实的路由器，就象你在PC上用街机模拟器玩街机游戏一样。<BR>Dynamips几乎可以完成CCNA、CCNP、CCSP、CCIP、CCIE所有的路由试验。<BR>Dynamips的优点不用多说了，唯一的缺点在于CPU的使用率较高，因此，想用dynamips……  ]]></description>
		</item>	
			<item>
			<title><![CDATA[Dynagen-0.7.0_dynamips-0.2.6-RC2]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=218527]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Wed, 20 Dec 2006 05:13:54 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV>Dynagen-0.7.0_dynamips-0.2.6-RC2</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>for linux</DIV>
<DIV>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#dddddd cellSpacing=0 cellPadding=0 width=360 align=center border=1>
<TBODY>
<TR height=60>
<TD align=middle width=60><IMG alt="" src="http://control.cublog.cn/fileicon/zip.gif" border=0></TD>
<TD>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=20>
<TD align=middle width=40>文件:</TD>
<TD>dynagen-0.7.0.tar.gz</TD></TR>
<TR height=20>
<TD align=middle width=40>大小:</TD>
<TD>384KB</TD></TR>
<TR height=20>
<TD align=middle width=40>下载:</TD>
<TD><A href="http://blogimg.chinaunix.net/blog/upfile/061220115717.gz">下载</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
<DIV>for window</DIV>
<DIV>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#dddddd cellSpacing=0 cellPadding=0 width=360 align=center border=1>
<TBODY>
<TR height=60>
<TD align=middle width=60><IMG alt="" src="http://control.cublog.cn/fileicon/rar.gif" border=0></TD>
<TD>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=20>
<TD align=middle width=40>文件:</TD>
<TD>dynagen-0.7.0_dynamips-0.2.6-RC2_win_setup.part1.rar</TD></TR>
<TR height=20>
<TD align=middle width=40>大小:</TD>
<TD>1423KB</TD></TR>
<TR height=20>
<TD align=middle width=40>下载:</TD>
<TD><A href="http://blogimg.chinaunix.net/blog/upfile/061220121348.rar">下载</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
<DIV>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#dddddd cellSpacing=0 cellPadding=0 width=360 align=center border=1>
<TBODY>
<TR height=60>
<TD align=middle width=60><IMG alt="" src="http://control.cublog.cn/fileicon/rar.gif" border=0></TD>
<TD>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=20>
<TD align=m……  ]]></description>
		</item>	
			<item>
			<title><![CDATA[WinPcap 4.0 beta 2]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=218539]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Wed, 20 Dec 2006 04:59:44 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV>&nbsp;</DIV>
<DIV>WinPcap 4.0 beta2 
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#dddddd cellSpacing=0 cellPadding=0 width=360 align=center border=1>
<TBODY>
<TR height=60>
<TD align=middle width=60><IMG alt="" src="http://control.cublog.cn/fileicon/rar.gif" border=0></TD>
<TD>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=20>
<TD align=middle width=40>文件:</TD>
<TD>WinPcap_4_0_beta2.rar</TD></TR>
<TR height=20>
<TD align=middle width=40>大小:</TD>
<TD>446KB</TD></TR>
<TR height=20>
<TD align=middle width=40>下载:</TD>
<TD><A href="http://blogimg.chinaunix.net/blog/upfile/061220121526.rar">下载</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
<DIV></DIV>
<DIV></DIV>  ]]></description>
		</item>	
			<item>
			<title><![CDATA[dynamips中文教程]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=218537]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Wed, 20 Dec 2006 04:59:36 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV>dynamips中文教程 
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#dddddd cellSpacing=0 cellPadding=0 width=360 align=center border=1>
<TBODY>
<TR height=60>
<TD align=middle width=60><IMG alt="" src="http://control.cublog.cn/fileicon/pdf.gif" border=0></TD>
<TD>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=20>
<TD align=middle width=40>文件:</TD>
<TD>dynamips中文教程.pdf</TD></TR>
<TR height=20>
<TD align=middle width=40>大小:</TD>
<TD>575KB</TD></TR>
<TR height=20>
<TD align=middle width=40>下载:</TD>
<TD><A href="http://blogimg.chinaunix.net/blog/upfile/061220121124.pdf">下载</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>  ]]></description>
		</item>	
			<item>
			<title><![CDATA[WinPcap_31]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=218541]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Wed, 20 Dec 2006 04:59:51 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV>WinPcap_31 
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#dddddd cellSpacing=0 cellPadding=0 width=360 align=center border=1>
<TBODY>
<TR height=60>
<TD align=middle width=60><IMG alt="" src="http://control.cublog.cn/fileicon/rar.gif" border=0></TD>
<TD>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=20>
<TD align=middle width=40>文件:</TD>
<TD>WinPcap_31 .rar</TD></TR>
<TR height=20>
<TD align=middle width=40>大小:</TD>
<TD>417KB</TD></TR>
<TR height=20>
<TD align=middle width=40>下载:</TD>
<TD><A href="http://blogimg.chinaunix.net/blog/upfile/061220121645.rar">下载</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
<DIV></DIV>
<DIV></DIV>
<DIV></DIV>  ]]></description>
		</item>	
			<item>
			<title><![CDATA[Dynamips安装手册]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=218543]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Wed, 20 Dec 2006 04:27:04 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV>
<H1 class=xspace-title>Dynamips安装手册</H1>
<DIV class=xspace-itemmessage id=xspace-showmessage>
<P>安装手册<BR>第一步：安装WinPcap_3_1.exe(如果安装过就不用再装，如有新版本，去这里下载<A href="http://www.winpcap.org/install/default.htm">http://www.winpcap.org/install/default.htm</A><BR>第二步：安装Dynamips_win_setup_0.2.5-RC1-0.4.2-1.exe(如果有新版本，去这里下载<A href="http://dyna-gen.sourceforge.net/">http://dyna-gen.sourceforge.net/</A><BR>第三步：解压dynamips-0.2.5-RC2-cygwin.zip(因……  ]]></description>
		</item>	
			<item>
			<title><![CDATA[dynamips使用视频教程]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=218546]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Wed, 20 Dec 2006 05:13:32 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#dddddd cellSpacing=0 cellPadding=0 width=360 align=center border=1>
<TBODY>
<TR height=60>
<TD align=middle width=60><IMG alt="" src="http://control.cublog.cn/fileicon/rar.gif" border=0></TD>
<TD>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=20>
<TD align=middle width=40>文件:</TD>
<TD>dynamips使用视频教程[1].part5.rar</TD></TR>
<TR height=20>
<TD align=middle width=40>大小:</TD>
<TD>833KB</TD></TR>
<TR height=20>
<TD align=middle width=40>下载:</TD>
<TD><A href="http://blogimg.chinaunix.net/blog/upfile/061220124659.rar">下载</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>dynamips使用视频教程 
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#dddddd cellSpacing=0 cellPadding=0 width=360 align=center border=1>
<TBODY>
<TR height=60>
<TD align=middle width=60><IMG alt="" src="http://control.cublog.cn/fileicon/rar.gif" border=0></TD>
<TD>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=20>
<TD align=middle width=40>文件:</TD>
<TD>dynamips使用视频教程[1].part1.rar</TD></TR>
<TR height=20>
<TD align=middle width=40>大小:</TD>
<TD>1855KB</TD></TR>
<TR height=20>
<TD align=middle width=40>下载:</TD>
<TD><A href="http://blogimg.chinaunix.net/blog/upfile/061220124401.rar">下载</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#dddddd cellSpacing=0 cellPadding=0 width=360 align=center border=1>
<TBODY>
<TR height=60>
<TD align=middle width=60><IMG alt="" src="http://control.cublog.cn/fileicon/rar.gif" border=0></TD>
<TD>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=20>
<TD align=middle width=40>文件:</TD>
<TD>dynamips使用视频教程[1].part2.rar</TD></TR>
<TR height=20>
<TD align=middle width=40>大小:</TD>
<TD>1855KB</TD></TR>
<TR height=20>
<TD align=middle width=40>下载:</TD>
<TD><A href="http://blogimg.chinaunix.net/blog/upfile/061220124431.rar">下载</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#dddddd cellSpacing=0 cellPadding=0 width=360 align=center border=1>
<TBODY>
<TR height=60>
<TD align=middle width=60><IMG alt="" src="http://control.cublog.cn/fileicon/rar.gif" border=0></TD>
<TD>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=20>
<TD align=middle width=40>文件:</TD>
<TD>dynamips使用视频教程[1].part3.rar</TD></TR>
<TR height=20>
<TD align=middle width=40>大小:</TD>
<TD>1855KB</TD></TR>
<TR height=20>
<TD align=middle width=40>下载:</TD>
<TD><A href="http://blogimg.chinaunix.net/blog/upfile/061220124505.rar">下载</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE style="BORDER-COLLAPSE: collapse" borderColor=#dddddd cellSpacing=0 cellPadding=0 width=360 align=center border=1>
<TBODY>
<TR height=60>
<TD align=middle width=60><IMG alt="" src="http://control.cublog.cn/fileicon/rar.gif" border=0></TD>
<TD>
<TABLE style="BORDER-COLLAPSE: collapse" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR height=20>
<TD align=middle width=40>文件:</TD>
<TD>dynamips使用视频教程[1].part4.rar</TD></TR>
<TR height=20>
<TD align=middle width=40>大小:</TD>
<TD>1855KB</TD></TR>
<TR height=20>
<TD align=middle width=40>下载:</TD>
<TD><A href="http://blogimg.chinaunix.net/blog/upfile/061220124543.rar">下载</A></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<P>&nbsp;</P>
<P>&nbsp;</P>
<DIV></DIV>
<DIV></DIV>  ]]></description>
		</item>	
			<item>
			<title><![CDATA[multiway1.1.2多路负载平衡路由破解补丁]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=215889]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Fri, 15 Dec 2006 01:02:22 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV>
<DIV style="FONT-SIZE: 12px">Multi-Way 是一个路由软件，它针对多条线路的负载平衡及容错进行了优化处理<BR><BR>Multi-Way适用于什么场合?<BR><BR>你是否...<BR><BR>正在租用或打算租用多条上网线路 <BR>发现计算机只能配置一个默认网关 <BR>觉得为每台计算机分配不同的网关非常烦琐 <BR>有时候看见一条线路拥挤不堪而另一条却闲置觉得非常浪费 <BR>当线路断开的时候忙于把受影响的计算机切换到正常的线路上 <BR>线路恢复后又忙着把它们切换回去 <BR>Multi-Way 给你带来解决方案，它独有的负载平衡、线路容错及流量优化功能，让你……  ]]></description>
		</item>	
			<item>
			<title><![CDATA[集群技术]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=153384]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Wed, 09 Aug 2006 13:51:15 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV><A href="http://www.51cto.com/art/200512/15073.htm">http://www.51cto.com/art/200512/15073.htm</A></DIV>  ]]></description>
		</item>	
			<item>
			<title><![CDATA[smarttemplate中文网]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=148308]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Mon, 31 Jul 2006 06:14:36 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV><U><FONT color=#3300ff>smarttemplate中文网</FONT></U></DIV>
<DIV>&nbsp;</DIV>
<DIV><A href="http://www.cublog.cn/control/smarttemplate中文网" target=_blank>http://smarttemplate.yi.org/</A></DIV>
<DIV></DIV>  ]]></description>
		</item>	
			<item>
			<title><![CDATA[书籍下载！！]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=147680]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Sun, 30 Jul 2006 03:33:36 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV><A href="http://dl.njfiw.gov.cn/books/" target=_blank>http://dl.njfiw.gov.cn/books/</A></DIV>  ]]></description>
		</item>	
			<item>
			<title><![CDATA[LPI认证]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=145015]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Mon, 24 Jul 2006 08:11:11 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV><A href="http://www.lpichina.org/" target=_blank>http://www.lpichina.org/</A></DIV>  ]]></description>
		</item>	
			<item>
			<title><![CDATA[VMware Server 正式版免费发布]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=141209]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Sun, 16 Jul 2006 03:11:08 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV><IMG src="http://goxia.maytide.net/up/1152776779.gif">VMware Server也终于发布正式版本了，真个虚拟机系统彻底开放，我们可以免费的选择使用这两个厂家的任何一个版本，呵呵！我一下申请了100个序列号。
<P>以下是官方的信息：</P>
<P>Experience Server Virtualization -- Free!<BR>Begin enjoying the benefits of server virtualization with the free VMware Server. VMware Server installs on any existing server hardware and partitions a physical server into multiple virtual machines by abstracting processor,……  ]]></description>
		</item>	
			<item>
			<title><![CDATA[ Linux下raid技术以及几种Raid介绍]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=140398]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Sun, 16 Jul 2006 04:44:20 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV>一：简要介绍<BR>数据在现今企业中占有重要的地位，数据存储的安全性有而是人们使用计算机要注意的重要问题之一。通常情况下人们在服务器端采用各种冗余磁盘阵列RAID技术来保护数据，中高档的服务器一般都提供了昂贵的硬件RAID控制器，但是很多中小企业没有足够的经费承受这笔开销。我们有没有方法可以通过软件来实现RAID呢？ <BR>实际上在Linux下可以通过软件来实现硬件的RAID功能，这样既节省了投资，又能达到很好的效果。今天就由我为大家介绍如何在网络环境中实现带有一块Spare-disk的软RAID1（数据镜像）阵列。<BR>小提示：什么……  ]]></description>
		</item>	
			<item>
			<title><![CDATA[爱情只有暂时是永远的 ]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=140380]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Thu, 13 Jul 2006 14:49:29 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV>
<DIV id=blogContent>很老的一个故事了&nbsp; <BR><BR>觉得看过了请不要不经意的瞎看了&nbsp; <BR><BR>谢谢&nbsp; <BR><BR><BR><BR>女孩终于鼓起勇气对男孩说：「我们分手吧」&nbsp;&nbsp; <BR><BR>男孩问：「为什么？」&nbsp;&nbsp; <BR><BR>女孩说：「倦了，就不需要理由了」&nbsp;&nbsp; <BR><BR>一个晚上&nbsp;&nbsp; <BR><BR>男孩只抽烟不说话&nbsp;&nbsp; <BR><BR>女孩的心也越来越凉&nbsp;&nbsp; <BR><BR>『连挽留都不会表达的情人,能给我什么样的快乐？』&nbsp;&nbsp; <BR><BR>过了许久&nbsp;&nbsp; <BR><BR>男孩终忍不住说……  ]]></description>
		</item>	
			<item>
			<title><![CDATA[LVS集群技术]]></title>
			<link><![CDATA[http://blog.chinaunix.net/u/17982/showart.php?id=138812]]></link>
			<author></author>
			<guid></guid>
			<category></category>
			<pubDate>Mon, 10 Jul 2006 12:49:25 GMT</pubDate>
			<comments></comments>
			<description><![CDATA[<DIV align=left><STRONG><FONT color=#02368d size=5>LVS集群技术</FONT></STRONG><BR></DIV>
<H3 align=left>目录</H3>
<DIV align=left>
<UL>
<LI>
<DIV align=left>Preface</DIV>
<LI>
<DIV align=left>IPVS</DIV>
<LI>
<DIV align=left>HeatBeat</DIV>
<LI>
<DIV align=left>Ldirectord</DIV>
<LI>
<DIV align=left>Patdh</DIV>
<LI>
<DIV align=left>Scripts</DIV>
<LI>
<DIV align=left>Reference</DIV></LI></UL></DIV>
<P align=left>
<DIV align=left>
<HR>
</DIV>
<P align=left><A name=preface><B>Preface</B></A> </P>
<P align=left></P>
<P align=left>集群技术主要分为三大类：</P>
<P align=left>
<TABLE>
<TBODY>
<TR>
<TD>
<UL>
<LI>高可用性(High Available Cluster)，例：<A href="http://www.linux-ha.org/" target=_blank>Linux-HA</A> 
<LI>负载均衡(Load balancing Cluster)，例：<A href="http://www.linuxvirtualserver.org/" target=_blank>LVS</A>、<A href="http://www.mosix.org/" target=_blank>MOSIX</A> 
<LI>高性能计算(High Performance Computing)，例：<A href="http://www.beowulf.org/" target=_blank>Beowulf</A></LI></UL></TD></TR></TBODY></TABLE></P>
<P align=left>我们这里使用RedHat AS 3.x，LVS，Linux-HA，Ldirectord，构造一个高可用的负载均衡集群系统。如图：</P>
<P align=left><IMG src="http://www.funbsd.net/cluster/lvs_architecture.jpg"></P>
<P align=left>各层的作用：</P>
<P align=left>
<TABLE>
<TBODY>
<TR>
<TD>
<UL>
<LI><STRONG>Load Balancer(负载均衡器)：</STRONG><BR>Load Balancer是整个集群系统的前端，负责把客户请求转发到Real Server上。<BR>Backup是备份Load Balancer，当Load Balancer不可用时接替它，成为实际的Load Balancer。<BR>Load Balancer通过Ldirectord监测各Real Server的健康状况。在Real Server不可用时把它从群中剔除，恢复时重新加入。 
<LI><STRONG>Server Array(服务器群)：</STRONG><BR>Server Array是一组运行实际应用服务的机器，比如WEB, Mail, FTP, DNS, Media等等。<BR>在实际应用中，Load Balancer和Backup也可以兼任Real Server的角色。 
<LI><STRONG>Shared Storage(共享存储)：</STRONG><BR>Shared Storage为所有Real Server提供共享存储空间和一致的数据内容。 </LI></UL></TD></TR></TBODY></TABLE></P>
<P align=left>各服务器IP分配：</P>
<P align=left>
<TABLE style="WIDTH: 381px; HEIGHT: 129px" cellSpacing=1 cellPadding=1 width=381 border=1>
<TBODY>
<TR>
<TD>
<P>&nbsp;Virtual IP：</P></TD>
<TD>&nbsp;192.168.136.10</TD></TR>
<TR>
<TD>&nbsp;Load Balancer：</TD>
<TD>&nbsp;192.168.136.11</TD></TR>
<TR>
<TD>&nbsp;Backup：</TD>
<TD>&nbsp;192.168.136.12</TD></TR>
<TR>
<TD>&nbsp;Real Server 1：</TD>
<TD>&nbsp;192.168.136.101</TD></TR>
<TR>
<TD>&nbsp;Real Server 2：</TD>
<TD>&nbsp;192.168.136.102</TD></TR>
<TR>
<TD>&nbsp;Real Server 3：</TD>
<TD>&nbsp;192.168.136.103</TD></TR></TBODY></TABLE></P>
<P align=left>&nbsp;</P>
<DIV align=left>
<HR>
</DIV>
<DIV align=left><A name=ipvs><B>IPVS</B></A> </DIV>
<P align=left>IPVS是LVS集群系统的核心软件，它的主要作用是：</P>
<P align=left>
<TABLE>
<TBODY>
<TR>
<TD>
<UL>
<LI>安装在Load Balancer上，把发往Virtual IP的请求转发到Real Server上。 </LI></UL></TD></TR></TBODY></TABLE></P>
<P align=left>IPVS的负载均衡机制有三种，这里使用IP Tunneling机制：</P>
<P align=left>
<TABLE>
<TBODY>
<TR>
<TD>
<UL>
<LI>Virtual Server via NAT 
<LI>Virtual Server via IP Tunneling 
<LI>Virtual Server via Direct Routing </LI></UL></TD></TR></TBODY></TABLE></P>
<P align=left>IPVS的负载调度算法有十种：</P>
<P align=left>
<TABLE>
<TBODY>
<TR>
<TD>
<UL>
<LI>轮叫（Round Robin） 
<LI>加权轮叫（Weighted Round Robin） 
<LI>最少链接（Least Connections） 
<LI>加权最少链接（Weighted Least Connections） 
<LI>基于局部性的最少链接（Locality-Based Least Connections） 
<LI>带复制的基于局部性最少链接（Locality-Based Least Connections with Replication） 
<LI>目标地址散列（Destination Hashing ） 
<LI>源地址散列（Source Hashing） 
<LI>最短期望延迟(Shortest Expected Delay) 
<LI>无须队列等待（Never Queue） </LI></UL></TD></TR></TBODY></TABLE></P>
<P align=left>IPVS安装主要包括三方面：</P>
<P align=left>
<TABLE>
<TBODY>
<TR>
<TD>
<UL>
<LI>在Load Banlancer上安装IPVS内核补丁 
<LI>在Load Banlancer上安装IPVS管理软件 
<LI>在Real Server上安装ARP hidden内核补丁 </LI></UL></TD></TR></TBODY></TABLE></P>
<P align=left>关于如何编译内核请参考其他文档，这里使用从UltraMonkey下载的已编译好的内核。</P>
<P align=left>在Load Banlancer、Backup和Real Server上使用同一内核，IPVS和ARP hidden都已编译在这个内核里：</P>
<P align=left>
<TABLE>
<TBODY>
<TR>
<TD>wget http://www.ultramonkey.org/download/2.0.1/rh.el.3.0/RPMS/mkinitrd-3.5.13-1.um.1.i386.rpm<BR>wget http://www.ultramonkey.org/download/2.0.1/rh.el.3.0/RPMS/kernel-2.4.21-27.0.2.EL.um.1.i686.rpm<BR>#wget http://www.ultramonkey.org/download/2.0.1/rh.el.3.0/RPMS/kernel-smp-2.4.21-27.0.2.EL.um.1.i686.rpm<BR><BR>rpm -Fhv mkinitrd-3.5.13-1.um.1.i386.rpm<BR>rpm -Fhv kernel-2.4.21-27.0.2.EL.um.1.i686.rpm</TD></TR></TBODY></TABLE></P>
<P align=left>在Load Banlancer和Backup上安装IPVS管理软件：</P>
<P align=left>
<TABLE>
<TBODY>
<TR>
<TD>
<P>wget http://www.linuxvirtualserver.org/software/kernel-2.4/ipvs-1.0.10.tar.gz<BR>tar zxf ipvs-1.0.10.tar.gz<BR>cd ipvs-1.0.10/ipvs/ipvsadm<BR>make install</P>
<P>chkconfig --del ipvsadm</P></TD></TR></TBODY></TABLE></P>
<P align=left>配置IPVS(/etc/sysconfig/ipvsadm)，添加Real Server：</P>
<P align=left>
<TABLE>
<TBODY>
<TR>
<TD>-A -t 192.168.136.10:80 -s rr<BR>-a -t 192.168.136.10:80 -r 192.168.136.11:80 -i<BR>-a -t 192.168.136.10:80 -r 192.168.136.12:80 -i<BR>-a -t 192.168.136.10:80 -r 192.168.136.101:80 -i<BR>-a -t 192.168.136.10:80 -r 192.168.136.102:80 -i<BR>-a -t 192.168.136.10:80 -r 192.168.136.103:80 -i</TD></TR></TBODY></TABLE></P>
<P align=left>相关链接：</P>
<P align=left>
<TABLE>
<TBODY>
<TR>
<TD>Kernel：<A href="http://www.kernel.org/" target=_blank>http://www.kernel.org/</A><BR>IPVS和IPVSadm：<A href="http://www.linuxvirtualserver.org/software/ipvs.html" target=_blank>http://www.linuxvirtualserver.org/software/ipvs.html</A><BR>ARP hidden：<A href="http://www.ssi.bg/~ja/#hidden" target=_blank>http://www.ssi.bg/~ja/#hidden</A></TD></TR></TBODY></TABLE></P>
<P align=left>注意事项：</P>
<P align=left>
<TABLE>
<TBODY>
<TR>
<TD>
<P>1. Kernel,IPVS,IPVSadm,ARP hidden之间的版本必须对应。<BR>2. 自己编译内核时，从http://www.kernel.org/下载标准内核源文件，不要使用发行版的内核源文件。<BR>3. Kernel 2.4.28和2.6.10及以上版本已内置IPVS，有些Linux发行版也在其内核里编译了IPVS。<BR>4. ARP hidden可以用arp_ignore/arp_announce或者arptables代替</P>
<P><FONT color=#800080></FONT>&nbsp;</P>
<HR>

<P></P>
<P><A name=heartbeat><B>HeartBeat</B></A> </P>
<P>HeartBeat是Linux-HA的高可用性集群软件，它的主要作用是：</P>
<P>
<TABLE>
<TBODY>
<TR>
<TD>
<UL>
<LI>安装在Load Balancer和Backup上，运行于active/standby模式。<BR>当Load Balancer失效时，Backup自动激活，成为实际的Load Balancer。 
<LI>切换到active模式时，按顺序启动Virtual IP、IPVS和Ldirectord。<BR>切换到standby模式时，按顺序关闭Ldirectord、IPVS和Virtual IP。 </LI></UL></TD></TR></TBODY></TABLE></P>
<P>HeartBeat串口线连接测试方法：</P>
<P>
<TABLE>
<TBODY>
<TR>
<TD>在Load Balancer上：cat &lt; /dev/ttyS0<BR>在Backup上：echo hello &gt; /dev/ttyS0<BR></TD></TR></TBODY></TABLE></P>
<P>修改主机名(/etc/hosts)：</P>
<P>
<TABLE>
<TBODY>
<TR>
<TD>127.0.0.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; localhost.localdomain localhost<BR>192.168.136.11&nbsp;&nbsp;&nbsp; loadbalancer<BR>192.168.136.12&nbsp;&nbsp;&nbsp; backup<BR></TD></TR></TBODY></TABLE></P>
<P>安装：</P>
<P>
<TABLE>
<TBODY>
<TR>
<TD>groupadd -g 694 haclient<BR>useradd -u 694 -g haclient hacluster<BR><BR>rpm -ivh /mnt/cdrom/RedHat/RPMS/glib2-devel-*<BR><BR>wget http://www.packetfactory.net/libnet/dist/libnet.tar.gz<BR>tar zxf libnet.tar.gz<BR>cd libnet<BR>./configure <BR>make<BR>make install<BR><BR>wget http://www.linux-ha.org/download/heartbeat-1.99.4-tar.gz<BR>tar zxf heartbeat-1.99.4.tar.gz<BR>cd heartbeat-1.99.4<BR>./ConfigureMe configure --disable-swig --disable-snmp-subagent<BR>make<BR>make install<BR>cp doc/ha.cf doc/haresources doc/authkeys /etc/ha.d/<BR>cp ldirectord/ldirectord.cf /etc/ha.d/<BR><BR>chkconfig --add heartbeat<BR>chkconfig --del ldirectord </TD></TR></TBODY></TABLE></P>
<P>主配置文件(/etc/ha.d/ha.cf)：</P>
<P>
<TABLE>
<TBODY>
<TR>
<TD>#debugfile /var/log/ha-debug<BR>logfile /var/log/ha-log<BR>logfacility local0<BR>keepalive 2<BR>deadtime 30<BR>warntime 10<BR>initdead 120<BR>udpport 694<BR>baud 19200<BR>serial /dev/ttyS0<BR>mcast eth0 225.0.0.1 694 1 0<BR><BR># 当主节点恢复后，是否自动切回<BR>auto_failback on<BR><BR># stonith用来保证共享存储环境中的数据完整性<BR>#stonith baytech /etc/ha.d/conf/stonith.baytech<BR><BR># watchdog能让系统在出现故障1分钟后重启该机器。这个功能可以帮助服务器在确实停止心跳后能够重新恢复心跳。<BR># 如果使用该特性，则在内核中装入"softdog"内核模块，用来生成实际的设备文件，输入"insmod softdog"加载模块。<BR># 输入"grep misc /proc/devices"(应为10)，输入"cat /proc/misc | grep watchdog"(应为130)。<BR># 生成设备文件："mknod /dev/watchdog c 10 130" 。<BR>#watchdog /dev/watchdog<BR><BR>node loadbalancer<BR>node backup<BR><BR># 默认heartbeat并不检测除本身之外的其他任何服务，也不检测网络状况。<BR># 所以当网络中断时，并不会进行Load Balancer和Backup之间的切换。<BR># 可以通过ipfail插件，设置'ping nodes'来解决这一问题。详细说明参考hearbeat文档。<BR>#ping 192.168.136.1 172.16.0.1<BR>ping_group group1 192.168.136.1 192.168.136.2<BR>respawn root /usr/lib/heartbeat/ipfail<BR>apiauth ipfail gid=root uid=root<BR><BR># 其他一些插件可以在/usr/lib/heartbeat下找到<BR>#apiauth ipfail uid=hacluster<BR>#apiauth ccm uid=hacluster<BR>#apiauth cms uid=hacluster<BR>#apiauth ping gid=haclient uid=alanr,root<BR>#apiauth default gid=haclient</TD></TR></TBODY></TABLE></P>
<P>资源文件(/etc/ha.d/haresources)：</P>
<P>
<TABLE>
<TBODY>
<TR>
<TD>loadbalancer lvs IPaddr::192.168.136.10/24/eth0 ipvsadm ldirectord</TD></TR></TBODY></TABLE></P>
<P>认证文件(/etc/ha.d/authkeys)，选取一种认证方式，这个文件的权限必须是600：</P>
<P>
<TABLE>
<TBODY>
<TR>
<TD>auth 1<BR>1 crc<BR>#2 sha1 sha1_any_password<BR>#3 md5 md5_any_password</TD></TR></TBODY></TABLE></P>
<P>相关链接：</P>
<P>
<TABLE>
<TBODY>
<TR>
<TD>Linux-HA：<A href="http://www.linux-ha.org " target=_blank>http://www.linux-ha.org </A>
<TD></TD></TR></TBODY></TABLE></P>
<P>&nbsp;</P>
<HR>

<P></P>
<P><A name=ldirectord><B>Ldirectord</B></A> </P>
<P>安装HeartBeat过程中，已经自动安装了Ldirectord，它的作用是：</P>
<P>
<TABLE>
<TBODY>
<TR>
<TD>
<UL>
<LI>监测Real Server，当Real Server失效时，把它从Load Balancer列表中删除，恢复时重新添加。 </LI></UL></TD></TR></TBODY></TABLE></P>
<P>配置(/etc/ha.d/ldirectord.cf)：</P>
<P>
<TABLE>
<TBODY>
<TR>
<TD># Global Directives<BR>checktimeout=3<BR>checkinterval=1<BR>fallback=127.0.0.1:80<BR>autoreload=yes<BR>logfile="/var/log/ldirectord.log"<BR>quiescent=yes<BR>
<P># A sample virual with a fallback that will override the gobal setting<BR>virtual=192.168.136.10:80<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;real=192.168.136.11:80 &nbsp;ipip<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;real=192.168.136.12:80 &nbsp;ipip<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;real=192.168.136.101:80 ipip<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;real=192.168.136.102:80 ipip<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;real=192.168.136.103:80 ipip<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;fallback=127.0.0.1:80 &nbsp;&nbsp;gate<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;service=http<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;request="test.html"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;receive="Test Page"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;virtualhost=www.funbsd.net<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;scheduler=rr<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#persistent=600<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;#netmask=255.255.255.255<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;protocol=tcp</P></TD></TR></TBODY></TABLE></P>
<P>在每个Real Server的中添加监控页：</P>
<P>
<TABLE>
<TBODY>
<TR>
<TD>echo "Test Page" &gt;&gt; /var/www/html/test.html </TD></TR></TBODY></TABLE></P>
<P>&nbsp;</P><FONT color=#800080></FONT>
<P>
<HR>

<P></P>
<P><A name=patch><B>Patch</B></A> </P>
<P>在启动集群系统之前，我们认为包括Load Balancer和Backup在内的所有服务器都是Real Server。</P>
<P>在服务器上添加以下脚本/etc/init.d/tunl，用来配置tunl端口，应用arp补丁：</P>
<P>
<TABLE>
<TBODY>
<TR>
<TD>#!/bin/sh<BR># chkconfig: 2345 70 10<BR># description: Config tunl port and apply arp patch 
<P>VIP=192.168.136.10</P>
<P>. /etc/rc.d/init.d/functions</P>
<P>case "$1" in<BR>&nbsp;&nbsp;&nbsp;&nbsp;start)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo "Tunl port starting"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ifconfig tunl0 $VIP netmask 255.255.255.255 broadcast $VIP up<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo 1 &gt; /proc/sys/net/ipv4/ip_forward<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo 1 &gt; /proc/sys/net/ipv4/conf/all/hidden<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo 1 &gt; /proc/sys/net/ipv4/conf/tunl0/hidden<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;<BR>&nbsp;&nbsp;&nbsp;&nbsp;stop)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo "Tunl port closing"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ifconfig tunl0 down<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo 1 &gt; /proc/sys/net/ipv4/ip_forward<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo 0 &gt; /proc/sys/net/ipv4/conf/all/hidden<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;<BR>&nbsp;&nbsp;&nbsp;&nbsp;*)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo "Usage: $0 {start|stop}"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit 1<BR>esac</P></TD></TR></TBODY></TABLE></P>
<P>如果有多个Virutal IP，可以使用tunl0:0,tunl0:1...。</P>
<P>
<TABLE>
<TBODY>
<TR>
<TD>chmod 755 /etc/init.d/tunl<BR>chkconfig --add tunl </TD></TR></TBODY></TABLE></P>
<P>在Load Balancer和Backup上，这个脚本的启动级必须先于heartbeat，关闭级必须后于heartbeat。</P>
<P><FONT color=#800080></FONT>
<HR>

<P></P>
<P><A name=scripts><B>Scripts</B></A> </P>
<P>在HeartBeat资源文件(/etc/ha.d/haresources)中定义了实现集群所需的各个软件的启动脚本。</P>
<P>这些脚本必须放在/etc/init.d或者/etc/ha.d/resource.d目录里，启动顺序不能变：</P>
<P>
<TABLE>
<TBODY>
<TR>
<TD>loadbalancer lvs IPaddr::192.168.136.10/24/eth0 ipvsadm ldirectord</TD></TR></TBODY></TABLE></P>
<P>IPaddr的作用是启动Virutal IP，它是HeartBeart自带的一个脚本。</P>
<P>ipvsadm的作用是在启动的时候把所有Real Server加入群中。</P>
<P>ldirectord的作用是启动ldirectord监控程序。</P>
<P>lvs的作用是为启动Load Balancer做准备，关闭tunl端口，取消arp补丁：</P>
<P>
<TABLE>
<TBODY>
<TR>
<TD>#!/bin/sh<BR># chkconfig: 2345 90 10<BR># description: Preparing for Load Balancer and Real Server switching 
<P>VIP=192.168.136.10</P>
<P>. /etc/rc.d/init.d/functions</P>
<P>case "$1" in<BR>&nbsp;&nbsp;&nbsp;&nbsp;start)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo "Preparing for Load Balancer"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ifconfig tunl0 down<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo 1 &gt; /proc/sys/net/ipv4/ip_forward<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo 0 &gt; /proc/sys/net/ipv4/conf/all/hidden<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;<BR>&nbsp;&nbsp;&nbsp;&nbsp;stop)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo "Preparing for Real Server"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;ifconfig tunl0 $VIP netmask 255.255.255.255 broadcast $VIP up<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo 1 &gt; /proc/sys/net/ipv4/ip_forward<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo 1 &gt; /proc/sys/net/ipv4/conf/all/hidden<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo 1 &gt; /proc/sys/net/ipv4/conf/tunl0/hidden<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;;;<BR>&nbsp;&nbsp;&nbsp;&nbsp;*)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;echo "Usage: lvs {start|stop}"<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;exit 1<BR>esac</P></TD></TR></TBODY></TABLE></P>
<P>
<TABLE>
<TBODY>
<TR>
<TD>chmod 755 /etc/ha.d/resource.d/lvs</TD></TR></TBODY></TABLE></P>
<P>启动集群系统：</P>
<P>
<TABLE>
<TBODY>
<TR>
<TD>/etc/init.d/heartbeat start</TD></TR></TBODY></TABLE><FONT color=#800080></FONT></P>
<HR>

<P></P>
<P><A name=reference><B>Reference</B></A> </P>
<P><FONT color=#800080><A href="http://www.linuxvirtualserver.org/" target=_blank>http://www.linuxvirtualserver.org/</A><A href="http://www.linuxvirtualserver.org/" target=_blank></FONT></A></P>
<P><FONT color=#0000ff><A href="http://www.linux-ha.org/" target=_blank>http://www.linux-ha.org/</A><A href="http://www.linux-ha.org/" target=_blank></FONT></A></P>
<P><FONT color=#0000ff><A href="http://www.ultramonkey.org/" target=_blank>http://www.ultramonkey.org/</A><A href="http://www.ultramonkey.org/" target=_blank></FONT></A></P>
<P><FONT color=#0000ff><A href="http://www.linuxts.com/modules/sections/index.php?op=viewarticle&amp;artid=375" target=_blank>http://www.linuxts.com/modules/sections/index.php?op=viewarticle&amp;artid=375</A></FONT></P>
<P><FONT color=#0000ff><A href="http://www.yesky.com/SoftChannel/72341302397632512/20040311/1776261.shtml" target=_blank>http://www.yesky.com/SoftChannel/72341302397632512/20040311/1776261.shtml</A><A href="http://www.yesky.com/SoftChannel/72341302397632512/20040311/1776261.shtml" target=_blank></FONT></A></P><A href="http://www-900.ibm.com/developerWorks/cn/linux/theme/special/index.shtml#cluster" target=_blank>http://www-900.ibm.com/developerWorks/cn/linux/theme/special/index.shtml#cluster</A> 
<HR>

<P></P>
<P><BR>&nbsp;</P></TD></TR></TBODY></TABLE></P>
<DIV></DIV>  ]]></description>
		</item>	
			</channel>
	</rss>
