+ -
当前位置:首页 → 问答吧 → solaris 10 双机(3.1)作为NTP 客户端配置问题

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?

作者: yifanguo   发布时间: 2011-01-04

兄弟,你这个系统有业务没有呀,你敢这么干!
ntp对sun cluster很重要的,你别搞的宕机呀。
官方要求要把双机停下来,到非cluster模式下,然后cp ntp.conf.cluster ntp.conf
修改这个ntp.conf,加入你要同步的时间服务器地址。
然后重启ntp,测试一下,ok了再启动cluster

作者: zyl555   发布时间: 2011-01-04

热门下载

更多