<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>红色小魔鬼</title>
	<atom:link href="http://hhding.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hhding.wordpress.com</link>
	<description>bg5hvf</description>
	<lastBuildDate>Thu, 24 Nov 2011 09:57:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hhding.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>红色小魔鬼</title>
		<link>http://hhding.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hhding.wordpress.com/osd.xml" title="红色小魔鬼" />
	<atom:link rel='hub' href='http://hhding.wordpress.com/?pushpress=hub'/>
		<item>
		<title>带时间信息的bash命令历史</title>
		<link>http://hhding.wordpress.com/2011/11/24/%e5%b8%a6%e6%97%b6%e9%97%b4%e4%bf%a1%e6%81%af%e7%9a%84bash%e5%91%bd%e4%bb%a4%e5%8e%86%e5%8f%b2/</link>
		<comments>http://hhding.wordpress.com/2011/11/24/%e5%b8%a6%e6%97%b6%e9%97%b4%e4%bf%a1%e6%81%af%e7%9a%84bash%e5%91%bd%e4%bb%a4%e5%8e%86%e5%8f%b2/#comments</comments>
		<pubDate>Thu, 24 Nov 2011 09:57:02 +0000</pubDate>
		<dc:creator>Ding Honghui</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hhding.wordpress.com/?p=195</guid>
		<description><![CDATA[有时候，为了跟踪某个问题，要查看什么时候执行过什么命令，但是遗憾的是，默认情况下history命令只给出了执行过的命令，而不知道这个命令是什么时候执行的。 现在，只要在.bashrc里面加上这么一行： export HISTTIMEFORMAT=&#8221;%F %T &#8220; 那么你的所有执行过的历史命令都会记录该命令被执行的时间： dhh@T400:~$ tail .bash_history #1322122049 ssh he #1322122087 ssh pms #1322123436 ssh op #1322123716 ssh pms #1322127848 history dhh@T400:~$ 现在让我们来看看效果： dhh@T400:~$ history &#124; head 14 2011-11-18 11:34:59 ls -lh 15 2011-11-18 11:35:01 clear 16 &#8230; <a href="http://hhding.wordpress.com/2011/11/24/%e5%b8%a6%e6%97%b6%e9%97%b4%e4%bf%a1%e6%81%af%e7%9a%84bash%e5%91%bd%e4%bb%a4%e5%8e%86%e5%8f%b2/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=195&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>有时候，为了跟踪某个问题，要查看什么时候执行过什么命令，但是遗憾的是，默认情况下history命令只给出了执行过的命令，而不知道这个命令是什么时候执行的。</p>
<p>现在，只要在.bashrc里面加上这么一行：</p>
<p>export HISTTIMEFORMAT=&#8221;%F %T &#8220;</p>
<p>那么你的所有执行过的历史命令都会记录该命令被执行的时间：</p>
<p>dhh@T400:~$ tail .bash_history<br />
#1322122049<br />
ssh he<br />
#1322122087<br />
ssh pms<br />
#1322123436<br />
ssh op<br />
#1322123716<br />
ssh pms<br />
#1322127848<br />
history<br />
dhh@T400:~$ </p>
<p>现在让我们来看看效果：</p>
<p>dhh@T400:~$ history | head<br />
   14  2011-11-18 11:34:59 ls -lh<br />
   15  2011-11-18 11:35:01 clear<br />
   16  2011-11-18 11:35:03 ls -lh<br />
   17  2011-11-18 11:41:21 cd work/<br />
   18  2011-11-18 11:41:21 ls<br />
   19  2011-11-18 11:41:24 cd svn<br />
   20  2011-11-18 11:41:24 ls<br />
   21  2011-11-18 11:41:26 cd dev<br />
   22  2011-11-18 11:41:26 ls<br />
   23  2011-11-18 11:41:29 cd build_util/<br />
dhh@T400:~$ </p>
<p>是不是很酷？更可贵的是，它很有用。</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hhding.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hhding.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hhding.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hhding.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hhding.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hhding.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hhding.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hhding.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hhding.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hhding.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hhding.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hhding.wordpress.com/195/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hhding.wordpress.com/195/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hhding.wordpress.com/195/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=195&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hhding.wordpress.com/2011/11/24/%e5%b8%a6%e6%97%b6%e9%97%b4%e4%bf%a1%e6%81%af%e7%9a%84bash%e5%91%bd%e4%bb%a4%e5%8e%86%e5%8f%b2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a579207214741c4374c3051c7a1f19f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hhding</media:title>
		</media:content>
	</item>
		<item>
		<title>syslinux(pxelinux.0) 4.x不支持localboot的解决方法</title>
		<link>http://hhding.wordpress.com/2011/09/18/syslinuxpxelinux-0-4-x%e4%b8%8d%e6%94%af%e6%8c%81localboot%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95/</link>
		<comments>http://hhding.wordpress.com/2011/09/18/syslinuxpxelinux-0-4-x%e4%b8%8d%e6%94%af%e6%8c%81localboot%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Sun, 18 Sep 2011 07:47:09 +0000</pubDate>
		<dc:creator>Ding Honghui</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hhding.wordpress.com/?p=188</guid>
		<description><![CDATA[把原先的 label hd menu label ^h) Boot to Local Hard Disk localboot 0&#215;80 改成： label hd menu label ^h) Boot to Local Hard Disk kernel chain.c32 append hd0 0 chain.c32在syslinux里面有。 最终网络安装的效果图如下：<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=188&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>把原先的</p>
<blockquote><p>label hd<br />
        menu label ^h) Boot to Local Hard Disk<br />
        localboot 0&#215;80</p></blockquote>
<p>改成：</p>
<blockquote><p>label hd<br />
        menu label ^h) Boot to Local Hard Disk<br />
        kernel chain.c32<br />
        append hd0 0</p></blockquote>
<p>chain.c32在syslinux里面有。</p>
<p>最终网络安装的效果图如下：</p>
<p><a href="http://hhding.wordpress.com/2011/09/18/syslinuxpxelinux-0-4-x%e4%b8%8d%e6%94%af%e6%8c%81localboot%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95/netboot/" rel="attachment wp-att-190"><img src="http://hhding.files.wordpress.com/2011/09/netboot.png?w=300&#038;h=225" alt="" title="netboot" width="300" height="225" class="alignnone size-medium wp-image-190" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hhding.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hhding.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hhding.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hhding.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hhding.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hhding.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hhding.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hhding.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hhding.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hhding.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hhding.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hhding.wordpress.com/188/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hhding.wordpress.com/188/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hhding.wordpress.com/188/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=188&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hhding.wordpress.com/2011/09/18/syslinuxpxelinux-0-4-x%e4%b8%8d%e6%94%af%e6%8c%81localboot%e7%9a%84%e8%a7%a3%e5%86%b3%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a579207214741c4374c3051c7a1f19f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hhding</media:title>
		</media:content>

		<media:content url="http://hhding.files.wordpress.com/2011/09/netboot.png?w=300" medium="image">
			<media:title type="html">netboot</media:title>
		</media:content>
	</item>
		<item>
		<title>通用的获取磁盘序列号的方法(sg3utils)</title>
		<link>http://hhding.wordpress.com/2011/09/16/%e9%80%9a%e7%94%a8%e7%9a%84%e8%8e%b7%e5%8f%96%e7%a3%81%e7%9b%98%e5%ba%8f%e5%88%97%e5%8f%b7%e7%9a%84%e6%96%b9%e6%b3%95sg3utils/</link>
		<comments>http://hhding.wordpress.com/2011/09/16/%e9%80%9a%e7%94%a8%e7%9a%84%e8%8e%b7%e5%8f%96%e7%a3%81%e7%9b%98%e5%ba%8f%e5%88%97%e5%8f%b7%e7%9a%84%e6%96%b9%e6%b3%95sg3utils/#comments</comments>
		<pubDate>Fri, 16 Sep 2011 00:41:28 +0000</pubDate>
		<dc:creator>Ding Honghui</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hhding.wordpress.com/?p=182</guid>
		<description><![CDATA[本演示是在solaris环境下，linux下也可以同样处理： admin@storage-01:/# sg_inq /dev/rdsk/c1t5000C50025E2DB7Fd0 &#124; grep serial Unit serial number: 9WM31YEM0000C0000JMK admin@storage-01:/# 由于这个命令是用scsi协议直接和硬盘打交道，所以只要服务器可以直接访问到硬盘，就可以查询到硬盘的序列号。譬如某生产线上用DataON DNS1400的JBOD，你无法通过cfgadm，iostat -En，也无法通过format的inquery来查询到序列号，这种情况下可以通过sg3utils里面的sg_inq来查询到硬盘的序列号。<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=182&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>本演示是在solaris环境下，linux下也可以同样处理：</p>
<p>admin@storage-01:/# sg_inq /dev/rdsk/c1t5000C50025E2DB7Fd0 | grep serial<br />
 Unit serial number: 9WM31YEM0000C0000JMK<br />
admin@storage-01:/# </p>
<p>由于这个命令是用scsi协议直接和硬盘打交道，所以只要服务器可以直接访问到硬盘，就可以查询到硬盘的序列号。譬如某生产线上用DataON DNS1400的JBOD，你无法通过cfgadm，iostat -En，也无法通过format的inquery来查询到序列号，这种情况下可以通过sg3utils里面的sg_inq来查询到硬盘的序列号。</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hhding.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hhding.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hhding.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hhding.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hhding.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hhding.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hhding.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hhding.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hhding.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hhding.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hhding.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hhding.wordpress.com/182/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hhding.wordpress.com/182/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hhding.wordpress.com/182/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=182&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hhding.wordpress.com/2011/09/16/%e9%80%9a%e7%94%a8%e7%9a%84%e8%8e%b7%e5%8f%96%e7%a3%81%e7%9b%98%e5%ba%8f%e5%88%97%e5%8f%b7%e7%9a%84%e6%96%b9%e6%b3%95sg3utils/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a579207214741c4374c3051c7a1f19f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hhding</media:title>
		</media:content>
	</item>
		<item>
		<title>磁盘性能分析的帖子</title>
		<link>http://hhding.wordpress.com/2011/08/16/%e7%a3%81%e7%9b%98%e6%80%a7%e8%83%bd%e5%88%86%e6%9e%90%e7%9a%84%e5%b8%96%e5%ad%90/</link>
		<comments>http://hhding.wordpress.com/2011/08/16/%e7%a3%81%e7%9b%98%e6%80%a7%e8%83%bd%e5%88%86%e6%9e%90%e7%9a%84%e5%b8%96%e5%ad%90/#comments</comments>
		<pubDate>Tue, 16 Aug 2011 01:46:24 +0000</pubDate>
		<dc:creator>Ding Honghui</dc:creator>
				<category><![CDATA[Computers and Internet]]></category>

		<guid isPermaLink="false">http://hhding.wordpress.com/?p=179</guid>
		<description><![CDATA[帖子[1]是我见过的最完善的讲述磁盘性能的帖子，里面提到了磁盘的构造和各种参数的实际含义，包括转速，平均搜索时间，IOPS等等，有兴趣的人可以看看。 Note: 我看到的其中一个小问题是：RAID5中一个写操作需要后台2次读2次写这个说法只是其中一种可能。严格意义上来说，RAID5会根据现有的数据和需要写入的数据大小来确定如何写入数据，譬如full strip write就不需要这种2次读2次写的操作。摘录wikipedia的原话：“RAID 5 implementations suffer from poor performance when faced with a workload which includes many writes which are smaller than the capacity of a single stripe.&#8221; 注意，这里有限定语句：which are smaller than the capacity of a single stripe. &#8230; <a href="http://hhding.wordpress.com/2011/08/16/%e7%a3%81%e7%9b%98%e6%80%a7%e8%83%bd%e5%88%86%e6%9e%90%e7%9a%84%e5%b8%96%e5%ad%90/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=179&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>帖子[1]是我见过的最完善的讲述磁盘性能的帖子，里面提到了磁盘的构造和各种参数的实际含义，包括转速，平均搜索时间，IOPS等等，有兴趣的人可以看看。</p>
<p>Note: 我看到的其中一个小问题是：RAID5中一个写操作需要后台2次读2次写这个说法只是其中一种可能。严格意义上来说，RAID5会根据现有的数据和需要写入的数据大小来确定如何写入数据，譬如full strip write就不需要这种2次读2次写的操作。摘录wikipedia的原话：“RAID 5 implementations suffer from poor performance when faced with a workload which includes many writes which are smaller than the capacity of a single stripe.&#8221; 注意，这里有限定语句：which are smaller than the capacity of a single stripe.</p>
<p>参考文献：<br />
[1] http://www.symantec.com/connect/articles/getting-hang-iops<br />
[2] http://en.wikipedia.org/wiki/Standard_RAID_levels#RAID_5_performance<br />
[3] http://blogs.oracle.com/bonwick/entry/raid_z</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hhding.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hhding.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hhding.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hhding.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hhding.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hhding.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hhding.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hhding.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hhding.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hhding.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hhding.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hhding.wordpress.com/179/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hhding.wordpress.com/179/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hhding.wordpress.com/179/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=179&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hhding.wordpress.com/2011/08/16/%e7%a3%81%e7%9b%98%e6%80%a7%e8%83%bd%e5%88%86%e6%9e%90%e7%9a%84%e5%b8%96%e5%ad%90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a579207214741c4374c3051c7a1f19f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hhding</media:title>
		</media:content>
	</item>
		<item>
		<title>一例域名解析故障的排查(cfengine arpa解析)</title>
		<link>http://hhding.wordpress.com/2011/07/11/%e4%b8%80%e4%be%8b%e5%9f%9f%e5%90%8d%e8%a7%a3%e6%9e%90%e6%95%85%e9%9a%9c%e7%9a%84%e6%8e%92%e6%9f%a5cfengine-arpa%e8%a7%a3%e6%9e%90/</link>
		<comments>http://hhding.wordpress.com/2011/07/11/%e4%b8%80%e4%be%8b%e5%9f%9f%e5%90%8d%e8%a7%a3%e6%9e%90%e6%95%85%e9%9a%9c%e7%9a%84%e6%8e%92%e6%9f%a5cfengine-arpa%e8%a7%a3%e6%9e%90/#comments</comments>
		<pubDate>Mon, 11 Jul 2011 12:26:48 +0000</pubDate>
		<dc:creator>Ding Honghui</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hhding.wordpress.com/?p=175</guid>
		<description><![CDATA[cfengine失败的原因，是由于域名反向解析出错。 从跟踪结果来看，我们的bind转发到网通的DNS 218.108.248.228， 而网通的域名服务器其对下列IP地址的反向解析有奇怪的结果[1]，正常的结果应 该如[2]所示。 因此，对于网通这样诡异的运营商，自己的域名服务器还是必要的。 hz-307:/etc/bind# host -l wasu.vobile &#124; grep 192.168 &#124; awk '{print $4}' &#124; while read k; do host $k; done &#124; grep FAIL &#124; sed 's/Host \(.*\).in-addr.*/\1/g' &#124; awk -F. '{print $4,$3,$2,$1}' &#124; sed 's/ &#8230; <a href="http://hhding.wordpress.com/2011/07/11/%e4%b8%80%e4%be%8b%e5%9f%9f%e5%90%8d%e8%a7%a3%e6%9e%90%e6%95%85%e9%9a%9c%e7%9a%84%e6%8e%92%e6%9f%a5cfengine-arpa%e8%a7%a3%e6%9e%90/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=175&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<p>cfengine失败的原因，是由于域名反向解析出错。</p>
<p>从跟踪结果来看，我们的bind转发到网通的DNS 218.108.248.228， 而网通的域名服务器其对下列IP地址的反向解析有奇怪的结果<a title="first import project netet (net tetris)" href="http://seals.vobile.cn/trac/KnowledgeBase/changeset/1">[1]</a>，正常的结果应 该如<a title="first import redir" href="http://seals.vobile.cn/trac/KnowledgeBase/changeset/2">[2]</a>所示。 因此，对于网通这样诡异的运营商，自己的域名服务器还是必要的。</p>
<pre>hz-307:/etc/bind# host -l wasu.vobile | grep 192.168 | awk '{print $4}' | while read k; do host $k; done | grep FAIL | sed 's/Host \(.*\).in-addr.*/\1/g' | awk -F. '{print $4,$3,$2,$1}' | sed 's/ /./g' | sort | uniq -c
      3 192.168.x.106
      2 192.168.x.113
      1 192.168.x.115
      1 192.168.x.116
      1 192.168.x.50
      2 192.168.x.71
hz-307:/etc/bind#</pre>
<p>附：</p>
<p>故障现象：</p>
<pre>hz-050:~# cfagent -q
cfengine:hz-050: Couldn't look up address v6 for : Temporary failure in name resolution
cfengine:hz-050: Id-authentication for hz-050.vobileinc.com failed
cfengine:hz-050:/var/lib/cfengine2/inputs/update.conf:42: Warning: actionsequence is empty
cfengine:hz-050:/var/lib/cfengine2/inputs/update.conf:42: Warning: perhaps cfagent.conf/update.conf have not yet been set up?
hz-050:~#</pre>
<p>故障相关代码：</p>
<pre>proto.c
   if ((err=getnameinfo((struct sockaddr *)&amp;myaddr,len,dnsname,CF_MAXVARSIZE,NULL,0,0)) != 0)
      {
      snprintf(OUTPUT,CF_BUFSIZE,"Couldn't look up address v6 for %s: %s\n",dnsname,gai_strerror(err));
      CfLog(cferror,OUTPUT,"");
      return false;
      }</pre>
<p>ltrace相关信息，可以看到返回值是-3：</p>
<pre>getnameinfo(0xbfaae4a8, 16, "", 1024, NULL, 0, 0) = -3
gai_strerror(-3)                                 = "Temporary failure in name resolu"...
snprintf("Couldn't look up address v6 for "..., 4096, "Couldn't look up address v6 for "...) = 71</pre>
<p>头文件相关信息，对应到可读的错误信息：</p>
<pre>/usr/include/netdb.h
# define EAI_AGAIN        -3    /* Temporary failure in name resolution.  */</pre>
<p><a title="first import project netet (net tetris)" href="http://seals.vobile.cn/trac/KnowledgeBase/changeset/1">[1]</a></p>
<pre>hz-307:/etc/bind# dig -x 192.168.x.116 @218.108.248.228
;; Got bad packet: bad label type
120 bytes
8e 62 81 83 00 01 00 00 00 01 00 00 03 31 31 36
02 31 36 03 31 36 38 03 31 39 32 07 69 6e 2d 61
64 64 72 04 61 72 70 61 00 00 0c 00 01 c0 14 00
06 00 01 00 00 03 f3 00 3f 0d 68 69 64 64 65 6e
2d 6d 61 73 74 65 72 05 68 7a 6d 61 6e 03 6e 65
74 00 03 64 6e 73 08 63 68 69 6e 61 68 63 6e 03
63 6f 6d 00 77 ce 51 a7 00 00 0e 10 00 00 07 08
00 09 3a 80 00 00 0e 10</pre>
<p><a title="first import redir" href="http://seals.vobile.cn/trac/KnowledgeBase/changeset/2">[2]</a></p>
<pre>hz-307:/etc/bind# dig -x 192.168.x.11 @218.108.248.228

; &lt;&lt;&gt;&gt; DiG 9.6-ESV-R3 &lt;&lt;&gt;&gt; -x 192.168.x.11 @218.108.248.228
;; global options: +cmd
;; Got answer:
;; -&gt;&gt;HEADER&lt;&lt;- opcode: QUERY, status: NXDOMAIN, id: 18589
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;11.x.168.192.in-addr.arpa.    IN    PTR

;; AUTHORITY SECTION:
168.192.in-addr.arpa.    8746    IN    SOA    prisoner.iana.org. hostmaster.root-servers.org. 2002040800 1800 900 604800 604800

;; Query time: 24 msec
;; SERVER: 218.108.248.228#53(218.108.248.228)
;; WHEN: Mon Jul 11 19:58:22 2011
;; MSG SIZE  rcvd: 121

hz-307:/etc/bind#</pre>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hhding.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hhding.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hhding.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hhding.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hhding.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hhding.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hhding.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hhding.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hhding.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hhding.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hhding.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hhding.wordpress.com/175/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hhding.wordpress.com/175/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hhding.wordpress.com/175/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=175&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hhding.wordpress.com/2011/07/11/%e4%b8%80%e4%be%8b%e5%9f%9f%e5%90%8d%e8%a7%a3%e6%9e%90%e6%95%85%e9%9a%9c%e7%9a%84%e6%8e%92%e6%9f%a5cfengine-arpa%e8%a7%a3%e6%9e%90/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a579207214741c4374c3051c7a1f19f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hhding</media:title>
		</media:content>
	</item>
		<item>
		<title>从视频中提取音频的方法</title>
		<link>http://hhding.wordpress.com/2011/06/23/%e4%bb%8e%e8%a7%86%e9%a2%91%e4%b8%ad%e6%8f%90%e5%8f%96%e9%9f%b3%e9%a2%91%e7%9a%84%e6%96%b9%e6%b3%95/</link>
		<comments>http://hhding.wordpress.com/2011/06/23/%e4%bb%8e%e8%a7%86%e9%a2%91%e4%b8%ad%e6%8f%90%e5%8f%96%e9%9f%b3%e9%a2%91%e7%9a%84%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Thu, 23 Jun 2011 09:42:22 +0000</pubDate>
		<dc:creator>Ding Honghui</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hhding.wordpress.com/?p=173</guid>
		<description><![CDATA[mencoder -oac mp3lame -ovc copy -of rawaudio &#60;input_filename&#62; -o &#60;output_filename&#62; &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=173&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>mencoder -oac mp3lame -ovc copy -of rawaudio &lt;input_filename&gt; -o &lt;output_filename&gt;</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hhding.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hhding.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hhding.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hhding.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hhding.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hhding.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hhding.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hhding.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hhding.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hhding.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hhding.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hhding.wordpress.com/173/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hhding.wordpress.com/173/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hhding.wordpress.com/173/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=173&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hhding.wordpress.com/2011/06/23/%e4%bb%8e%e8%a7%86%e9%a2%91%e4%b8%ad%e6%8f%90%e5%8f%96%e9%9f%b3%e9%a2%91%e7%9a%84%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a579207214741c4374c3051c7a1f19f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hhding</media:title>
		</media:content>
	</item>
		<item>
		<title>用药助手</title>
		<link>http://hhding.wordpress.com/2011/06/17/%e7%94%a8%e8%8d%af%e5%8a%a9%e6%89%8b/</link>
		<comments>http://hhding.wordpress.com/2011/06/17/%e7%94%a8%e8%8d%af%e5%8a%a9%e6%89%8b/#comments</comments>
		<pubDate>Fri, 17 Jun 2011 05:42:31 +0000</pubDate>
		<dc:creator>Ding Honghui</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hhding.wordpress.com/?p=169</guid>
		<description><![CDATA[http://drugs.dxy.cn/<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=169&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>http://drugs.dxy.cn/</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hhding.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hhding.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hhding.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hhding.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hhding.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hhding.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hhding.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hhding.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hhding.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hhding.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hhding.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hhding.wordpress.com/169/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hhding.wordpress.com/169/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hhding.wordpress.com/169/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=169&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hhding.wordpress.com/2011/06/17/%e7%94%a8%e8%8d%af%e5%8a%a9%e6%89%8b/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a579207214741c4374c3051c7a1f19f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hhding</media:title>
		</media:content>
	</item>
		<item>
		<title>拿出来的光盘怎么放</title>
		<link>http://hhding.wordpress.com/2011/06/16/%e6%8b%bf%e5%87%ba%e6%9d%a5%e7%9a%84%e5%85%89%e7%9b%98%e6%80%8e%e4%b9%88%e6%94%be/</link>
		<comments>http://hhding.wordpress.com/2011/06/16/%e6%8b%bf%e5%87%ba%e6%9d%a5%e7%9a%84%e5%85%89%e7%9b%98%e6%80%8e%e4%b9%88%e6%94%be/#comments</comments>
		<pubDate>Thu, 16 Jun 2011 05:33:22 +0000</pubDate>
		<dc:creator>Ding Honghui</dc:creator>
				<category><![CDATA[Computers and Internet]]></category>

		<guid isPermaLink="false">http://hhding.wordpress.com/?p=167</guid>
		<description><![CDATA[拿出来的光盘怎么放，这个问题我到今天才明白： 因素1：光盘的物理结构 光盘光滑的一面是光驱去读取的那一面，一般有比较厚的基底，另外一面，由外到内是：印刷层（有图案），保护层，反射层，对CD而言，印刷层和保护层比较薄。 因素2：光盘的特性 光盘染料记忆层怕见光 那么，如果光滑的那一面向下，只要不是刮的太深，可能会影响读取速度，或者需要加强激光强度来读取，同时，对光盘染料记忆层有保护 如果印刷层向下，那么如果刮伤了反射层，数据就彻底完了。这个对CD特别严重。 综上所述，光盘应该是光面朝下放置。 &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=167&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>拿出来的光盘怎么放，这个问题我到今天才明白：</p>
<p>因素1：光盘的物理结构</p>
<p>光盘光滑的一面是光驱去读取的那一面，一般有比较厚的基底，另外一面，由外到内是：印刷层（有图案），保护层，反射层，对CD而言，印刷层和保护层比较薄。</p>
<p>因素2：光盘的特性</p>
<p>光盘染料记忆层怕见光</p>
<p>那么，如果光滑的那一面向下，只要不是刮的太深，可能会影响读取速度，或者需要加强激光强度来读取，同时，对光盘染料记忆层有保护</p>
<p>如果印刷层向下，那么如果刮伤了反射层，数据就彻底完了。这个对CD特别严重。</p>
<p>综上所述，光盘应该是光面朝下放置。</p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hhding.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hhding.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hhding.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hhding.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hhding.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hhding.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hhding.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hhding.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hhding.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hhding.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hhding.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hhding.wordpress.com/167/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hhding.wordpress.com/167/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hhding.wordpress.com/167/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=167&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hhding.wordpress.com/2011/06/16/%e6%8b%bf%e5%87%ba%e6%9d%a5%e7%9a%84%e5%85%89%e7%9b%98%e6%80%8e%e4%b9%88%e6%94%be/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a579207214741c4374c3051c7a1f19f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hhding</media:title>
		</media:content>
	</item>
		<item>
		<title>Dell服务器Raid卡管理以及监控</title>
		<link>http://hhding.wordpress.com/2011/06/14/dell%e6%9c%8d%e5%8a%a1%e5%99%a8raid%e5%8d%a1%e7%ae%a1%e7%90%86%e4%bb%a5%e5%8f%8a%e7%9b%91%e6%8e%a7/</link>
		<comments>http://hhding.wordpress.com/2011/06/14/dell%e6%9c%8d%e5%8a%a1%e5%99%a8raid%e5%8d%a1%e7%ae%a1%e7%90%86%e4%bb%a5%e5%8f%8a%e7%9b%91%e6%8e%a7/#comments</comments>
		<pubDate>Tue, 14 Jun 2011 06:11:24 +0000</pubDate>
		<dc:creator>Ding Honghui</dc:creator>
				<category><![CDATA[Computers and Internet]]></category>

		<guid isPermaLink="false">http://hhding.wordpress.com/?p=163</guid>
		<description><![CDATA[Raid类型以及资源 Dell中的Raid卡都是基于lsi的芯片，详细的可以通过lspci -v[1]来识别。 对于lsi的Raid卡，可以通过网上资料找到详细的分类和说明[2]。 在开工之前，务必详细阅读该文档，弄清楚Raid卡的类型。 lsi厂商工具 对基于lsi的Raid卡，可以通过mpt-stat(开源)，lsiutil，megacli来监控，也可以通过Dell官方提供的管理工具来管理。 对Debian，有现成的Debian源可以安装上面的几个工具[3]。 对solaris，也可以下载到相应的软件[4][5]，mpt-stat可能没有。 如果只是要检查和操作Raid卡，lsiutil和megacli就已经是足够了。 Dell的Raid管理工具 Dell 官方提供了一套完整的管理工具[6]，但是对于Debian，并没有官方支持。Debian爱好者这套管理工具进行了重新打包， 这里有一个比较详尽的安装文档[7]，对于该管理工具，有比较详尽的文档可以参考[8]. 硬盘状态监控 光光有工具还是不够的，我们需要把这些集成到监控里面，已经有人专门为此进行了开发，并且撰写了详细的文档[9]，通过这些方法，我们可以通过snmp或者nagios nrpe来监控系统的健康状态。建议通过nrpe来完成监控。 具体效果如下: srv:~# /usr/lib/nagios/plugins/check_nrpe -H srv01 -c check_openmanage OK &#8211; System: &#8216;PowerEdge R710&#8242;, SN: &#8216;XXXXX&#8217;, 8 GB ram (4 dimms), 1 logical drives, 6 &#8230; <a href="http://hhding.wordpress.com/2011/06/14/dell%e6%9c%8d%e5%8a%a1%e5%99%a8raid%e5%8d%a1%e7%ae%a1%e7%90%86%e4%bb%a5%e5%8f%8a%e7%9b%91%e6%8e%a7/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=163&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div>
<h1>Raid类型以及资源</h1>
<p>Dell中的Raid卡都是基于lsi的芯片，详细的可以通过lspci -v[1]来识别。</p>
<p>对于lsi的Raid卡，可以通过网上资料找到详细的分类和说明[2]。 在开工之前，务必详细阅读该文档，弄清楚Raid卡的类型。</p>
<h2 id="lsi厂商工具">lsi厂商工具</h2>
<p>对基于lsi的Raid卡，可以通过mpt-stat(开源)，lsiutil，megacli来监控，也可以通过Dell官方提供的管理工具来管理。</p>
<p>对Debian，有现成的Debian源可以安装上面的几个工具[3]。</p>
<p>对solaris，也可以下载到相应的软件[4][5]，mpt-stat可能没有。</p>
<p>如果只是要检查和操作Raid卡，lsiutil和megacli就已经是足够了。</p>
<h1 id="Dell的Raid管理工具">Dell的Raid管理工具</h1>
<p>Dell 官方提供了一套完整的管理工具[6]，但是对于Debian，并没有官方支持。Debian爱好者这套管理工具进行了重新打包， 这里有一个比较详尽的安装文档[7]，对于该管理工具，有比较详尽的文档可以参考[8].</p>
<h1 id="硬盘状态监控">硬盘状态监控</h1>
<p>光光有工具还是不够的，我们需要把这些集成到监控里面，已经有人专门为此进行了开发，并且撰写了详细的文档[9]，通过这些方法，我们可以通过snmp或者nagios nrpe来监控系统的健康状态。建议通过nrpe来完成监控。</p>
<p>具体效果如下:</p>
<p>srv:~# /usr/lib/nagios/plugins/check_nrpe -H srv01 -c check_openmanage<br />
OK &#8211; System: &#8216;PowerEdge R710&#8242;, SN: &#8216;XXXXX&#8217;, 8 GB ram (4 dimms), 1 logical drives, 6 physical drives<br />
srv:~#</p>
<p>如果有DRAC卡，还可以通过DRAC的报警功能来对系统状态进行及时报警，这个是最简单的。</p>
<p>[1]<a href="http://www.google.com/search?q=pciutils"> http://www.google.com/search?q=pciutils</a> , Debian package pciutils</p>
<p>[2]<a href="http://hwraid.le-vert.net/wiki/LSI"> http://hwraid.le-vert.net/wiki/LSI</a></p>
<p>[3]<a href="http://hwraid.le-vert.net/wiki/DebianPackages"> http://hwraid.le-vert.net/wiki/DebianPackages</a></p>
<p>[4]<a href="http://www.lsi.com/DistributionSystem/User/AssetMgr.aspx?asset=51101"> http://www.lsi.com/DistributionSystem/User/AssetMgr.aspx?asset=51101</a></p>
<p>[5]<a href="http://tinyurl.com/megacli-solaris"> http://tinyurl.com/megacli-solaris</a></p>
<p>[6]<a href="http://linux.dell.com/repo/hardware/"> http://linux.dell.com/repo/hardware/</a></p>
<p>[7]<a href="http://john.parnefjord.se/node/39"> http://john.parnefjord.se/node/39</a></p>
<p>[8]<a href="http://support.dell.com/support/edocs/software/svradmin/"> http://support.dell.com/support/edocs/software/svradmin/</a></p>
<p>[9]<a href="http://folk.uio.no/trondham/software/check_openmanage.html"> http://folk.uio.no/trondham/software/check_openmanage.html</a></p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hhding.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hhding.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hhding.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hhding.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hhding.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hhding.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hhding.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hhding.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hhding.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hhding.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hhding.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hhding.wordpress.com/163/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hhding.wordpress.com/163/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hhding.wordpress.com/163/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=163&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hhding.wordpress.com/2011/06/14/dell%e6%9c%8d%e5%8a%a1%e5%99%a8raid%e5%8d%a1%e7%ae%a1%e7%90%86%e4%bb%a5%e5%8f%8a%e7%9b%91%e6%8e%a7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a579207214741c4374c3051c7a1f19f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hhding</media:title>
		</media:content>
	</item>
		<item>
		<title>Ubuntu 11.04下复制VCD的方法</title>
		<link>http://hhding.wordpress.com/2011/06/07/ubuntu-11-04%e4%b8%8b%e5%a4%8d%e5%88%b6vd%e7%9a%84%e6%96%b9%e6%b3%95/</link>
		<comments>http://hhding.wordpress.com/2011/06/07/ubuntu-11-04%e4%b8%8b%e5%a4%8d%e5%88%b6vd%e7%9a%84%e6%96%b9%e6%b3%95/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 13:38:09 +0000</pubDate>
		<dc:creator>Ding Honghui</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://hhding.wordpress.com/?p=159</guid>
		<description><![CDATA[https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs sudo apt-get install libdvdread4 sudo /usr/share/doc/libdvdread4/install-css.sh 打开文件管理器，进入/media，右击目录，选择Copy Disk，选择保存为image。然后就等拷贝完成啦。 可以用vlc打开拷贝出来的iso文件。<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=159&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>https://help.ubuntu.com/community/RestrictedFormats/PlayingDVDs</p>
<p>sudo apt-get install libdvdread4</p>
<p>sudo /usr/share/doc/libdvdread4/install-css.sh</p>
<p>打开文件管理器，进入/media，右击目录，选择Copy Disk，选择保存为image。然后就等拷贝完成啦。</p>
<p>可以用vlc打开拷贝出来的iso文件。</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/hhding.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/hhding.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/hhding.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/hhding.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/hhding.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/hhding.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/hhding.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/hhding.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/hhding.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/hhding.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/hhding.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/hhding.wordpress.com/159/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/hhding.wordpress.com/159/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/hhding.wordpress.com/159/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hhding.wordpress.com&amp;blog=17870215&amp;post=159&amp;subd=hhding&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://hhding.wordpress.com/2011/06/07/ubuntu-11-04%e4%b8%8b%e5%a4%8d%e5%88%b6vd%e7%9a%84%e6%96%b9%e6%b3%95/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/7a579207214741c4374c3051c7a1f19f?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">hhding</media:title>
		</media:content>
	</item>
	</channel>
</rss>
