服务器为Solaris平台,上面跑着ERP (2RAC node+4AP node),因某台AP时间比其他服务器快8分钟,导致ERP中“运行停靠站-SRS”等请求报错,处理思路:
选一台DB作为NTP服务器,其余的服务器向他同步
1. Server,名称为COMPARDRAC1:
cd /etc/inet/
cp ntf.server ntf.conf
vi ntf.conf
server 127.127.1.0
fudge 127.127.1.0 stratum 0
#broadcast 224.0.1.1 ttl 4
enable auth monitor
driftfile /var/ntp/ntp.drift
statsdir /var/ntp/ntpstats/
filegen peerstats file peerstats type day enable
filegen loopstats file loopstats type day enable
filegen clockstats file clockstats type day enable
keys /etc/inet/ntp.keys
trustedkey 0
requestkey 0
controlkey 0
touch /var/ntp/ntp.drift
cd /usr/lib/inet
svcadm enable svc:/network/ntp
等待5分钟左右,确认指令:
ntpq -p
remote refid st t when poll reach delay offset disp
==============================================================================
*LOCAL(0) .LCL. 0 l 31 64 1 0.00 0.000 15885.0
2. Client
cp /etc/inet/ntp.client /etc/inet/ntp.conf
vi /etc/inet/ntp.conf
server COMPARDNTPS0 prefer
touch /var/ntp/ntp.drift
svcadm enable svc:/network/ntp
等待5分钟左右,确认
ntpq -p
remote refid st t when poll reach delay offset disp
====================================================
*COMPARDRAC0 .LCL. 1 u 591 1024 377 0.66 0.086 0.14
3. 停止、启动NTP服务
svcadm disable svc:/network/ntp
svcadm enable svc:/network/ntp
svcadm refresh svc:/network/ntp
svcadm restart svc:/network/ntp
4. 查看服务
ps -ef|grep ntp
ntpq -p