AIX 6.1 上 NTP 时钟同步配置详解
来源:互联网 发布:上海传智播客电话知乎 编辑:程序博客网 时间:2024/06/06 01:59
ntp同步服务器时间
NTP服务目前用的并不多,最近做一个项目,DB2集群,对时间一致性有些要求,所以想了ntp,虽说timed也可以用,但是只对广播域有效,还是ntp功能强大些。
配置:
首先,选择一台服务器作为校准服务器。AIX5L已经内置了ntp服务,名字叫做xntp,用lssrc -a可以看到,默认是不启动。
xntp服务使用/etc/ntp.conf文件作为启动配置文件,如果/etc下没有这个文件,可以从/usr/sample/xntp/下找到例子,不过例子非常简单,没啥用
编辑 /etc/ntp.conf 文件, 内容如下:
----------------------------
#broadcastclient
server 127.127.1.0
tracefile /etc/ntp.trace
----------------------------
请注意文件中的 server xxxxx这一行, server是指这台服务器的上一级时间源,没有这个xntp工作不起来,如果没有上一级时间源,比如在内网,此处的127.127.1.0 是一特殊的地址,表示NTP主服务器是与自身的系统时钟同步。
启动:
编辑好 /etc/ntp.conf后, 启动xntpd守护进程
# startsrc -s xntpd
自动启动的方法不用我说了吧
检查:
ntp服务不是启动后立即可以使用的,需要一段时间3-5分钟左右,可以同通过lssrc命令来查看当前ntp服务状态。
#lssrc -ls xntpd
刚启动xntpd时,sys peer 为 'insane',表明xntpd还没有完成同步。
#lssrc -ls xntpd
Program name: /usr/sbin/xntpd
Version: 3
Leap indicator: 11 (Leap indicator is insane.)
Sys peer: no peer, system is insane
...
等待 3-5分钟后, sys peer 就不再是 'insane' 了。
#lssrc -ls xntpd
Program name: /usr/sbin/xntpd
Version: 3
Leap indicator: 00 (No leap second today.)
Sys peer: 127.127.1.0
...
客户端同步:
NTP服务目前用的并不多,最近做一个项目,DB2集群,对时间一致性有些要求,所以想了ntp,虽说timed也可以用,但是只对广播域有效,还是ntp功能强大些。
配置:
首先,选择一台服务器作为校准服务器。AIX5L已经内置了ntp服务,名字叫做xntp,用lssrc -a可以看到,默认是不启动。
xntp服务使用/etc/ntp.conf文件作为启动配置文件,如果/etc下没有这个文件,可以从/usr/sample/xntp/下找到例子,不过例子非常简单,没啥用
编辑 /etc/ntp.conf 文件, 内容如下:
----------------------------
#broadcastclient
server 127.127.1.0
tracefile /etc/ntp.trace
----------------------------
请注意文件中的 server xxxxx这一行, server是指这台服务器的上一级时间源,没有这个xntp工作不起来,如果没有上一级时间源,比如在内网,此处的127.127.1.0 是一特殊的地址,表示NTP主服务器是与自身的系统时钟同步。
启动:
编辑好 /etc/ntp.conf后, 启动xntpd守护进程
# startsrc -s xntpd
自动启动的方法不用我说了吧
检查:
ntp服务不是启动后立即可以使用的,需要一段时间3-5分钟左右,可以同通过lssrc命令来查看当前ntp服务状态。
#lssrc -ls xntpd
刚启动xntpd时,sys peer 为 'insane',表明xntpd还没有完成同步。
#lssrc -ls xntpd
Program name: /usr/sbin/xntpd
Version: 3
Leap indicator: 11 (Leap indicator is insane.)
Sys peer: no peer, system is insane
...
等待 3-5分钟后, sys peer 就不再是 'insane' 了。
#lssrc -ls xntpd
Program name: /usr/sbin/xntpd
Version: 3
Leap indicator: 00 (No leap second today.)
Sys peer: 127.127.1.0
...
客户端同步:
ntpdate (server ip)就可以使客户端更新为服务器时间,可以通过cron来设定定期更新,保持时间的一致性。
转载请注明出处及原文链接:
http://blog.csdn.net/xiangsir/article/details/8570441
- AIX 6.1 上 NTP 时钟同步配置详解
- Centos7 NTP时钟同步配置
- CentOS 集群 NTP 时钟同步配置教程
- linux debian下配置ntp时钟同步
- CentOS7系统上配置NTP时钟服务器
- 计算机NTP时钟同步(NTP服务器-NTP时间服务器)的重要性及其配置方法
- 通过 NTP 进行时钟同步
- Qt实现NTP时钟同步
- 使用ntp进行时钟同步
- Linux 使用 NTP 时钟同步
- NTP时钟同步服务器安装
- 配置AIX 的NTP服务
- AIX AIX配置时间服务器(NTP) xntpd
- 以本地时钟配置NTP
- NTP时间同步配置
- NTP同步配置
- NTP 时间同步 配置
- NTP配置时间同步
- java.io.IOException: File /exapp/hadoop/hadooptmp/mapred/system/jobtracker.info could only be replic
- 在VMware Server 2.0.2 上安装 Oracle 10g RAC 手把手详解
- 树状数组
- 加载web项目时报的错误:Tomcat version 6.0 only supports J2EE 1.2, 1.3, 1.4, and Java EE 5 Web modul
- 实现In-app Billing (IAB Version 3)
- AIX 6.1 上 NTP 时钟同步配置详解
- 发现一个gccxml的bug!
- Oracle DB_FILES 参数配置详解
- fedora18无线网卡安装
- SICP 习题答案1.2
- Linux 上 RAC 环境检查脚本
- ThinkPHP中RBAC数据库详解
- android/linux 经典开发环境下载链接:Ubuntu+VMWare
- android中dip、dp、px、sp和屏幕密度