IT分销/经销HAhacmpxntpd

xntpd自动关闭问题求助

B机作为备机,与A机同时启动xntpd进程(smitty xntpd or startsrc -g xntpd都试过)
但B机的此进程一会就挂掉:
提示:the request could not be passed to the xntpd,start the subsystem and try your command again...
纠结
在vi /etc/ntp.conf的server配置与A机一样

原来怀疑是HA的问题,可是把HA 停了也是如此

谢谢大家 帮我分析下解决问题的思路与可能性
参与11

11同行回答

oracleonaixoracleonaix数据库管理员wens
NTP 伺服器之間的時間誤差不可超過 1000 秒,否則 NTP 服務會自動關閉。http://bbs.chinaunix.net/thread-313673-1-1.html显示全部
NTP 伺服器之間的時間誤差不可超過 1000 秒,否則 NTP 服務會自動關閉。
http://bbs.chinaunix.net/thread-313673-1-1.html收起
IT咨询服务 · 2013-11-23
浏览4596
化剑为犁化剑为犁数据库管理员ygsoft
我前几天也这么做了ntp 当时ok了 这两天服务也停了  不知道为什么 楼主现在怎么样显示全部
我前几天也这么做了ntp 当时ok了
这两天服务也停了  不知道为什么 楼主现在怎么样收起
互联网服务 · 2013-01-24
浏览6175
wind77chenwind77chen软件开发工程师LY
请把你的broadcastclientserver 10.154.1.20server 10.254.96.101driftfile /etc/ntp.drifttracefile /etc/ntp.trace其中的broadcastclient前面加个#号,应该就OK了显示全部
请把你的
broadcastclient
server 10.154.1.20
server 10.254.96.101
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace
其中的broadcastclient前面加个#号,应该就OK了收起
政府机关 · 2012-02-03
浏览6195
cy830822cy830822工程师南天
楼主 你是不是没有在启动服务之前进行ntpdate xxx.xxx.xxx.xxx把时间同步一下啊显示全部
楼主 你是不是没有在启动服务之前进行ntpdate xxx.xxx.xxx.xxx把时间同步一下啊收起
金融其它 · 2011-03-15
浏览6154
brillianceraybrilliancerayDBA富伦麦柯
设置备份网络时钟服务器的方法:(1)创建并编辑连接备份网络时钟服务器的配置文件,例如可以指定该文件为/etc/ntpb.conf。#cd /etc#vi ntpb.conf回车,在配置文件中输入如下内容broadcastclientserver Xx.Xx.Xx.Xxdriftfile /etc/ntp.drifttracefile /etc/ntp.trace编辑完毕,保存...显示全部
设置备份网络时钟服务器的方法:(1)创建并编辑连接备份网络时钟服务器的配置文件,例如可以指定该文件为/etc/ntpb.conf。#cd /etc#vi ntpb.conf回车,在配置文件中输入如下内容broadcastclientserver Xx.Xx.Xx.Xxdriftfile /etc/ntp.drifttracefile /etc/ntp.trace编辑完毕,保存退出。(2)启动与备份时钟服务器的连接#xntpd–m–c /etc/ntpb.conf(3)检查备份时钟服务器是否设置成功:#lssrc–ls xntpd出现如下所示结果,则设置成功:Programname:   /usr/sbin/xntpd Version:        3
主网络时钟服务器地址
  Leap indicator: 00 (No leap second today.) Sys peer:       X1.X1.X1.X1 Sys stratum:    2 Sys precision:  -17 Debug/Tracing:  DISABLED Root distance:  0.000443 Root dispersion: 0.007721 Reference ID:   X1.X1.X1.X1 Reference time: cf4c3b19.ce792000 Thu, Mar 18 2010 13:39:37.806 Broadcast delay: 0.003906 (sec) Auth delay:     0.000122 (sec)
主网络时钟服务器地址
  System flags:   bclient pll monitor filegen  System uptime:  12951 (sec) Clock stability: 0.000336 (sec) Clock frequency: 0.000000 (sec) Peer: X1.X1.X1.X1
辅助网络时钟服务器地址
      flags: (configured)(sys peer)     stratum: 1, version: 3     our mode: client, his mode: server Peer: X2.X2.X2.X2     flags: (configured)(sys peer)     stratum: 2, version: 3     our mode: client, his mode: serverSubsystem        Group           PID         Status xntpd           tcpip           385242      active收起
