免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2793 | 回复: 0
打印 上一主题 下一主题

[新手入门] AIX时钟同步--cff [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-11-11 14:41 |只看该作者 |倒序浏览
参考:
http://blog.chinaunix.net/u1/52223/showart_471466.html
服务器端操作:
1 编辑服务器端配置文件/etc/ntp.conf,内容如下:
  server 10.29.x.x  prefer     ----注意,该处IP地址为实际服务器端IP地址
  server 127.127.1.0             ----此处IP为一个特殊地址,不需改动.
  broadcastclient
  driftfile /etc/ntp.drift
  tracefile /etc/ntp.trace
2 编辑/etc/rc.tcpip文件,使进程在小机启动时自动启动,去掉下面字段的注释
   #start /usr/sbin/xntpd "$src_running"
3 启动xntp服务
  startsrc -s xntpd
4 查看启动是否成功
  lssrc -s xntpd
其他节点的操作:
1 编辑文件/etc/ntp.conf,内容如下:
  broadcastclient
  server 10.29.x.x
  driftfile /etc/ntp.drift
  tracefile /etc/ntp.trace
2 编辑/etc/rc.tcpip文件,使进程在小机启动时自动启动,去掉下面字段的注释
   #start /usr/sbin/xntpd "$src_running"
3 启动xntp服务
  startsrc -s xntpd
4 查看启动是否成功
  lssrc -s xntpd

备注:
(1)可以启动xntpd服务后过5分左右手工同步,如果时间太短,服务没有完全启动则会报错.
(2)手动同步时间:
   ntpdate 10.29.x.x
(3)
xntp启动状态实例如下:
#lssrc -ls xntpd
 Program name:    /usr/sbin/xntpd
 Version:         3
 Leap indicator:  11 (Leap indicator is insane.) =========>初始化未完成
 Sys peer:        no peer, system is insane      =========>初始化未完成
 Sys stratum:     16                             =========>初始化未完成
 Sys precision:   -17
 Debug/Tracing:   DISABLED
 Root distance:   0.000000
 Root dispersion: 0.000000
 Reference ID:    no refid, system is insane    =========>初始化未完成   
 Reference time:  no reftime, system is insane  =========>初始化未完成
xntpd服务器初始化完成后:
#lssrc -ls xntpd
 Program name:    /usr/sbin/xntpd
 Version:         3
 Leap indicator:  00 (No leap second today.)
 Sys peer:        127.127.1.0
 Sys stratum:     4
 Sys precision:   -17
 Debug/Tracing:   DISABLED
 Root distance:   0.000000
 Root dispersion: 0.885010
 Reference ID:    127.127.1.0
 Reference time:  c6e1d5c0.f7506000  Mon, Sep 26 200x 10
(4)查询两小型机的时钟差:(在node1上执行)
  timedc  clockdiff node2_name


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u2/65729/showart_1405103.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP