<?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>xuun&#039;s blogXuun</title>
	<atom:link href="http://xuun.net/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://xuun.net</link>
	<description>Nerazzurri</description>
	<lastBuildDate>Sat, 04 Sep 2010 01:01:09 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Linux下的实时网络流量监控工具 – iftop</title>
		<link>http://xuun.net/2010/09/04/install-iftop/</link>
		<comments>http://xuun.net/2010/09/04/install-iftop/#comments</comments>
		<pubDate>Sat, 04 Sep 2010 00:59:27 +0000</pubDate>
		<dc:creator>Xuun</dc:creator>
				<category><![CDATA[关于服务器域名]]></category>
		<category><![CDATA[iftop]]></category>
		<category><![CDATA[网络流量监控工具]]></category>

		<guid isPermaLink="false">http://xuun.net/?p=1406</guid>
		<description><![CDATA[iftop是一款Linux下的实时网络流量监控工具，可以在以类unix为操作系统的服务器或VPS上安装使用，主要用来显示本机网络流量情况及各相互通信的流量集合，如单独同那台机器间的流量大小，非常适合于代理服务器和iptables服务器使用 从Centos EPEL Repo安装: yum install iftop 或者编译安装: 第一步: 安装libpcap cd /usr/local/src wget ftp://ftp.port80.se/gentoo/distfiles/libpcap-0.9.8.tar.gz tar -zxvf libpcap-0.9.8.tar.gz cd libpcap-0.9.8 ./configure make &#38;&#38; make install 第二步: 安装IFTOP cd /usr/local/src wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz tar -zxvf iftop-0.17.tar.gz cd iftop-0.17 ./configure make &#38;&#38; make install 第三部: 修改IFTOP权限 chmod 700 /usr/local/sbin/iftop 第四步: 如何使用IFTOP iftop -i eth0 需要帮助的话可以按H键 首行是网络流量刻度， 中间是与其它机器的流量，有个白底的bar直观的标识流量变化，后三列数据分别表示： 1. preceding [...]]]></description>
			<content:encoded><![CDATA[<p>iftop是一款Linux下的实时网络流量监控工具，可以在以类unix为操作系统的服务器或VPS上安装使用，<span>主要用来显示本机网络流量情况及各相互通信的流量集合，如单独同那台机器间的流量大小，非常适合于代理服务器和iptables服务器使用</span><br />
<strong> </strong></p>
<p><strong>从Centos EPEL Repo安装:</strong></p>
<div>
<div>
<pre>yum install iftop</pre>
</div>
</div>
<p><strong>或者编译安装:</strong><br />
<strong>第一步: 安装libpcap</strong></p>
<div>
<div>
<pre>cd /usr/local/src
wget ftp://ftp.port80.se/gentoo/distfiles/libpcap-0.9.8.tar.gz
tar -zxvf libpcap-0.9.8.tar.gz
cd libpcap-0.9.8
./configure
make &amp;&amp; make install</pre>
</div>
</div>
<p><strong>第二步: 安装IFTOP</strong></p>
<div>
<div>
<pre>cd /usr/local/src
wget http://www.ex-parrot.com/~pdw/iftop/download/iftop-0.17.tar.gz
tar -zxvf iftop-0.17.tar.gz
cd iftop-0.17
./configure
make &amp;&amp; make install</pre>
</div>
</div>
<p><strong>第三部: 修改</strong><strong>IFTOP权限</strong></p>
<div>
<div>
<pre>chmod 700 /usr/local/sbin/iftop</pre>
</div>
</div>
<p><strong>第四步: 如何使用IFTOP</strong></p>
<div>
<div>
<pre>iftop -i eth0</pre>
</div>
</div>
<p>需要帮助的话可以按H键</p>
<p>首行是网络流量刻度，<br />
中间是与其它机器的流量，有个白底的bar直观的标识流量变化，后三列数据分别表示：<br />
1. preceding 2 seconds 过去两秒钟的流量（traffic）<br />
2. around half that amount over the preceding 10s 过去十秒钟流量的一半<br />
3. a fifth of that over the whole of the last 40s 过去40秒钟流量的五分之一</p>
<p>底下3行<br />
TX：发送流量<br />
RX：接收流量<br />
TOTAL：总流量<br />
cumm：运行iftop以来的总流量<br />
peak：峰值流量<br />
rates：分别表示过去 2s 10s 40s时间内网卡总的平均流量</p>
<p>按h可以得到帮助，从帮助回到流量图也是按h<br />
按流量排序</p>
<h3>iftop界面相关说明</h3>
<p>界面上面显示的是类似刻度尺的刻度范围，为显示流量图形的长条作标尺用的。</p>
<p>中间的&lt;= =&gt;这两个左右箭头，表示的是流量的方向。</p>
<p>TX：发送流量<br />
RX：接收流量<br />
TOTAL：总流量<br />
Cumm：运行iftop到目前时间的总流量<br />
peak：流量峰值<br />
rates：分别表示过去 2s 10s 40s 的平均流量</p>
<h3>iftop相关参数</h3>
<h3>常用的参数</h3>
<p>-i设定监测的网卡，如：# iftop -i eth1</p>
<p>-B 以bytes为单位显示流量(默认是bits)，如：# iftop -B</p>
<p>-n使host信息默认直接都显示IP，如：# iftop -n</p>
<p>-N使端口信息默认直接都显示端口号，如: # iftop -N</p>
<p>-F显示特定网段的进出流量，如# iftop -F 10.10.1.0/24或# iftop -F 10.10.1.0/255.255.255.0</p>
<p>-h（display this message），帮助，显示参数信息</p>
<p>-p使用这个参数后，中间的列表显示的本地主机信息，出现了本机以外的IP信息;</p>
<p>-b使流量图形条默认就显示;</p>
<p>-f这个暂时还不太会用，过滤计算包用的;</p>
<p>-P使host信息及端口信息默认就都显示;</p>
<p>-m设置界面最上边的刻度的最大值，刻度分五个大段显示，例：# iftop -m 100M</p>
<h3>进入iftop画面后的一些操作命令(注意大小写)</h3>
<p>按h切换是否显示帮助;</p>
<p>按n切换显示本机的IP或主机名;</p>
<p>按s切换是否显示本机的host信息;</p>
<p>按d切换是否显示远端目标主机的host信息;</p>
<p>按t切换显示格式为2行/1行/只显示发送流量/只显示接收流量;</p>
<p>按N切换显示端口号或端口服务名称;</p>
<p>按S切换是否显示本机的端口信息;</p>
<p>按D切换是否显示远端目标主机的端口信息;</p>
<p>按p切换是否显示端口信息;</p>
<p>按P切换暂停/继续显示;</p>
<p>按b切换是否显示平均流量图形条;</p>
<p>按B切换计算2秒或10秒或40秒内的平均流量;</p>
<p>按T切换是否显示每个连接的总流量;</p>
<p>按l打开屏幕过滤功能，输入要过滤的字符，比如ip,按回车后，屏幕就只显示这个IP相关的流量信息;</p>
<p>按L切换显示画面上边的刻度;刻度不同，流量图形条会有变化;</p>
<p>按j或按k可以向上或向下滚动屏幕显示的连接记录;</p>
<p>按1或2或3可以根据右侧显示的三列流量数据进行排序;</p>
<p>按&lt;根据左边的本机名或IP排序;</p>
<p>按&gt;根据远端目标主机的主机名或IP排序;</p>
<p>按o切换是否固定只显示当前的连接;</p>
<p>按f可以编辑过滤代码，这是翻译过来的说法，我还没用过这个！</p>
<p>按!可以使用shell命令，这个没用过！没搞明白啥命令在这好用呢！</p>
<p>按q退出监控。</p>
<h2>常见问题</h2>
<p>1、make: yacc: Command not found<br />
make: *** [grammar.c] Error 127</p>
<p>解决方法：apt-get install byacc   /   yum install byacc</p>
<p>2、configure: error: Curses! Foiled again!<br />
(Can&#8217;t find a curses library supporting mvchgat.)<br />
Consider installing ncurses.</p>
<p>解决方法：apt-get install libncurses5-dev  /    yum  install ncurses-devel</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;"><span>主要用来显示本机网络流量情况及各相互通信的流量集合，如单独同那台机器间的流量大小，非常适合于代理服务器和iptables服务器使用</span></div>
Here is no comments yet by the time  your rss reader get this, Do you want to be the first commentor? Hurry up ]]></content:encoded>
			<wfw:commentRss>http://xuun.net/2010/09/04/install-iftop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>国米球迷适合做男友的十个理由</title>
		<link>http://xuun.net/2010/05/23/10-reasons-to-be-anerazzurris-girlfriend/</link>
		<comments>http://xuun.net/2010/05/23/10-reasons-to-be-anerazzurris-girlfriend/#comments</comments>
		<pubDate>Sun, 23 May 2010 15:41:39 +0000</pubDate>
		<dc:creator>Xuun</dc:creator>
				<category><![CDATA[关于国米]]></category>

		<guid isPermaLink="false">http://xuun.net/?p=1401</guid>
		<description><![CDATA[1.他更懂得欣赏你的缺点，而不仅仅是优点，有一天你会明白，人性本是由一个个缺点构成，当你做错事的时候，他会对着你一笑，说：“没关系，下次再来。” 2.他的身体里流淌着坚强的血液，这种男人完美地诠释了什么叫：“你尽可以消灭他 但就是不能打败他。” 3.他总是对 明天充满了憧憬和期待，每一天清晨他都会搂着你，看着窗外的朝阳说：“看，又是崭新的一天。” 4.他更加古典，更加深沉，更加具有一种与 生俱来的悲剧美，当他挥舞长矛挑战风车的时候，不要笑他，因为你知道错的并不是他，而是一个男人的精神和信仰。 5.无论你曾经怎样伤害过 他，他总是会原谅你，包容你，因为他坚信你是他此生唯一的爱人。 6.当他在角落里独自品味失败的痛楚时，记得走过去安慰他，因为没有人比 他更加渴望胜利。 7.无论过往的伤痛如何刻骨铭心，昔日的伤痕如何难以愈合，他总是会带着你重新上路，请记住，他对你永远不会放弃。 8. 当他欢呼雀跃地庆祝胜利时，别管这胜利看起来是否微不足道，走过去陪他喝一杯，分享他的快乐，让他知道你感受到了他的爱，因为他所做的一切都是为了你。 9. 胜不骄，败不馁，他不会因为一时的得失对你有任何的改变，总是有一种男人，无论何时何地，只要当你需要他时，他就会在那里。 10.人生 短暂，岁月无声，也许此时你身边的一切，总有一天都会褪色，消散，远走，但请记住，总有一种爱，一种信仰，一种男人——叫做永恒。 By the time your rss reader get this post here is 15 comments ,Welcome you come to leave your opinion !]]></description>
			<content:encoded><![CDATA[<p>1.他更懂得欣赏你的缺点，而不仅仅是优点，有一天你会明白，人性本是由一个个缺点构成，当你做错事的时候，他会对着你一笑，说：“没关系，下次再来。”</p>
<p>2.他的身体里流淌着坚强的血液，这种男人完美地诠释了什么叫：“你尽可以消灭他 但就是不能打败他。”</p>
<p>3.他总是对 明天充满了憧憬和期待，每一天清晨他都会搂着你，看着窗外的朝阳说：“看，又是崭新的一天。”</p>
<p>4.他更加古典，更加深沉，更加具有一种与 生俱来的悲剧美，当他挥舞长矛挑战风车的时候，不要笑他，因为你知道错的并不是他，而是一个男人的精神和信仰。</p>
<p>5.无论你曾经怎样伤害过 他，他总是会原谅你，包容你，因为他坚信你是他此生唯一的爱人。</p>
<p>6.当他在角落里独自品味失败的痛楚时，记得走过去安慰他，因为没有人比 他更加渴望胜利。</p>
<p>7.无论过往的伤痛如何刻骨铭心，昔日的伤痕如何难以愈合，他总是会带着你重新上路，请记住，他对你永远不会放弃。</p>
<p>8. 当他欢呼雀跃地庆祝胜利时，别管这胜利看起来是否微不足道，走过去陪他喝一杯，分享他的快乐，让他知道你感受到了他的爱，因为他所做的一切都是为了你。</p>
<p>9.  胜不骄，败不馁，他不会因为一时的得失对你有任何的改变，总是有一种男人，无论何时何地，只要当你需要他时，他就会在那里。</p>
<p>10.人生 短暂，岁月无声，也许此时你身边的一切，总有一天都会褪色，消散，远走，但请记住，总有一种爱，一种信仰，一种男人——叫做永恒。</p>
By the time  your rss reader get this post here is <strong> 15 </strong>comments ,Welcome you come to leave your opinion !]]></content:encoded>
			<wfw:commentRss>http://xuun.net/2010/05/23/10-reasons-to-be-anerazzurris-girlfriend/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>搬家咯</title>
		<link>http://xuun.net/2010/04/25/move-house/</link>
		<comments>http://xuun.net/2010/04/25/move-house/#comments</comments>
		<pubDate>Sat, 24 Apr 2010 17:20:43 +0000</pubDate>
		<dc:creator>Xuun</dc:creator>
				<category><![CDATA[杂七杂八]]></category>

		<guid isPermaLink="false">http://xuun.net/?p=1396</guid>
		<description><![CDATA[新起点，新开始，fighting！ By the time your rss reader get this post here is 4 comments ,Welcome you come to leave your opinion !]]></description>
			<content:encoded><![CDATA[<p>新起点，新开始，fighting！</p>
By the time  your rss reader get this post here is <strong> 4 </strong>comments ,Welcome you come to leave your opinion !]]></content:encoded>
			<wfw:commentRss>http://xuun.net/2010/04/25/move-house/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>VPS命令备忘 老鸟请无视</title>
		<link>http://xuun.net/2010/03/09/vps-note/</link>
		<comments>http://xuun.net/2010/03/09/vps-note/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 02:45:38 +0000</pubDate>
		<dc:creator>Xuun</dc:creator>
				<category><![CDATA[关于互联网IT]]></category>

		<guid isPermaLink="false">http://xuun.net/?p=1319</guid>
		<description><![CDATA[配置80端口 看了好几个页面内容都有错，下面是正确方法： #/sbin/iptables -I INPUT -p tcp &#8211;dport 80 -j ACCEPT #/sbin/iptables -I INPUT -p tcp &#8211;dport 22 -j ACCEPT 然 后保存： #/etc/rc.d/init.d/iptables save 再查看是否已经有了： [root@vcentos ~]# /etc/init.d/iptables status Table: filter Chain INPUT (policy ACCEPT) num  target     prot opt source               destination 1    ACCEPT     udp  &#8211;  0.0.0.0/0            0.0.0.0/0           udp dpt:80 2    ACCEPT     tcp  &#8211;  0.0.0.0/0            0.0.0.0/0           [...]]]></description>
			<content:encoded><![CDATA[<p>配置80端口</p>
<p>看了好几个页面内容都有错，下面是正确方法：<br />
#/sbin/iptables -I INPUT -p tcp &#8211;dport 80 -j  ACCEPT<br />
#/sbin/iptables -I INPUT -p tcp &#8211;dport 22 -j ACCEPT</p>
<p>然 后保存：<br />
#/etc/rc.d/init.d/iptables save</p>
<p>再查看是否已经有了：<br />
[root@vcentos  ~]# /etc/init.d/iptables status<br />
Table: filter<br />
Chain INPUT  (policy ACCEPT)<br />
num  target     prot opt source                destination<br />
1    ACCEPT     udp  &#8211;  0.0.0.0/0             0.0.0.0/0           udp dpt:80<br />
2    ACCEPT     tcp  &#8211;   0.0.0.0/0            0.0.0.0/0           tcp dpt:80<br />
3     RH-Firewall-1-INPUT  all  &#8211;  0.0.0.0/0            0.0.0.0/0</p>
<p>Chain  FORWARD (policy ACCEPT)<br />
num  target     prot opt  source               destination<br />
1    RH-Firewall-1-INPUT   all  &#8211;  0.0.0.0/0            0.0.0.0/0</p>
<p>==============================================================</p>
<p>Centos常用配置文件:</p>
<p>(1)/etc/profile ,系统级的环境变量和启动程序配置,修改后对所有用户都有效</p>
<p>(2)/etc/rc.local ，这个脚本将在开机启动的时候，自动运行，可放置一些需要每次开机自启动的程序如tomcat,mysql,oracle</p>
<p>这个在opensuse中 对应的是/etc/init.d/boot.local这个文件</p>
Here is no comments yet by the time  your rss reader get this, Do you want to be the first commentor? Hurry up ]]></content:encoded>
			<wfw:commentRss>http://xuun.net/2010/03/09/vps-note/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>一句简单命令重启nginx</title>
		<link>http://xuun.net/2010/02/16/nginx-restart/</link>
		<comments>http://xuun.net/2010/02/16/nginx-restart/#comments</comments>
		<pubDate>Tue, 16 Feb 2010 05:41:04 +0000</pubDate>
		<dc:creator>Xuun</dc:creator>
				<category><![CDATA[关于服务器域名]]></category>

		<guid isPermaLink="false">http://xuun.net/?p=1314</guid>
		<description><![CDATA[最近我的多个VPS经常出现502错误，经常需要重启nginx，但网上的很多教程都需要繁琐的启动脚本，远不如apache的重启命令那么简单。 但研究了一下nginx帮助后发现，有-s参数可对nginx服务进行管理： # /usr/local/nginx/sbin/nginx -h nginx version: nginx/0.7.63 Usage: nginx [-?hvVt] [-s signal] [-c filename] [-p prefix] [-g directives] Options: -?,-h : this help -v : show version and exit -V : show version and configure options then exit -t : test configuration and exit -s signal : send signal to a master process: stop, [...]]]></description>
			<content:encoded><![CDATA[<p>最近我的多个VPS经常出现502错误，经常需要重启nginx，但网上的很多教程都需要繁琐的启动脚本，远不如apache的重启命令那么简单。<br />
但研究了一下nginx帮助后发现，有-s参数可对nginx服务进行管理：<span id="more-1314"></span><br />
# /usr/local/nginx/sbin/nginx -h<br />
nginx version: nginx/0.7.63<br />
Usage: nginx [-?hvVt] [-s signal] [-c filename] [-p prefix] [-g directives]</p>
<p>Options:<br />
-?,-h         : this help<br />
-v            : show version and exit<br />
-V            : show version and configure options then exit<br />
-t            : test configuration and exit<br />
<span style="color: #ff0000;">-s signal     : send signal to a master process: stop, quit, reopen, reload</span><br />
-p prefix     : set prefix path (default: /usr/local/nginx/)<br />
-c filename   : set configuration file (default: conf/nginx.conf)<br />
-g directives : set global directives out of configuration file</p>
<p>于是我执行<br />
# /usr/local/nginx/sbin/nginx -s <span style="color: #ff0000;"> reload</span><br />
nginx已经重启成功</p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 0px; width: 1px; height: 1px; overflow: hidden;"># /usr/local/nginx/sbin/nginx -h<br />
nginx version: nginx/0.7.63<br />
Usage: nginx [-?hvVt] [-s signal] [-c filename] [-p prefix] [-g directives]</p>
<p>Options:<br />
-?,-h         : this help<br />
-v            : show version and exit<br />
-V            : show version and configure options then exit<br />
-t            : test configuration and exit<br />
-s signal     : send signal to a master process: stop, quit, reopen, reload<br />
-p prefix     : set prefix path (default: /usr/local/nginx/)<br />
-c filename   : set configuration file (default: conf/nginx.conf)<br />
-g directives : set global directives out of configuration file</p>
</div>
By the time  your rss reader get this post here is <strong> 1 </strong>comments ,Welcome you come to leave your opinion !]]></content:encoded>
			<wfw:commentRss>http://xuun.net/2010/02/16/nginx-restart/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Never Forget</title>
		<link>http://xuun.net/2010/01/21/never-forget/</link>
		<comments>http://xuun.net/2010/01/21/never-forget/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 08:08:04 +0000</pubDate>
		<dc:creator>Xuun</dc:creator>
				<category><![CDATA[杂七杂八]]></category>

		<guid isPermaLink="false">http://xuun.net/?p=1305</guid>
		<description><![CDATA[你越想知道自己是不是已经忘记的时候，你心里反而记得更清楚，当你不能够再拥有，你惟一可以做的就是令自己不要忘记。 ﻿ By the time your rss reader get this post here is 6 comments ,Welcome you come to leave your opinion !]]></description>
			<content:encoded><![CDATA[<p><img title="f" src="http://xuun.net/wp-content/uploads/2010/02/addc_5468251420100210194644095_640.jpg" alt="" width="600" height="440" /></p>
<p>你越想知道自己是不是已经忘记的时候，你心里反而记得更清楚，当你不能够再拥有，你惟一可以做的就是令自己不要忘记。</p>
<p>﻿</p>
By the time  your rss reader get this post here is <strong> 6 </strong>comments ,Welcome you come to leave your opinion !]]></content:encoded>
			<wfw:commentRss>http://xuun.net/2010/01/21/never-forget/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Centos(Linux)操作系统下使用MegaCli等工具查看Raid磁盘阵列状态</title>
		<link>http://xuun.net/2009/12/20/check-raid-status-by-megacli/</link>
		<comments>http://xuun.net/2009/12/20/check-raid-status-by-megacli/#comments</comments>
		<pubDate>Sun, 20 Dec 2009 03:42:03 +0000</pubDate>
		<dc:creator>Xuun</dc:creator>
				<category><![CDATA[关于互联网IT]]></category>
		<category><![CDATA[MegaCli]]></category>
		<category><![CDATA[raid]]></category>

		<guid isPermaLink="false">http://xuun.net/?p=1285</guid>
		<description><![CDATA[以下是组建服务器raid时查到的资料，做下笔记，没兴趣的朋友请无视。 Linux下查看软、硬raid信息的方法。 软件raid：只能通过Linux系统本身来查看 cat /proc/mdstat 可以看到raid级别，状态等信息。 硬件raid： 最佳的办法是通过已安装的raid厂商的管理工具来查看，有cmdline，也有图形界面。如Adaptec公司的硬件卡就可以通过下面的命令进行查看： # /usr/dpt/raidutil -L all 可以看到非常详细的信息。 当然更多情况是没有安装相应的管理工具，只能依靠Linux本身的话一般我知道的是两种方式： # dmesg &#124;grep -i raid # cat /proc/scsi/scsi 显示的信息差不多，raid的厂商，型号，级别，但无法查看各块硬盘的信息。 另外经过实际测试，Dell的服务器可以通过命令来显示，而HP、IBM等的服务器通过上面的命令是显示不出的。只能够通过装硬件厂商的管理工具来查看DELL的BMC可以查看 cat /proc/scsi/scsi 可以看到是SCSI上的设备。一般情况可以看到RAID级别。lspci可以看到RAID卡的型号。 ========================================================== rpm -ivh MegaCli-1.01.09-0.i386.rpm 命令使用： MegaCli -LDInfo -Lall -aALL 查raid级别 MegaCli -AdpAllInfo -aALL 查raid卡信息 MegaCli -PDList -aALL 查看硬盘信息 MegaCli -AdpBbuCmd -aAll 查看电池信息 MegaCli -FwTermLog -Dsply -aALL 查看raid卡日志 MegaCli常用参数介绍 [...]]]></description>
			<content:encoded><![CDATA[<div class="g_blog_list">
<div id="blogtext_fks_083066087080086070082085080095087083085067086082095070" class="g_t_center g_c_pdin g_p_center c07 content">
<div class="ns_content">
<p>以下是组建服务器raid时查到的资料，做下笔记，没兴趣的朋友请无视。</p>
<p>Linux下查看软、硬raid信息的方法。</p>
<p>软件raid：只能通过Linux系统本身来查看</p>
<p>cat /proc/mdstat</p>
<p>可以看到raid级别，状态等信息。</p>
<p>硬件raid： 最佳的办法是通过已安装的raid厂商的管理工具来查看，有cmdline，也有图形界面。如Adaptec公司的硬件卡就可以通过下面的命令进行查看：</p>
<p># /usr/dpt/raidutil -L all</p>
<p>可以看到非常详细的信息。</p>
<p>当然更多情况是没有安装相应的管理工具，只能依靠Linux本身的话一般我知道的是两种方式：</p>
<p># dmesg |grep -i raid</p>
<p># cat /proc/scsi/scsi</p>
<p>显示的信息差不多，raid的厂商，型号，级别，但无法查看各块硬盘的信息。</p>
<p>另外经过实际测试，Dell的服务器可以通过命令来显示，而HP、IBM等的服务器通过上面的命令是显示不出的。只能够通过装硬件厂商的管理工具来查看DELL的BMC可以查看</p>
<p>cat /proc/scsi/scsi</p>
<p>可以看到是SCSI上的设备。一般情况可以看到RAID级别。lspci可以看到RAID卡的型号。<span id="more-1285"></span></p>
<p>==========================================================</p>
</div>
</div>
</div>
<p>rpm -ivh MegaCli-1.01.09-0.i386.rpm</p>
<p>命令使用：<br />
MegaCli -LDInfo -Lall -aALL  查raid级别<br />
MegaCli -AdpAllInfo -aALL 查raid卡信息<br />
MegaCli -PDList -aALL  查看硬盘信息<br />
MegaCli -AdpBbuCmd -aAll 查看电池信息<br />
MegaCli -FwTermLog -Dsply -aALL  查看raid卡日志</p>
<p><strong>MegaCli常用参数介绍</strong><br />
MegaCli -adpCount 【显示适配器个数】<br />
MegaCli -AdpGetTime –aALL 【显示适配器时间】<br />
MegaCli -AdpAllInfo -aAll     【显示所有适配器信息】<br />
MegaCli -LDInfo -LALL -aAll    【显示所有逻辑磁盘组信息】<br />
MegaCli -PDList -aAll    【显示所有的物理信息】<br />
MegaCli -AdpBbuCmd -GetBbuStatus -aALL |grep ‘Charger Status’ 【查看充电状态】<br />
MegaCli -AdpBbuCmd -GetBbuStatus -aALL【显示BBU状态信息】<br />
MegaCli -AdpBbuCmd -GetBbuCapacityInfo -aALL【显示BBU容量信息】<br />
MegaCli -AdpBbuCmd -GetBbuDesignInfo -aALL    【显示BBU设计参数】<br />
MegaCli -AdpBbuCmd -GetBbuProperties -aALL    【显示当前BBU属性】<br />
MegaCli -cfgdsply -aALL    【显示Raid卡型号，Raid设置，Disk相关信息】</p>
<p><strong>磁带状态的变化，从拔盘，到插盘的过程中。</strong><br />
Device         |Normal|Damage|Rebuild|Normal<br />
Virtual Drive     |Optimal|Degraded|Degraded|Optimal<br />
Physical Drive     |Online|Failed –&gt; Unconfigured|Rebuild|Online</p>
<p>============================================</p>
<p>MegaCli 常见用法<br />
2008-10-24 09:32<br />
1、准备</p>
<p>新版本的 MegaCli-1.01.24-0.i386.rpm 会把程序安装在/opt下，可以自定义安装目录，例如：</p>
<p>rpm &#8211;relocate /opt/=/usr/sbin/ -i MegaCli-1.01.24-0.i386.rpm</p>
<p>即把安装目录 /opt 替换成 /usr/sbin。<br />
查看所有物理磁盘信息</p>
<p>MegaCli -PDList -aALL</p>
<p>Adapter #0</p>
<p>Enclosure Number: 1<br />
Slot Number: 5<br />
Device Id: 5<br />
Sequence Number: 2<br />
Media Error Count: 0<br />
Other Error Count: 0<br />
Predictive Failure Count: 0<br />
Last Predictive Failure Event Seq Number: 0<br />
Raw Size: 140014MB [0x11177328 Sectors]<br />
Non Coerced Size: 139502MB [0x11077328 Sectors]<br />
Coerced Size: 139392MB [0x11040000 Sectors]<br />
Firmware state: Hotspare<br />
SAS Address(0): 0x5000c50008e5cca9<br />
SAS Address(1): 0&#215;0<br />
Inquiry Data: SEAGATE ST3146855SS     S5273LN4Y1X0<br />
&#8230;..</p>
<p>2、查看磁盘缓存策略</p>
<p>MegaCli -LDGetProp -Cache -L0 -a0</p>
<p>Adapter 0-VD 0: Cache Policy:WriteBack, ReadAheadNone, Direct</p>
<p>or</p>
<p>MegaCli -LDGetProp -Cache -L1 -a0</p>
<p>Adapter 0-VD 1: Cache Policy:WriteBack, ReadAheadNone, Direct</p>
<p>or</p>
<p>MegaCli -LDGetProp -Cache -LALL -a0</p>
<p>Adapter 0-VD 0: Cache Policy:WriteBack, ReadAheadNone, Direct<br />
Adapter 0-VD 1: Cache Policy:WriteBack, ReadAheadNone, Direct</p>
<p>or</p>
<p>MegaCli -LDGetProp -Cache -LALL -aALL</p>
<p>Adapter 0-VD 0: Cache Policy:WriteBack, ReadAheadNone, Direct<br />
Adapter 0-VD 1: Cache Policy:WriteBack, ReadAheadNone, Direct</p>
<p>or</p>
<p>MegaCli -LDGetProp -DskCache -LALL -aALL</p>
<p>Adapter 0-VD 0: Disk Write Cache : Disk&#8217;s Default<br />
Adapter 0-VD 1: Disk Write Cache : Disk&#8217;s Default</p>
<p>3、设置磁盘缓存策略</p>
<p>缓存策略解释：</p>
<p>WT    (Write through<br />
WB    (Write back)<br />
NORA  (No read ahead)<br />
RA    (Read ahead)<br />
ADRA  (Adaptive read ahead)<br />
Cached<br />
Direct</p>
<p>例子：</p>
<p>MegaCli -LDSetProp WT|WB|NORA|RA|ADRA -L0 -a0</p>
<p>or</p>
<p>MegaCli -LDSetProp -Cached|-Direct -L0 -a0</p>
<p>or</p>
<p>enable / disable disk cache</p>
<p>MegaCli -LDSetProp -EnDskCache|-DisDskCache -L0 -a0</p>
<p>4、创建/删除 阵列<br />
4.1 创建一个 raid5 阵列，由物理盘 2,3,4 构成，该阵列的热备盘是物理盘 5</p>
<p>MegaCli -CfgLdAdd -r5 [1:2,1:3,1:4] WB Direct -Hsp[1:5] -a0</p>
<p>4.2 创建阵列，不指定热备</p>
<p>MegaCli -CfgLdAdd -r5 [1:2,1:3,1:4] WB Direct -a0</p>
<p>4.3 删除阵列</p>
<p>MegaCli -CfgLdDel -L1 -a0</p>
<p>4.4 在线添加磁盘</p>
<p>MegaCli -LDRecon -Start -r5 -Add -PhysDrv[1:4] -L1 -a0</p>
<p>意思是，重建逻辑磁盘组1，raid级别是5，添加物理磁盘号：1:4。重建完后，新添加的物理磁盘会自动处于重建(同步)状态，这个 时候 fdisk -l是看不到阵列的空间变大的，只有在系统重启后才能看见。如果该阵列下只有一个分区的话，那么该分区也直接增大，如果有多个分区，不知道该怎么分配新增空间了？有空试试看，呵呵<br />
5、查看阵列初始化信息<br />
5.1 阵列创建完后，会有一个初始化同步块的过程，可以看看其进度。</p>
<p>MegaCli -LDInit -ShowProg -LALL -aALL</p>
<p>或者以动态可视化文字界面显示</p>
<p>MegaCli -LDInit -ProgDsply -LALL -aALL</p>
<p>5.2 查看阵列后台初始化进度</p>
<p>MegaCli -LDBI -ShowProg -LALL -aALL</p>
<p>或者以动态可视化文字界面显示</p>
<p>MegaCli -LDBI -ProgDsply -LALL -aALL</p>
<p>6、创建全局热备</p>
<p>指定第 5 块盘作为全局热备</p>
<p>MegaCli -PDHSP -Set [-EnclAffinity] [-nonRevertible] -PhysDrv[1:5] -a0</p>
<p>也可以指定为某个阵列的专用热备</p>
<p>MegaCli -PDHSP -Set [-Dedicated [-Array1]] [-EnclAffinity] [-nonRevertible] -PhysDrv[1:5] -a0</p>
<p>7、删除全局热备</p>
<p>MegaCli -PDHSP -Rmv -PhysDrv[1:5] -a0</p>
<p>8、将某块物理盘下线/上线</p>
<p>MegaCli -PDOffline -PhysDrv [1:4] -a0</p>
<p>MegaCli -PDOnline -PhysDrv [1:4] -a0</p>
<p>9、查看物理磁盘重建进度</p>
<p>MegaCli -PDRbld -ShowProg -PhysDrv [1:5] -a0</p>
<p>或者以动态可视化文字界面显示</p>
<p>MegaCli -PDRbld -ProgDsply -PhysDrv [1:5] -a0</p>
<p>下载地址： http://gcolpart.evolix.net/debian/misc/dell/MegaCli-1.01.24-0.i386.rpm</p>
<p>=============================================</p>
<p>Dell 各系列的机器，只要是 PERC 的RAID控制器，都可以用 MegaRC 这个命令行工具来检测</p>
<p>MegaRC for Windows</p>
<p>http://www.lsi.com/files/support/rsa/utilities/megaconf/ut_win_megarc_1.10.zip</p>
<p>解压缩后，就是 megarc.exe</p>
<p>MegaRC for Linux</p>
<p>http://www.lsi.com/files/support/rsa/utilities/megaconf/ut_linux_megarc_1.11.zip</p>
<p>用 unzip 解压缩出来后，再 chmod 700 megarc*</p>
<p>Windows 和 Linux 下的参数都一样：</p>
<p>megarc -dispcfg -a0<br />
./megarc -dispcfg -a0</p>
<p>输出结果如下：</p>
<p>Logical Drive : 0( Adapter: 0 ): Status: OPTIMAL<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
SpanDepth :01      RaidLevel: 5 RdAhead : Adaptive Cache<br />
StripSz    :064KB    Stripes : 4 WrPolicy: WriteBack</p>
<p>Logical Drive 0 : SpanLevel_0 Disks<br />
Chnl Target StartBlock    Blocks       Physical Target St<br />
&#8212;- &#8212;&#8212; &#8212;&#8212;&#8212;-    &#8212;&#8212;       &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
0       00     0&#215;00000000    0x0887c000    ONLINE<br />
0       01     0&#215;00000000    0x0887c000    ONLINE<br />
0       02     0&#215;00000000    0x0887c000    ONLINE<br />
0       03     0&#215;00000000    0x0887c000    ONLINE</p>
<p>如果想要通过图形界面来查看，必须装那个大家伙了： Dell OpenManage Server Administrator<br />
Linux下有90多M，Win下的有100多M。</p>
<p>Dell 在 Linux 下还有一个更好的工具：raidmon (for win 的目前还没发现)</p>
<p>目前支持 IDE / EIDE, SCSI RAID: LSI Logic CERC ATA 100, PERC 4/DC, PERC 4/Di, PERC 4/SC, LSI Logic (formerly AMI) PERC3/DC, PERC3/DCL, PERC3/QC, PERC3/SC</p>
<p>perc-cerc-apps-6.03-A06.tar.gz</p>
<p>http://support.dell.com/support/downloads/download.aspx?c=us&amp;l=en&amp;s=gen&amp;releaseid=R71524&amp;formatcnt=2&amp;fileid=92846</p>
<p>解包下来后，有个 Megamon-4.0-0a.i386.rpm</p>
<p>安装结束后 /etc/init.d/raidmon start</p>
<p># tail -f /var/log/megaserv.log 就可以看到检测报告。有问题的时候，此log中会有体现。</p>
<p>还可以编辑 /etc/megamon.conf ，将管理员的信箱加在文件末尾，这样检测到错误的时候，会自动发送邮件。<br />
(mail.35.cn 好象当成垃圾邮件过滤掉了)</p>
<p>因此建议 megarc(手工) 配合 raidmon(自动) 是个比较好的解决方案。</p>
<p>Dell 1950 的 PERC 5/i SAS RAID 控制器用这个命令行工具：</p>
<p>MegaCLI for Linux</p>
<p>http://www.lsi.com/support/downloads/megaraid/miscellaneous/Linux_MegaCLI_1.01.24.zip</p>
<p>MegaCLI for Windows</p>
<p>http://www.lsi.com/support/downloads/megaraid/miscellaneous/Windows_MegaCLI_1.01.25.zip</p>
<p># unzip Linux_MegaCLI_1.01.24.zip<br />
# unzip MegaCliLin.zip<br />
# rpm -ivh MegaCli-1.01.24-0.i386.rpm</p>
<p># /opt/MegaCli -CfgDsply -aALL</p>
<p>输出如下：</p>
<p>==============================================================================<br />
Adapter: 0<br />
Product Name: PERC 5/i Integrated<br />
Memory: 256MB<br />
BBU: Present<br />
Serial No: 12345<br />
==============================================================================</p>
<p>RAID Level: Primary-1, Secondary-0, RAID Level Qualifier-0<br />
Size:285568MB<br />
State: Optimal</p>
<p>Physical Disk: 0<br />
Media Error Count: 0<br />
Other Error Count: 0<br />
Firmware state: Online</p>
<p>Physical Disk: 1<br />
Media Error Count: 0<br />
Other Error Count: 0<br />
Firmware state: Online</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 42px; width: 1px; height: 1px;">
<div class="tit">MegaCli 常见用法</div>
<div class="date">2008-10-24  09:32</div>
<div id="blog_text" class="cnt">
<h1>1、准备</h1>
<p>新版本的 MegaCli-1.01.24-0.i386.rpm 会把程序安装在/opt下，可以自定义安装目录，例如：</p>
<pre class="plaintext_pre">rpm --relocate /opt/=/usr/sbin/ -i MegaCli-1.01.24-0.i386.rpm</pre>
<p>即把安装目录 /opt 替换成 /usr/sbin。</p>
<h1>查看所有物理磁盘信息</h1>
<pre class="plaintext_pre">MegaCli -PDList -aALL

Adapter #0

Enclosure Number: 1
Slot Number: 5
Device Id: 5
Sequence Number: 2
Media Error Count: 0
Other Error Count: 0
Predictive Failure Count: 0
Last Predictive Failure Event Seq Number: 0
Raw Size: 140014MB [0x11177328 Sectors]
Non Coerced Size: 139502MB [0x11077328 Sectors]
Coerced Size: 139392MB [0x11040000 Sectors]
Firmware state: Hotspare
SAS Address(0): 0x5000c50008e5cca9
SAS Address(1): 0x0
Inquiry Data: SEAGATE ST3146855SS     S5273LN4Y1X0
.....</pre>
<h1>2、查看磁盘缓存策略</h1>
<pre class="plaintext_pre">MegaCli -LDGetProp -Cache -L0 -a0

Adapter 0-VD 0: Cache Policy:WriteBack, ReadAheadNone, Direct</pre>
<p>or</p>
<pre class="plaintext_pre">MegaCli -LDGetProp -Cache -L1 -a0

Adapter 0-VD 1: Cache Policy:WriteBack, ReadAheadNone, Direct</pre>
<p>or</p>
<pre class="plaintext_pre">MegaCli -LDGetProp -Cache -LALL -a0

Adapter 0-VD 0: Cache Policy:WriteBack, ReadAheadNone, Direct
Adapter 0-VD 1: Cache Policy:WriteBack, ReadAheadNone, Direct</pre>
<p>or</p>
<pre class="plaintext_pre">MegaCli -LDGetProp -Cache -LALL -aALL

Adapter 0-VD 0: Cache Policy:WriteBack, ReadAheadNone, Direct
Adapter 0-VD 1: Cache Policy:WriteBack, ReadAheadNone, Direct</pre>
<p>or</p>
<pre class="plaintext_pre">MegaCli -LDGetProp -DskCache -LALL -aALL

Adapter 0-VD 0: Disk Write Cache : Disk's Default
Adapter 0-VD 1: Disk Write Cache : Disk's Default</pre>
<h1>3、设置磁盘缓存策略</h1>
<p>缓存策略解释：</p>
<pre class="plaintext_pre">WT    (Write through
WB    (Write back)
NORA  (No read ahead)
RA    (Read ahead)
ADRA  (Adaptive read ahead)
Cached
Direct</pre>
<p>例子：</p>
<pre class="plaintext_pre">MegaCli -LDSetProp WT|WB|NORA|RA|ADRA -L0 -a0</pre>
<p>or</p>
<pre class="plaintext_pre">MegaCli -LDSetProp -Cached|-Direct -L0 -a0</pre>
<p>or</p>
<p>enable / disable disk cache</p>
<pre class="plaintext_pre">MegaCli -LDSetProp -EnDskCache|-DisDskCache -L0 -a0</pre>
<h1>4、创建/删除 阵列</h1>
<h2>4.1 创建一个 raid5 阵列，由物理盘 2,3,4 构成，该阵列的热备盘是物理盘 5</h2>
<pre class="plaintext_pre">MegaCli -CfgLdAdd -r5 [1:2,1:3,1:4] WB Direct -Hsp[1:5] -a0</pre>
<h2>4.2 创建阵列，不指定热备</h2>
<pre class="plaintext_pre">MegaCli -CfgLdAdd -r5 [1:2,1:3,1:4] WB Direct -a0</pre>
<h2>4.3 删除阵列</h2>
<pre class="plaintext_pre">MegaCli -CfgLdDel -L1 -a0</pre>
<h2>4.4 在线添加磁盘</h2>
<pre class="plaintext_pre">MegaCli -LDRecon -Start -r5 -Add -PhysDrv[1:4] -L1 -a0</pre>
<p>意思是，重建逻辑磁盘组1，raid级别是5，添加物理磁盘号：1:4。重建完后，新添加的物理磁盘会自动处于重建(同步)状态，这个 时候 fdisk -l是看不到阵列的空间变大的，只有在系统重启后才能看见。如果该阵列下只有一个分区的话，那么该分区也直接增大，如果有多个分区，不知道该怎么分配新增 空间了？有空试试看，呵呵</p>
<h1>5、查看阵列初始化信息</h1>
<h2>5.1 阵列创建完后，会有一个初始化同步块的过程，可以看看其进度。</h2>
<pre class="plaintext_pre">MegaCli -LDInit -ShowProg -LALL -aALL</pre>
<p>或者以动态可视化文字界面显示</p>
<pre class="plaintext_pre">MegaCli -LDInit -ProgDsply -LALL -aALL</pre>
<h2>5.2 查看阵列后台初始化进度</h2>
<pre class="plaintext_pre">MegaCli -LDBI -ShowProg -LALL -aALL</pre>
<p>或者以动态可视化文字界面显示</p>
<pre class="plaintext_pre">MegaCli -LDBI -ProgDsply -LALL -aALL</pre>
<h1>6、创建全局热备</h1>
<p>指定第 5 块盘作为全局热备</p>
<pre class="plaintext_pre">MegaCli -PDHSP -Set [-EnclAffinity] [-nonRevertible] -PhysDrv[1:5] -a0</pre>
<p>也可以指定为某个阵列的专用热备</p>
<pre class="plaintext_pre">MegaCli -PDHSP -Set [-Dedicated [-Array1]] [-EnclAffinity] [-nonRevertible] -PhysDrv[1:5] -a0</pre>
<h1>7、删除全局热备</h1>
<pre class="plaintext_pre">MegaCli -PDHSP -Rmv -PhysDrv[1:5] -a0</pre>
<h1>8、将某块物理盘下线/上线</h1>
<pre class="plaintext_pre">MegaCli -PDOffline -PhysDrv [1:4] -a0</pre>
<pre class="plaintext_pre">MegaCli -PDOnline -PhysDrv [1:4] -a0</pre>
<h1>9、查看物理磁盘重建进度</h1>
<pre class="plaintext_pre">MegaCli -PDRbld -ShowProg -PhysDrv [1:5] -a0</pre>
<p>或者以动态可视化文字界面显示</p>
<pre class="plaintext_pre">MegaCli -PDRbld -ProgDsply -PhysDrv [1:5] -a0

<span style="font-size: small;"><strong><span style="color: #ff0000;">下载地址： http://gcolpart.evolix.net/debian/misc/dell/MegaCli-1.01.24-0.i386.rpm</span></strong></span></pre>
</div>
</div>
By the time  your rss reader get this post here is <strong> 5 </strong>comments ,Welcome you come to leave your opinion !]]></content:encoded>
			<wfw:commentRss>http://xuun.net/2009/12/20/check-raid-status-by-megacli/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>在Centos5.4(RHEL5)上安装Raid驱动</title>
		<link>http://xuun.net/2009/12/18/installing-rhel5-on-raid/</link>
		<comments>http://xuun.net/2009/12/18/installing-rhel5-on-raid/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 16:46:49 +0000</pubDate>
		<dc:creator>Xuun</dc:creator>
				<category><![CDATA[关于互联网IT]]></category>

		<guid isPermaLink="false">http://xuun.net/?p=1280</guid>
		<description><![CDATA[In order to support XEN mode, the system needs to have its Virtualization feature enabled in BIOS as a first step, and XEN software package in the OS needs to be loaded during installation 1) Create a RAID array using the Intel(R) Embedded Server RAID Technology II RAID BIOS Console. 2) Connect USB floppy drive [...]]]></description>
			<content:encoded><![CDATA[<p>In order to support XEN mode, the system needs to have its Virtualization feature enabled in BIOS as a first step, and XEN software package in the OS needs to be loaded during installation</p>
<p>1) Create a RAID array using the Intel(R) Embedded Server RAID Technology II RAID BIOS Console.<br />
2) Connect USB floppy drive and insert the floppy disk with RAID driver<br />
3) Boot your system using RHEL5.0 DVD<br />
4) At boot prompt type &#8220;linux dd noprobe=ata1 noprobe=ata2 noprobe=ata3 noprobe=ata4&#8243;<br />
5) And then you&#8217;ll see a page that shows &#8220;loading usb-storage driver&#8221;, and then it will ask you &#8220;Do you have a driver disk&#8221;. Choose &#8220;Yes&#8221;<br />
6) Then it will ask you which one do you choose as a driver disk, choose &#8220;sda&#8221; which is the USB floppy disk. And then click OK to continue, you&#8217;ll see the message &#8220;Reading driver disk&#8221;,  after it finishes, it will ask &#8220;Do you wish to load any more driver disks?&#8221; choose No if you do not have any more driver to load.<span id="more-1280"></span><br />
7) (If XEN mode feature is needed, the OS installatng KEY is necessary and then XEN software package needs to be loaded)  Then continue with the RHEL automatic installation, you can see that in the page where we select drives to use for installation, you can only see 1 disk (Intel MegaSR), this means the raid is recognized.<br />
8 ) At the last step of the installation (after all the packages are installed) RHEL5 prompts you to reboot. Do not click reboot button. Press Ctr+Alt+F2 to go to the text console prompt.<br />
9) type &#8220;cat /proc/partitions&#8221; you will see some info about the partition.  For example, you might find several rows, one row might include sdb. You might find like this</p>
<p>major    minor    #blocks    name<br />
8    16    1440    sdb</p>
<p>10) type &#8220;mknod /dev/sdb b 8 16&#8243;  (8 and 16 are copied from the major and minor numbers in step #9, so that the numbers could change according to what is seen in step #9)<br />
11) type &#8220;mkdir /temp&#8221;<br />
12) type &#8220;mount /dev/sdb /temp&#8221;<br />
13) type &#8220;ls /temp&#8221; and you can find all the driver files are now in /temp<br />
14) Use cd command to enter /temp directory<br />
15) type &#8220;./replace_ahci.sh&#8221; to execute the script. It will remove ahci from /etc/modprobe.conf and blacklist ahci in /etc/modprobe.d/blacklist (replace_ahci.sh is also an example, and please implement the script even if the *.sh is with other name).<br />
16) Go back to graphic screen and reboot the system in order to finish the installation.</p>
<p><a href="http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;DwnldID=18234&amp;ProdId=2487&amp;lang=eng" target="_blank"><span style="font-family: Arial; font-size: x-small;"><strong>Intel® IT/IR Entry Hardware RAID driver for Linux*</strong></span></a></p>
<p><a href="http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&amp;DwnldID=18266&amp;ProdId=2487&amp;lang=eng" target="_blank"><span style="font-family: Arial; font-size: x-small;"><strong>Intel® ESRT-2 SATA &amp; SAS Software RAID Driver for Linux*</strong></span></a></p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 132px; width: 1px; height: 1px;">
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tbody>
<tr>
<td></td>
<td width="360"><span style="font-family: Arial; font-size: x-small;"><strong>Intel® IT/IR Entry Hardware RAID driver for Linux*</strong></span></td>
<td><img src="http://xuun.net/wp-content/uploads/2009/12/236a_spacer.gif" alt="" width="25" height="1" /></td>
</tr>
</tbody>
</table>
</div>
By the time  your rss reader get this post here is <strong> 4 </strong>comments ,Welcome you come to leave your opinion !]]></content:encoded>
			<wfw:commentRss>http://xuun.net/2009/12/18/installing-rhel5-on-raid/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>姚明也开微博了</title>
		<link>http://xuun.net/2009/10/31/yaoming-twitter/</link>
		<comments>http://xuun.net/2009/10/31/yaoming-twitter/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 06:17:48 +0000</pubDate>
		<dc:creator>Xuun</dc:creator>
				<category><![CDATA[关于NBA]]></category>
		<category><![CDATA[如何访问姚明微博]]></category>
		<category><![CDATA[姚明 Twitter]]></category>
		<category><![CDATA[姚明 微博]]></category>

		<guid isPermaLink="false">http://xuun.net/?p=1275</guid>
		<description><![CDATA[姚明推出了自己的微博，不过不是现在大热的新浪“围脖”，而是国内被封已久的Twitter。 不知情的网友甚至在网易该条新闻的评论页上也抱怨：“网易和姚明真是骗子，根本就没有facebook和twitter这个网站！”，相当搞笑 附上姚明Twitter微博地址：http://twitter.com/yaoming，有兴趣的朋友去follow吧！ By the time your rss reader get this post here is 6 comments ,Welcome you come to leave your opinion !]]></description>
			<content:encoded><![CDATA[<p><a href="http://xuun.net/wp-content/uploads/2009/10/yaoming-twitter.jpg"><img class="aligncenter size-full wp-image-1276" title="yaoming twitter" src="http://xuun.net/wp-content/uploads/2009/10/yaoming-twitter.jpg" alt="yaoming twitter" width="523" height="301" /></a>姚明推出了自己的微博，不过不是现在大热的新浪“围脖”，而是国内被封已久的Twitter。</p>
<p>不知情的网友甚至在网易该条新闻的评论页上也抱怨：“网易和姚明真是骗子，根本就没有facebook和twitter这个网站！”，相当搞笑</p>
<p>附上姚明Twitter微博地址：http://twitter.com/yaoming，有兴趣的朋友去follow吧！</p>
By the time  your rss reader get this post here is <strong> 6 </strong>comments ,Welcome you come to leave your opinion !]]></content:encoded>
			<wfw:commentRss>http://xuun.net/2009/10/31/yaoming-twitter/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>另一只眼看国庆阅兵</title>
		<link>http://xuun.net/2009/10/07/chinas-60th-anniversary-parade/</link>
		<comments>http://xuun.net/2009/10/07/chinas-60th-anniversary-parade/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 08:23:39 +0000</pubDate>
		<dc:creator>Xuun</dc:creator>
				<category><![CDATA[杂七杂八]]></category>

		<guid isPermaLink="false">http://xuun.net/?p=1265</guid>
		<description><![CDATA[By the time your rss reader get this post here is 3 comments ,Welcome you come to leave your opinion !]]></description>
			<content:encoded><![CDATA[<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="640" height="360" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://vimeo.com/moogaloop.swf?clip_id=6853452&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=ffffff&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="640" height="360" src="http://vimeo.com/moogaloop.swf?clip_id=6853452&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=0&amp;color=ffffff&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
By the time  your rss reader get this post here is <strong> 3 </strong>comments ,Welcome you come to leave your opinion !]]></content:encoded>
			<wfw:commentRss>http://xuun.net/2009/10/07/chinas-60th-anniversary-parade/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