IT分销/经销 · 2010-04-19
浏览6248
rhua310rhua310软件开发工程师安图特
设置备份网络时钟服务器的方法:(1)创建并编辑连接备份网络时钟服务器的配置文件,例如可以指定该文件为/etc/ntpb.conf。#cd /etc#vi ntpb.conf回车,在配置文件中输入如下内容broadcastclientserver Xx.Xx.Xx.Xxdriftfile /etc/ntp.drifttracefile /etc/ntp.trace编辑完毕,保存...显示全部

设置备份网络时钟服务器的方法:

(1)创建并编辑连接备份网络时钟服务器的配置文件,例如可以指定该文件为/etc/ntpb.conf。

#cd /etc

#vi ntpb.conf回车,在配置文件中输入如下内容

broadcastclient

server Xx.Xx.Xx.Xx

driftfile /etc/ntp.drift

tracefile /etc/ntp.trace

编辑完毕,保存退出。

(2)启动与备份时钟服务器的连接

#xntpd –m –c /etc/ntpb.conf

(3)检查备份时钟服务器是否设置成功:

#lssrc –ls xntpd

出现如下所示结果,则设置成功:

Program name:
/usr/sbin/xntpd


Version:
3

主网络时钟服务器地址


Leap indicator:
00 (No leap second today.)


Sys peer:
X1.X1.X1.X1


Sys stratum:
2


Sys precision:
-17


Debug/Tracing:
DISABLED


Root distance:
0.000443


Root dispersion: 0.007721


Reference ID:
X1.X1.X1.X1


Reference time:
cf4c3b19.ce792000
Thu, Mar 18 2010 13:39:37.806


Broadcast delay: 0.003906 (sec)


Auth delay:
0.000122 (sec)

主网络时钟服务器地址


System flags:
bclient pll monitor filegen


System uptime:
12951 (sec)


Clock stability: 0.000336 (sec)


Clock frequency: 0.000000 (sec)


Peer: X1.X1.X1.X1

辅助网络时钟服务器地址


flags: (configured)(sys peer)


stratum:
1, version: 3


our mode: client, his mode: server


Peer: X2.X2.X2.X2


flags: (configured)(sys peer)


stratum:
2, version: 3


our mode: client, his mode: server

Subsystem
Group
PID
Status


xntpd
tcpip
385242
active收起

互联网服务 · 2010-04-19
浏览6164
brillianceraybrilliancerayDBA富伦麦柯
p655b:root@/>#lssrc -ls xntpd0513-036 The request could not be passed to the xntpd subsystem.Start the subsystem and try your command again.cat /etc/ntp.conf# Default NTP configuration file.##   Broadcast client, no authentication.#broadcas...显示全部
p655b:root@/>#lssrc -ls xntpd
0513-036 The request could not be passed to the xntpd subsystem.
Start the subsystem and try your command again.

cat /etc/ntp.conf
# Default NTP configuration file.
#
#   Broadcast client, no authentication.
#
broadcastclient
server 10.154.1.20
server 10.254.96.101
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace

p655b:root@/>#ntpdate -d 10.154.1.20
19 Apr 11:28:42 ntpdate[86106]: 3.4y
transmit(10.154.1.20)
receive(10.154.1.20)
transmit(10.154.1.20)
receive(10.154.1.20)
transmit(10.154.1.20)
receive(10.154.1.20)
transmit(10.154.1.20)
receive(10.154.1.20)
transmit(10.154.1.20)
server 10.154.1.20, port 123
stratum 3, precision -18, leap 00, trust 000
refid [10.254.17.253], delay 0.02664, dispersion 0.00006
transmitted 4, in filter 4
reference time:      cf764a92.13eab000  Sun, Apr 18 2010 22:20:50.077
originate timestamp: cf764ab6.fc690000  Sun, Apr 18 2010 22:21:26.985
transmit timestamp:  cf77033b.1255d000  Mon, Apr 19 2010 11:28:43.071
filter delay:  0.02667  0.02664  0.02675  0.02666
               0.00000  0.00000  0.00000  0.00000
filter offset: -47236.0 -47236.0 -47236.0 -47236.0
               0.000000 0.000000 0.000000 0.000000
delay 0.02664, dispersion 0.00006
offset -47236.086104

