[时钟同步]Can't create ASM instance on node2 during running root.sh on node2 due to Time Syc

来源:互联网 发布:周金涛2019买点知乎 编辑:程序博客网 时间:2024/06/05 23:52
Can't create ASM instance on node2 during running root.sh on node2 due to time syc
  • Problem Description:
Run /u01/app/12.1.0.2/grid/root.sh on node2 after it succesully on node1.Died at /u01/app/12.1.0.2/grid/crs/install/crsinstall.pm line 914.The command '/u01/app/12.1.0.2/grid/perl/bin/perl -I/u01/app/12.1.0.2/grid/perl/lib -I/u01/app/12.1.0.2/grid/crs/install /u01/app/12.1.0.2/grid/crs/install/rootcrs.pl ' execution failed
  • DIAGNOSTIC ANALYSIS:
Log1:   /u01/app/crsusr/diag/crs/itqe-t5-2-2-zn1/crs/trace/octssd.trc------------------------------------------------------------------------------------------------...2014-12-04 09:26:29.461972 :    CTSS:10: ctssslave_swm: Failed in sclsctss_set_timeofday [1]    CTSS:10: SLOS : SLOS: cat=-2, opn=settimeofday, dep=1, loc=sctss_std.22014-12-04 09:26:29.462005 :    CTSS:10: ctsselect_monitor_steysync_mode: Failed in clsctssslave_sync_with_master [9]....------------------------------------------------------------------------------------------------Log2:   /u01/app/12.1.0.2/grid/cfgtoollogs/crsconfig/rootcrs_itqe-t5-2-2-zn1_2014-12-04_09-23-19AM.log=============================================================================================This is about time sync issue: root@itqe-t5-2-2-zn1:~# dateThursday, December  4, 2014 10:25:07 AM UTCroot@itqe-t5-2-1-zn1:/u01/app/12.1.0.2/grid/bin# dateThursday, December  4, 2014 10:02:51 AM UTC=============================================================================================
  • Solution:
    • So we must have the two node as ntp clients 时钟同步 with NTP server from USA.
      • 1.Install package (which time:dgram time:stream will use )
$ pkg install /service/network/legacy-network-services
      • 2.创建ntp客户端配置文件 on two nodes.

$ touch /etc/inet/ntp.conf $ chown root:sys /etc/inet/ntp.conf

      • 3.编辑ntp.conf,设置同步时间的服务器 on two nodes.
        • vi /etc/inet/ntp.conf
          • Add the following line into ntp.conf file.
server 10.134.151.1 prefer
          • Note:Here our two nodes's IP is 10.134.151.XX,so we can add our router IP to the above file.
      • 4.Ensure that the slewing option
/usr/sbin/svccfg -s svc:/network/ntp:default setprop config/slew_always = truesvcadm refresh svc:/network/ntp:default 
      • 5.Restart services on two nodes:
        • Wrote a shell sript--rssmf.sh:
#! /bin/shsvcadm disable svc:/network/ntp:defaultsvcadm enable svc:/network/ntp:defaultsvcs -a | grep timesvcadm disable time:dgramsvcadm enable time:dgramsvcadm disable time:streamsvcadm enable time:streamsleep 120ntpq -p
          • Note:ntpq -p will output the following results:
root@itqe-t5-2-2-ld1:~# ntpq -p     remote           refid      st t when poll reach   delay   offset  jitter==============================================================================*santaclara12-sy 144.25.255.140   3 u   22   64  377    0.409    0.935   4.101
            • 看到前面出现*,offset不断变小,则工作正常。
      • 6.Test the time syc with date.
        • Refenece:[http://blog.csdn.net/jacky0922/article/details/8535402

Solaris时间同步设置 ]

0 0
原创粉丝点击