solaris 10 双机(3.1)作为NTP 客户端配置问题
时间:2011-01-04
来源:互联网
操作系统:solaris 10
双机版本:Sun Cluster 3.1u4 for Solaris 10 sparc
现状:
# ps -ef|grep ntp
root 772 1 0 12月 19 ? 63:52 /usr/lib/inet/xntpd -c /etc/inet/ntp.conf.cluster
root 9922 15867 0 16:15:38 pts/2 0:00 grep ntp
# ntpq -p
remote refid st t when poll reach delay offset disp
==============================================================================
*LOCAL(0) LOCAL(0) 3 l 31 64 377 0.00 0.000 10.01
clusternode1-pr 0.0.0.0 16 - - 1024 0 0.00 0.000 16000.0
clusternode2-pr clusternode1-pr 5 u 286 1024 376 2.37 0.075 13.44
在内网搭建了一台NTP SERVER(WIN2003)
# ntpdate -q 192.168.4.10
server 192.168.4.10, stratum 5, offset -239.734809, delay 0.04144
4 Jan 16:17:02 ntpdate[11817]: no server suitable for synchronization found
目前双机已经快了239秒,需要调整。已经在双机上按以下步骤配置,发现无效:
#cp ntp.client ntp.conf
#vi ntp.conf
# ident "@(#)ntp.client 1.3 00/07/17 SMI"
#
# /etc/inet/ntp.client
#multicastclient 224.0.1.1
server 192.168.4.10 prefer
#svcadm enable ntp
# svcs ntp
STATE STIME FMRI
online 12月_31 svc:/network/ntp:default
但是,ps -ef|grep ntp时:
# ps -ef|grep ntp
root 806 1 0 12月 19 ? 34:03 /usr/lib/inet/xntpd -c /etc/inet/ntp.conf.cluster
root 25259 24063 0 16:23:28 pts/2 0:00 grep ntp
root 4276 1 0 12月 31 ? 0:07 /usr/lib/inet/xntpd
在这里请教大家如何把这2台双机配置为ntp client 。
是否直接修改ntp.conf.cluster,在里面增加192.168.4.10这一台NTP SERVER,通过svcadm disable ntp把 root 4276 1 0 12月 31 ? 0:07 /usr/lib/inet/xntpd去掉,只保留:root 806 1 0 12月 19 ? 34:03 /usr/lib/inet/xntpd -c /etc/inet/ntp.conf.cluster?
双机版本:Sun Cluster 3.1u4 for Solaris 10 sparc
现状:
# ps -ef|grep ntp
root 772 1 0 12月 19 ? 63:52 /usr/lib/inet/xntpd -c /etc/inet/ntp.conf.cluster
root 9922 15867 0 16:15:38 pts/2 0:00 grep ntp
# ntpq -p
remote refid st t when poll reach delay offset disp
==============================================================================
*LOCAL(0) LOCAL(0) 3 l 31 64 377 0.00 0.000 10.01
clusternode1-pr 0.0.0.0 16 - - 1024 0 0.00 0.000 16000.0
clusternode2-pr clusternode1-pr 5 u 286 1024 376 2.37 0.075 13.44
在内网搭建了一台NTP SERVER(WIN2003)
# ntpdate -q 192.168.4.10
server 192.168.4.10, stratum 5, offset -239.734809, delay 0.04144
4 Jan 16:17:02 ntpdate[11817]: no server suitable for synchronization found
目前双机已经快了239秒,需要调整。已经在双机上按以下步骤配置,发现无效:
#cp ntp.client ntp.conf
#vi ntp.conf
# ident "@(#)ntp.client 1.3 00/07/17 SMI"
#
# /etc/inet/ntp.client
#multicastclient 224.0.1.1
server 192.168.4.10 prefer
#svcadm enable ntp
# svcs ntp
STATE STIME FMRI
online 12月_31 svc:/network/ntp:default
但是,ps -ef|grep ntp时:
# ps -ef|grep ntp
root 806 1 0 12月 19 ? 34:03 /usr/lib/inet/xntpd -c /etc/inet/ntp.conf.cluster
root 25259 24063 0 16:23:28 pts/2 0:00 grep ntp
root 4276 1 0 12月 31 ? 0:07 /usr/lib/inet/xntpd
在这里请教大家如何把这2台双机配置为ntp client 。
是否直接修改ntp.conf.cluster,在里面增加192.168.4.10这一台NTP SERVER,通过svcadm disable ntp把 root 4276 1 0 12月 31 ? 0:07 /usr/lib/inet/xntpd去掉,只保留:root 806 1 0 12月 19 ? 34:03 /usr/lib/inet/xntpd -c /etc/inet/ntp.conf.cluster?
作者: yifanguo 发布时间: 2011-01-04
兄弟,你这个系统有业务没有呀,你敢这么干!
ntp对sun cluster很重要的,你别搞的宕机呀。
官方要求要把双机停下来,到非cluster模式下,然后cp ntp.conf.cluster ntp.conf
修改这个ntp.conf,加入你要同步的时间服务器地址。
然后重启ntp,测试一下,ok了再启动cluster
ntp对sun cluster很重要的,你别搞的宕机呀。
官方要求要把双机停下来,到非cluster模式下,然后cp ntp.conf.cluster ntp.conf
修改这个ntp.conf,加入你要同步的时间服务器地址。
然后重启ntp,测试一下,ok了再启动cluster
作者: zyl555 发布时间: 2011-01-04
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28