19 Apr 11:28:43 ntpdate[86106]: step time server 10.154.1.20 offset -47236.08610
4 sec
p655b:root@/>#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:   -18
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
Broadcast delay: 0.003906 (sec)
Auth delay:      0.000122 (sec)
System flags:    bclient pll monitor filegen
System uptime:   7 (sec)
Clock stability: 0.000000 (sec)
Clock frequency: 0.000000 (sec)
Peer: 10.254.96.101
      flags: (configured)
      stratum:  1, version: 3
      our mode: client, his mode: server
Peer: 10.154.1.20
      flags: (configured)
      stratum:  3, version: 3
      our mode: client, his mode: server
Subsystem         Group            PID          Status
xntpd            tcpip            86110        active收起
IT分销/经销 · 2010-04-19
浏览6612
myguangzhoumyguangzhou技术经理Uniwise
# lssrc -t xntpd0513-008 The subserver type, xntpd, is not on file.# lssrc -s xntpdSubsystem         Group            PID          Status xntpd ...显示全部
# lssrc -t xntpd
0513-008 The subserver type, xntpd, is not on file.
# lssrc -s xntpd
Subsystem         Group            PID          Status
xntpd            tcpip                         inoperative
# lssrc -g xntpd
0513-086 The xntpd Group is not on file.
# startsrc -s xntpd
0513-059 The xntpd Subsystem has been started. Subsystem PID is 20352.
# lssrc -s xntpd
Subsystem         Group            PID          Status
xntpd            tcpip            20352        active
#

你帖子上提到用startsrc -g xntpd来启动,这是不对的呀,应该用-s,我刚刚试了一下收起
互联网服务 · 2010-04-19
浏览6926
rhua310rhua310软件开发工程师安图特
1、编辑 NTP 客户端上的 /etc/ntp.conf文件, 内容如下(假设XX.XX.XX.XX是所要使用的 NTP服务器IP地址): ----------------------------#broadcastclient server XX.XX.XX.XX driftfile /etc/ntp.drift racefile /etc/ntp.trace ----------------------------其中配置语句...显示全部

1、编辑 NTP 客户端上的 /etc/ntp.conf文件, 内容如下(假设XX.XX.XX.XX是所要使用的 NTP服务器IP地址): ----------------------------
#broadcastclient
server XX.XX.XX.XX
driftfile /etc/ntp.drift
racefile /etc/ntp.trace
----------------------------

其中配置语句server XX.XX.XX.XX表明, 所客户端将于与IP地址为 XX.XX.XX.XX 的NTP服务器进行时间同步.

2、执行#ntpdate -d XX.XX.XX.XX检查客户端与服务器的时间偏移量是否大于1000s...
18 Mar 10:52:54 ntpdate[23578]: step time server 10.254.96.101 offset 86323.06827


如上命令执行结果所示,客户端与服务器端的时间偏移量过大,因此即使启动客户端xntpd守护进程也会导致客户端无法与服务器端进行时间同步。因此必须首先执行第3步调整客户端时间。

3、使用ntpdate调整客户端时间

#ntpdate XX.XX.XX.XX


完成上述操作后 ntp 客户端与 ntp 服务器系统时钟完成同步,ntp 客户端得到了新的系统时间。继续执行以下步骤。

4、启动客户端xntpd守护进程

# startsrc -s xntpd

也可通过调用smitty , 使 xntpd 在以后重启服务器时能自动启动。

# smitty xntpd

5、查询xntpd的运行状态# lssrc -ls xntpd
Program name:
/usr/sbin/xntpd

Version:
3

Leap indicator: 00 (No leap second today.)
Sys peer:
no peer, system is insane
[/i]
[i]...

如上所示,当 system peer 为 'insane' 时, 表明客户端还未与服务器端成功同步。一般情况下等待5分钟,再进行检查。# lssrc -ls xntpd
Program name:
/usr/sbin/xntpd

Version:
3

Leap indicator: 00 (No leap second today.)
Sys peer:
XX.XX.XX.XX

...

如上所示,当 system peer 为 ' XX.XX.XX.XX ' 时, 表明客户端与服务器端成功进行了同步。收起

互联网服务 · 2010-04-19
浏览6067
rhua310rhua310软件开发工程师安图特
你再按我的步骤试下 进程启动了不该停了啊显示全部
你再按我的步骤试下 进程启动了不该停了啊收起
互联网服务 · 2010-04-19
浏览6088

提问者

brillianceray
DBA富伦麦柯
擅长领域: 服务器AIXUnix

相关问题

相关资料

相关文章

问题状态

  • 发布时间:2010-04-19
  • 关注会员:0 人
  • 问题浏览:26930
  • 最近回答:2013-11-23
  • X社区推广