`
cczmf
  • 浏览: 17091 次
  • 性别: Icon_minigender_1
  • 来自: 广东
社区版块
存档分类
最新评论

oracle rac集群的ntp时间同步解决方案

阅读更多
1、编辑两节点的ntp.conf文件 
vi /etc/ntp.conf 
server ntp.qq.com.cn
driftfile /var/lib/ntp/drift

 
2、编辑两节点的ntpd参数 
vi /etc/sysconfig/ntpd 
SYNC_HWCLOCK=yes      #此选项用于自动校准系统时钟与硬件时钟 
OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid" 
 
#注意理解Linux的时钟类型。在Linux系统中分为系统时钟和硬件时钟. 
#系统时钟指当前Linux kernel中的时钟,而硬件时钟指的是BIOS时钟,由主板电池供电的那个时钟 
#当Linux启动时,硬件时钟会读取系统时钟的设置,之后系统时钟就独立于硬件时钟运作 
 
 
3、在两节点配置ntp自启动服务 
chkconfig ntpd on   

4、在两节点启动ntp服务 
# service ntpd stop 
 Shutting down ntpd: [  OK  ]
# service ntpd start 
 Starting ntpd: [  OK  ] 
5、查看ntp状态 
 [root@node1 ~]# ntpq -p 
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
*LOCAL(0)        .LOCL.           5 l   23   64    1    0.000    0.000   0.000
 172.16.17.19    128.138.141.172  2 u   22   64    1    1.959    2.289   0.000 
  [root@node2 ~]# ntpq -p 
      remote          refid      st t when poll reach  delay  offset  jitter 
 ============================================================================== 
  node1.szdb.com  .INIT.          16 u  60  64    0    0.000    0.000  0.000 
  LOCAL(0)        .LOCL.          10 l  59  64    1    0.000    0.000  0.001   
 6、进程检查
# ps -ef|grep ntp
rac的可以这样配,其它的应用的(含单机的oracle),自动crontab 同步就可以
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics