11G RAC节点间的时间同步一带一路重要节点城市吗

博客访问: 363498
博文数量: 62
注册时间:
Do the best you can be !
ITPUB论坛APP
ITPUB论坛APP
APP发帖 享双倍积分
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: Oracle
验证所有集群节点间的时钟同步:
su &- &grid
cluvfy & comp &clocksync & -n & all & &-verbose
[grid@RAC-1 ~]$ cluvfy comp clocksync -n all -verbose
Verifying Clock Synchronization across the cluster nodes&
Checking if Clusterware is installed on all nodes...
Check of Clusterware install passed
Checking if CTSS Resource is running on all nodes...
Check: CTSS Resource running on all nodes
& Node Name & & & & & & & & & & & & & & Status & & & & & & & & &
& ------------------------------------ &------------------------
& rac-2 & & & & & & & & & & & & & & & & passed & & & & & & & & &
& rac-1 & & & & & & & & & & & & & & & & passed & & & & & & & & &
Result: CTSS resource check passed
Querying CTSS for time offset on all nodes...
Result: Query of CTSS for time offset passed
Check CTSS state started...
Check: CTSS state
& Node Name & & & & & & & & & & & & & & State & & & & & & & & &&
& ------------------------------------ &------------------------
& rac-2 & & & & & & & & & & & & & & & & Observer & & & & & & & &
& rac-1 & & & & & & & & & & & & & & & & Observer & & & & & & & &
CTSS is in Observer state. Switching over to clock synchronization checks using NTP
Starting Clock synchronization checks using Network Time Protocol(NTP)...
NTP Configuration file check started...
The NTP configuration file "/etc/ntp.conf" is available on all nodes
NTP Configuration file check passed
Checking daemon liveness...
Check: Liveness for "ntpd"
& Node Name & & & & & & & & & & & & & & Running? & & & & & & & &
& ------------------------------------ &------------------------
& rac-2 & & & & & & & & & & & & & & & & no & & & & & & & & & & &
& rac-1 & & & & & & & & & & & & & & & & no & & & & & & & & & & &
Result: Liveness check failed for "ntpd"
PRVF-5494 : The NTP Daemon or Service was not alive on all nodes
PRVF-5415 : Check to see if NTP daemon or service is running failed
Result: Clock synchronization check using Network Time Protocol(NTP) failed
PRVF-9652 : Cluster Time Synchronization Services check failed
Verification of Clock Synchronization across the cluster nodes was unsuccessful on all the specified nodes.&
没搞明白,没启用NTP,为什么ctss一直运行观察模式的。
1、11G R2 默认有自己的时间同步机制,没有ntp也是可以的。
2、CRS-4700: The Cluster Time Synchronization Service is in Observer mode.
3、有NTP的话ctss应该一直运行观察模式的。除非把NTP去掉。没试过啊,楼主可以试试看,去掉ntp后用 crsctl check ctss看看
使用集群时间同步服务在集群中提供同步服务,需要卸载网络时间协议 (NTP) 及其配置。
要停用 NTP 服务,必须停止当前的 ntpd 服务,从初始化序列中禁用该服务,并删除 ntp.conf 文件。要在 Oracle Enterprise Linux 上完成这些步骤,以 root 用户身份在两个 Oracle RAC 节点上运行以下命令:
[root@racnode1 ~]# /sbin/service ntpd stop
[root@racnode1 ~]# chkconfig ntpd off
[root@racnode1 ~]# mv /etc/ntp.conf /etc/ntp.conf.original& & & & ----/etc/ntp.conf&&有这个文件,ctss是不会启用的
还要删除以下文件:
[root@racnode1 ~]# rm /var/run/ntpd.pid
此文件保存了 NTP 后台程序的 pid。
阅读(6816) | 评论(0) | 转发(0) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。博客访问: 443358
博文数量: 159
注册时间:
认证徽章:
ITPUB论坛APP
ITPUB论坛APP
APP发帖 享双倍积分
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: Oracle
原文地址: 作者:
&&&&& 近一段,客户数据库累积了一些问题,需要我集中处理,有些相对容易,有些有一点棘手,可能需要通过SR提交服务。我陆续将所碰到问题及解决方案总结一下。
& & &首先是HP-UX和AIX平台上出现时间同步警告信息,具体日志如下:
15:48:10.885
[ctssd()]CRS-2409:The clock on host node2&is not synchronous with the mean cluster time. No action has been taken as the Cluster Time Synchronization Service is running in observer mode.
原理描述:
& & &11g Clusterware引入一个新的进程CTSS,该进程主要负责集群的时间管理,确保每个节点的集群时间一致,如果系统的NTP进程运行,则CTSS进程处于observer模式,否则,NTP进程没有运行,CTSS运行于ACTIVE模式。
问题分析及解决:
&& 运行cluvfy命令进行节点的时间同步,出现如下错误:
#su – grid
$cluvfy comp clocksync –n all –verbose
执行失败,出现如以下错误:
执行失败,如:
& Version of exectask could not be retrieved from node “node1”
& Version of exectask could not be retrieved from node “node1”
&& Framework setup check failed on all the nodes
&& Verification cannot processed
& &&命令cluvfy运行出现错误,主要从以下三个方面进行解决:
&&1、检查两个节点直接的信任关系,否则执行sshUserSetup.sh脚本,该脚本可通过解压安装包获得。
#&sshUserSetup.sh -user grid -hosts "oadb1 oadb2" -advanced –PromptPassphrase
2、清除临时文件系统中以CVU开头的文件目录。
#&rm –rf /tmp/CVU*
3、因为数据库升级,会改变exectask*命令执行权限,需要更改该脚本执行权限
#&su – grid
$ cd $ORACLE_HOME/cv/remenv
$chmod 755 ./*
重新执行cluvfy脚本,依然无法同步,具体信息如下:
$&cluvfy comp clocksync –n all –verbose
输出信息如下:
Verifying Clock Synchronization across the cluster nodes
Checking if Clusterware is installed on all nodes...
Check of Clusterware install passed
Checking if CTSS Resource is running on all nodes...
Check: CTSS Resource running on all nodes
& Node Name&&&&&&&&&&&&&&&&&&&&&&&&&&&& Status&&&&&&&&&&&&&&&&&
& ------------------------------------& ------------------------
& &node1&&&&&&&&&&&&&&&&&&&&&&&&&&&&& passed&&&&&&&&& &&&&&&&&
& node2&&&&&&&&&&&&&&&&&&&&&&&&&&&&& passed&&&&&&&&&&&&&&&&&
Result: CTSS resource check passed
Querying CTSS for time offset on all nodes...
Result: Query of CTSS for time offset passed
Check CTSS state started...
Check: CTSS state
& Node Name&&&&&&&&&&&&&&&&&&&&&&&&&&&& State&&&&&&&&&&&&&&&&&&
& ------------------------------------& ------------------------
& node2&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Observer&&&&&&&&&&&&&&&
& node1&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Observer&&&&&&&&&&&&&&&
CTSS is in Observer state. Switching over to clock synchronization checks using NTP
Starting Clock synchronization checks using Network Time Protocol(NTP)...
NTP Configuration file check started...
The NTP configuration file "/etc/ntp.conf" is available on all nodes
NTP Configuration file check passed
Checking daemon liveness...
Check: Liveness for "xntpd"
& Node Name&&&&&&&&&&&&&&&&&&&&&&&&&&&& Running?&&&&&&&&&&&&&&&
& ------------------------------------& ------------------------
& node2&&&&&&&&&&&& &&&&&&&&&&&&&&&&&yes&&&&&&&&&&&&&&&&&&&&
& node1&&&&&&&&&&&&&&&&&&&&&&&&&&&&& yes&&&&&&&&&&&&&&&&&&&&
Result: Liveness check passed for "xntpd"
Check for NTP daemon or service alive passed on all nodes
Checking NTP daemon command line for slewing option "-x"
Check: NTP daemon command line
& Node Name&&&&&&&&&&&&&&&&&&&&&&&&&&&& Slewing Option Set?&&&&
& ------------------------------------& ------------------------
& node2&&&&&&&&&&&&&&&&&&&&&&&&&&&&& no&&&&&&&&&&&&&&&&&&&&&
& node1&&&&&&&&&& &&&&&&&&&&&&&&&&&&&no&&&&&&&&&&&&&&&&&&&&&
NTP daemon slewing option check failed on some nodes
PRVF-5436 : The NTP daemon running on one or more nodes lacks the slewing option "-x"
Result: Clock synchronization check using Network Time Protocol(NTP) failed
PRVF-9652 : Cluster Time Synchronization Services check failed
Verification of Clock Synchronization across the cluster nodes was unsuccessful on all the specified nodes.
以上可以看出xntpd进程运行未使用参数”-x”,在所有节点“系统启动配置文件”检查并添加该参数,然后各个节点重新启动时间同步:
1、AIX平台配置文件:
&&& &#vi /etc/rc.tcpip
&&& &&&start /usr/sbin/xntpd "$src_running" "-x"
2、HP-UX平台配置文件:
& &&&#vi /etc/rc.config.d/netdaemons
&&&& &&&XNTPD_ARGS="-x"
3、AIX停止和启动XNTPD进程
& &&&#stopsrc –s xntpd
& &&&#startsrc –s xntpd –a “-x”
4、HP-UX停止和启动XNTPD进程
& &&&#/sbin/init.d/xntpd stop
& &&&#/sbin/init.d/xntpd start
完成以上命令后,各个节点重新执行cluvfy comp clocksysnc –n all –verbose,时间同步成功。
阅读(907) | 评论(0) | 转发(0) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。博客访问: 471337
博文数量: 153
注册时间:
最多140个汉字
ITPUB论坛APP
ITPUB论坛APP
APP发帖 享双倍积分
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
分类: Oracle
&&&&& 近一段,客户数据库累积了一些问题,需要我集中处理,有些相对容易,有些有一点棘手,可能需要通过SR提交服务。我陆续将所碰到问题及解决方案总结一下。
& & &首先是HP-UX和AIX平台上出现时间同步警告信息,具体日志如下:
15:48:10.885
[ctssd()]CRS-2409:The clock on host node2&is not synchronous with the mean cluster time. No action has been taken as the Cluster Time Synchronization Service is running in observer mode.
原理描述:
& & &11g Clusterware引入一个新的进程CTSS,该进程主要负责集群的时间管理,确保每个节点的集群时间一致,如果系统的NTP进程运行,则CTSS进程处于observer模式,否则,NTP进程没有运行,CTSS运行于ACTIVE模式。
问题分析及解决:
&& 运行cluvfy命令进行节点的时间同步,出现如下错误:
#su – grid
$cluvfy comp clocksync –n all –verbose
执行失败,出现如以下错误:
执行失败,如:
& Version of exectask could not be retrieved from node “node1”
& Version of exectask could not be retrieved from node “node1”
&& Framework setup check failed on all the nodes
&& Verification cannot processed
& &&命令cluvfy运行出现错误,主要从以下三个方面进行解决:
&&1、检查两个节点直接的信任关系,否则执行sshUserSetup.sh脚本,该脚本可通过解压安装包获得。
#&sshUserSetup.sh -user grid -hosts "oadb1 oadb2" -advanced –PromptPassphrase
2、清除临时文件系统中以CVU开头的文件目录。
#&rm –rf /tmp/CVU*
3、因为数据库升级,会改变exectask*命令执行权限,需要更改该脚本执行权限
#&su – grid
$ cd $ORACLE_HOME/cv/remenv
$chmod 755 ./*
重新执行cluvfy脚本,依然无法同步,具体信息如下:
$&cluvfy comp clocksync –n all –verbose
输出信息如下:
Verifying Clock Synchronization across the cluster nodes
Checking if Clusterware is installed on all nodes...
Check of Clusterware install passed
Checking if CTSS Resource is running on all nodes...
Check: CTSS Resource running on all nodes
& Node Name&&&&&&&&&&&&&&&&&&&&&&&&&&&& Status&&&&&&&&&&&&&&&&&
& ------------------------------------& ------------------------
& &node1&&&&&&&&&&&&&&&&&&&&&&&&&&&&& passed&&&&&&&&& &&&&&&&&
& node2&&&&&&&&&&&&&&&&&&&&&&&&&&&&& passed&&&&&&&&&&&&&&&&&
Result: CTSS resource check passed
Querying CTSS for time offset on all nodes...
Result: Query of CTSS for time offset passed
Check CTSS state started...
Check: CTSS state
& Node Name&&&&&&&&&&&&&&&&&&&&&&&&&&&& State&&&&&&&&&&&&&&&&&&
& ------------------------------------& ------------------------
& node2&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Observer&&&&&&&&&&&&&&&
& node1&&&&&&&&&&&&&&&&&&&&&&&&&&&&& Observer&&&&&&&&&&&&&&&
CTSS is in Observer state. Switching over to clock synchronization checks using NTP
Starting Clock synchronization checks using Network Time Protocol(NTP)...
NTP Configuration file check started...
The NTP configuration file "/etc/ntp.conf" is available on all nodes
NTP Configuration file check passed
Checking daemon liveness...
Check: Liveness for "xntpd"
& Node Name&&&&&&&&&&&&&&&&&&&&&&&&&&&& Running?&&&&&&&&&&&&&&&
& ------------------------------------& ------------------------
& node2&&&&&&&&&&&& &&&&&&&&&&&&&&&&&yes&&&&&&&&&&&&&&&&&&&&
& node1&&&&&&&&&&&&&&&&&&&&&&&&&&&&& yes&&&&&&&&&&&&&&&&&&&&
Result: Liveness check passed for "xntpd"
Check for NTP daemon or service alive passed on all nodes
Checking NTP daemon command line for slewing option "-x"
Check: NTP daemon command line
& Node Name&&&&&&&&&&&&&&&&&&&&&&&&&&&& Slewing Option Set?&&&&
& ------------------------------------& ------------------------
& node2&&&&&&&&&&&&&&&&&&&&&&&&&&&&& no&&&&&&&&&&&&&&&&&&&&&
& node1&&&&&&&&&& &&&&&&&&&&&&&&&&&&&no&&&&&&&&&&&&&&&&&&&&&
NTP daemon slewing option check failed on some nodes
PRVF-5436 : The NTP daemon running on one or more nodes lacks the slewing option "-x"
Result: Clock synchronization check using Network Time Protocol(NTP) failed
PRVF-9652 : Cluster Time Synchronization Services check failed
Verification of Clock Synchronization across the cluster nodes was unsuccessful on all the specified nodes.
以上可以看出xntpd进程运行未使用参数”-x”,在所有节点“系统启动配置文件”检查并添加该参数,然后各个节点重新启动时间同步:
1、AIX平台配置文件:
&&& &#vi /etc/rc.tcpip
&&& &&&start /usr/sbin/xntpd "$src_running" "-x"
2、HP-UX平台配置文件:
& &&&#vi /etc/rc.config.d/netdaemons
&&&& &&&XNTPD_ARGS="-x"
3、AIX停止和启动XNTPD进程
& &&&#stopsrc –s xntpd
& &&&#startsrc –s xntpd –a “-x”
4、HP-UX停止和启动XNTPD进程
& &&&#/sbin/init.d/xntpd stop
& &&&#/sbin/init.d/xntpd start
完成以上命令后,各个节点重新执行cluvfy comp clocksysnc –n all –verbose,时间同步成功。
阅读(15332) | 评论(4) | 转发(3) |
相关热门文章
给主人留下些什么吧!~~
虽然&cluvfy&comp&clocksync&-n&all&-verbose&命令执行成功了,但是那个告警还是一直报。
在进行先停止CTSSD和NTPD再启动之前,是否必须先备份数据库和停止所有节点的实例和服务?&&还是可以直接停止和启动,不影响数据库。
:话说,你究竟用ctss还是ntp呢?
话说,你究竟用ctss还是ntp呢?
请登录后评论。查看: 7652|回复: 12
RAC时间不同步的问题
认证徽章论坛徽章:67
今天帮忙维护一个11g的RAC环境,之前用的好好的,但是下午开始就会莫名奇妙的卡住。两台机器一起开机的时候,其中一台还会出现瞬间蓝屏后黑屏的现象。
一开始怀疑是与阵列的连接问题。但是查看了阵列的日志,一切正常。
后来怀疑是两台机器时间不同步的问题,查看了下,两台机器的时间差将近一分钟。
后来把两台机器的时间设置成一样,观察了一阵,似乎正常了,不过还要等明天访问量上去以后才能确定。
看了pub上的一些介绍,大致是时间差最好不要超过30秒,但是也有兄弟是差几分钟也没事的。
真是一个诡异的问题, mark下。
论坛徽章:107
10G RAC,也曾经遇到两个节点的时间不一样,相差几分钟都可以正常运行的。
是因为同步时间服务器出问题,造成无法完成同步时间
论坛徽章:73
要有一个授时中心。
[oracle@RAC2 ~]$ssh rac1 date
Tue Sep&&6 10:18:43 CST 2011
Tue Sep&&6 10:18:43 CST 2011
论坛徽章:24
差几十分钟也问题不大
论坛徽章:24
但安装的时候
最好是第一个节点比其他节点慢
论坛徽章:37
有一次一台小机出故障换了cell板,起来后就启动rac了,过了一段时间发现这太机器慢了8小时,居然rac没报什么错。
论坛徽章:17
时间好像不是什么问题
不过,我总是将其中一个NODE作为时间服务器,其它NODE与之定时同步。
论坛徽章:69
用ntp服务器来解决。
认证徽章论坛徽章:2
之前生产库10g 双节点rac,时间差了2分钟左右,发现其中一台小机频繁重启,时间同步后正常了。
感觉rac的时间问题还是很诡异的
论坛徽章:6
11GR2&&在OS上的时间不同步无所谓,10G要注意。
itpub.net All Right Reserved. 北京盛拓优讯信息技术有限公司版权所有    
 北京市公安局海淀分局网监中心备案编号:10 广播电视节目制作经营许可证:编号(京)字第1149号

我要回帖

更多关于 2017年重要时间节点 的文章

 

随机推荐