要点记录:
OS: CentOs 4.5
虚拟机方面:在两台虚拟机的 .vmx文件中分别添加
disk.locking = FALSE
ide1.sharedBus = "virtual"
ide1:1.mode = "independent-persistent"
diskLib.dataCacheMaxSize = "0"
diskLib.dataCacheMaxReadAheadSize = "0"
diskLib.DataCacheMinReadAheadSize = "0"
diskLib.dataCachePageSize = "4096"
diskLib.maxUnsyncedWrites = "0"
LINIX as4 方面:
配置 hangcheck-timer 内核模块(在所有节点上执行)
modprobe hangcheck-timer hangcheck_tick=30 hangcheck_margin=180
hangcheck-tick:此参数定义了系统运行状况检查的间隔时段。默认值为 60 秒;Oracle 建议将它设置为 30 秒。
hangcheck-margin:此参数定义了 hangcheck-timer 在重启 RAC 节点前所容许的最大挂起延迟。它定义了以秒为单位的错误余量。默认值为 180 秒;Oracle 建议将它设置为 180 秒。
注意:这两个 hangcheck-timer 模块参数指示在该模块重置系统前 RAC 节点必须挂起多长时间。当以下条件为真时将会重置节点:
系统挂起时间 > (hangcheck_tick + hangcheck_margin)
同时请记住这个值(210),我们在以后还会用到
在每次启动时配置 hangcheck-timer 内核的加载:
echo "/sbin/modprobe hangcheck-timer hangcheck_tick=30 hangcheck_margin=180 " >> /etc/rc.local
检查该模块是否被成功加载:
[root @linux1 /root]# grep Hangcheck /var/log/messages