<?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>天道酬勤 &#187; rac;hangcheck-timer</title>
	<atom:link href="http://www.ochef.net/tag/rachangcheck-timer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ochef.net</link>
	<description>RDBMS and My Life</description>
	<lastBuildDate>Tue, 10 Aug 2010 14:25:44 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Configure the hangcheck-timer Kernel Module for Oracle Cluster</title>
		<link>http://www.ochef.net/2009/08/configure-the-hangcheck-timer-kernel-module-for-oracle-cluster/</link>
		<comments>http://www.ochef.net/2009/08/configure-the-hangcheck-timer-kernel-module-for-oracle-cluster/#comments</comments>
		<pubDate>Sat, 08 Aug 2009 01:04:59 +0000</pubDate>
		<dc:creator>ochef</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[rac;hangcheck-timer]]></category>

		<guid isPermaLink="false">http://www.ochef.net/?p=501</guid>
		<description><![CDATA[首先得感谢小荷的这篇文章让我重新学习了hangcheck-timer这个内核模块。在这之前，也就是我刚开始接触Oracle的时候自己在虚拟机中做实验，根据网上的一篇文档学习安装Oracle Cluster。记得文档中说：该模块在AS2.1-E16以上的核心或者是3.0的核心中系统开始自带hangcheck-timer来代替watchdog守护进程，不需要安装。那时并没有认真去了解这个hangcheck-timer模块，这个内核模块对Oracle RAC系统是很非常重要的。 在Oracle9202以前，都是使用watchdog来检查系统是否挂起，9202以后，oracle使用hangcheck-timer模块。 hangcheck-timer模块使用基于内核时钟周期性去定时检查系统是否被挂起，如果检测到系统已经被挂起，将重置节点上的时钟。该模块用二个参数表示多少时间以后系统没响应就认为是挂起。 hangcheck_tick：该参数定义了模块启动的间隔时段，其默认值为 60 秒。 Oracle建议将其设置为 30 秒。 hangcheck_margin：该参数定义了多少时间以后系统没响应就认为是挂起。以秒为单位，默认值为 180秒。Oracle 建议将其设置为 180 秒。 使用下面的命令检查该模块是否存在： # find  /lib/modules -name &#8220;hangcheck-timer.ko&#8221; /lib/modules/2.6.9-78.ELsmp/kernel/drivers/char/hangcheck-timer.ko /lib/modules/2.6.9-78.EL/kernel/drivers/char/hangcheck-timer.ko 手动加载该模块到内核： # modprobe hangcheck-timer 检查该模块加载是否成功： # grep Hangcheck /var/log/messages &#124; tail -1 Aug  8 07:36:33 ora9i kernel: Hangcheck: starting hangcheck timer 0.9.0 (tick is 180 seconds, margin is 60 seconds). 手动加载模块，重启后失效，可以将其加载模块的命令添加到/etc/modules.conf中 [...]]]></description>
			<content:encoded><![CDATA[<p>首先得感谢<a title="小荷" href="http://www.oracleblog.cn/working-case/protecting-single-instance-using-oracle-crs/" target="_blank">小荷的这篇文章</a>让我重新学习了hangcheck-timer这个内核模块。在这之前，也就是我刚开始接触Oracle的时候自己在虚拟机中做实验，根据网上的一篇文档学习安装Oracle Cluster。记得文档中说：该模块在AS2.1-E16以上的核心或者是3.0的核心中系统开始自带hangcheck-timer来代替watchdog守护进程，不需要安装。那时并没有认真去了解这个hangcheck-timer模块，这个内核模块对Oracle RAC系统是很非常重要的。</p>
<p>在Oracle9202以前，都是使用watchdog来检查系统是否挂起，9202以后，oracle使用hangcheck-timer模块。 hangcheck-timer模块使用基于内核时钟周期性去定时检查系统是否被挂起，如果检测到系统已经被挂起，将重置节点上的时钟。该模块用二个参数表示多少时间以后系统没响应就认为是挂起。</p>
<p><span style="color: #ff0000;">hangcheck_tick：</span>该参数定义了模块启动的间隔时段，其默认值为 60 秒。 Oracle建议将其设置为 30 秒。</p>
<p><span style="color: #ff0000;">hangcheck_margin：</span>该参数定义了多少时间以后系统没响应就认为是挂起。以秒为单位，默认值为 180秒。Oracle 建议将其设置为 180 秒。</p>
<p>使用下面的命令检查该模块是否存在：</p>
<p># find  /lib/modules -name &#8220;hangcheck-timer.ko&#8221;</p>
<p>/lib/modules/2.6.9-78.ELsmp/kernel/drivers/char/hangcheck-timer.ko</p>
<p>/lib/modules/2.6.9-78.EL/kernel/drivers/char/hangcheck-timer.ko</p>
<p>手动加载该模块到内核：</p>
<p># modprobe hangcheck-timer</p>
<p>检查该模块加载是否成功：</p>
<p># grep Hangcheck /var/log/messages | tail -1</p>
<p>Aug  8 07:36:33 ora9i kernel: Hangcheck: starting hangcheck timer 0.9.0 (tick is 180 seconds, margin is 60 seconds).</p>
<p>手动加载模块，重启后失效，可以将其加载模块的命令添加到/etc/modules.conf中</p>
<p># echo &#8220;options hangcheck-timer hangcheck_tick=30 hangcheck_margin=180&#8243; &gt;&gt; /etc/modules.conf</p>
<p>或者在/etc/rc.local文件中增加下列命令</p>
<p>/sbin/insmod hangcheck-timer hangcheck_tick=30 hangcheck_margin=180</p>
<p>关于hangcheck-timer内核模块的相关资料，也可以<a title="more hangcheck-timer information" href="http://www.rampant-books.com/art_hunter_rac_oracle%20linux_hangcheck_kernel_module.htm" target="_blank">点击这里获得</a>。</p>
<p>-The End-</p>
]]></content:encoded>
			<wfw:commentRss>http://www.ochef.net/2009/08/configure-the-hangcheck-timer-kernel-module-for-oracle-cluster/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
