<?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>Oracle and My Life</description>
	<lastBuildDate>Mon, 09 Jan 2012 05:39:00 +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.html</link>
		<comments>http://www.ochef.net/2009/08/configure-the-hangcheck-timer-kernel-module-for-oracle-cluster.html#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中 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F11%2Faix-using-raw-create-a-non-rac-of-the-asm.html&from=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Fconfigure-the-hangcheck-timer-kernel-module-for-oracle-cluster.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">AIX下使用 raw 创建 non-rac 的ASM</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F03%2Faix-network-buffer-parameter-is-set-to-rise-to-rac-failures.html&from=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Fconfigure-the-hangcheck-timer-kernel-module-for-oracle-cluster.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">AIX network buffer参数设置引起RAC故障</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F11%2Fconfigure-the-css-on-non-rac-trace-it-linuxunix.html&from=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Fconfigure-the-hangcheck-timer-kernel-module-for-oracle-cluster.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Configure the CSS on Non-RAC &amp; Trace It (LinuxUnix)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F04%2Finstall-oracle-10g-rac-on-rhel4u7.html&from=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Fconfigure-the-hangcheck-timer-kernel-module-for-oracle-cluster.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Install Oracle 10g RAC on RHEL4U7</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></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>
<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F11%2Faix-using-raw-create-a-non-rac-of-the-asm.html&from=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Fconfigure-the-hangcheck-timer-kernel-module-for-oracle-cluster.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">AIX下使用 raw 创建 non-rac 的ASM</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.ochef.net%2F2010%2F03%2Faix-network-buffer-parameter-is-set-to-rise-to-rac-failures.html&from=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Fconfigure-the-hangcheck-timer-kernel-module-for-oracle-cluster.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">AIX network buffer参数设置引起RAC故障</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F11%2Fconfigure-the-css-on-non-rac-trace-it-linuxunix.html&from=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Fconfigure-the-hangcheck-timer-kernel-module-for-oracle-cluster.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Configure the CSS on Non-RAC &amp; Trace It (LinuxUnix)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwww.ochef.net%2F2009%2F04%2Finstall-oracle-10g-rac-on-rhel4u7.html&from=http%3A%2F%2Fwww.ochef.net%2F2009%2F08%2Fconfigure-the-hangcheck-timer-kernel-module-for-oracle-cluster.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 12px !important;">Install Oracle 10g RAC on RHEL4U7</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.ochef.net/2009/08/configure-the-hangcheck-timer-kernel-module-for-oracle-cluster.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

