CRS-2409問題的處理

dingzihan發表於2014-07-07
今天在例行資料庫檢查時,發現 日誌裡有關於時間同步問題的日誌資訊。
      報錯日誌如下:
2014-07-04 13:40:33.301
[ctssd(15137)]CRS-2409:The clock on host rac-1 is not synchronous with the mean cluster time. No action has been taken as the Cluster Time Synchronization Service is running in observer mode.
2014-07-04 14:10:34.009
[ctssd(15137)]CRS-2409:The clock on host rac-1 is not synchronous with the mean cluster time. No action has been taken as the Cluster Time Synchronization Service is running in observer mode.
1、報錯資訊問題的分析
1)作業系統的NTPD服務處於啟動狀態,ctssd就不合作,但是隻要ctssd服務啟動,正常情況下應該處於觀察模式。
2)當前OS的NTPD的服務正在執行,並且ctssd不能處於觀察模式執行


2、排除過程
1)檢查兩個節點時間是否存在差異
    ssh rac-2  date
    date
2)檢查OS的NTPD服務
    # service ntpd status
    ntpd is stopped
3)檢查ctssd的執行情況
    su  -  grid
  crsctl  stat  res  ora.ctssd  -init
4) 藉助crs的cluvfy工具診斷ctss錯誤的原因
    cluvfy   comp  clocksync  -n  all  -verbose
   cd /oracle/app/11.2/grid/bin/
 ./cluvfy comp clocksync -n all -verbose




Verifying Clock Synchronization across the cluster nodes 




Checking if Clusterware is installed on all nodes...
Check of Clusterware install passed




Checking if CTSS Resource is running on all nodes...
Check: CTSS Resource running on all nodes
  Node Name                             Status                  
  ------------------------------------  ------------------------
  rac-2                                 passed                  
  rac-1                                 passed                  
Result: CTSS resource check passed


Querying CTSS for time offset on all nodes...
Result: Query of CTSS for time offset passed


Check CTSS state started...
Check: CTSS state
  Node Name                             State                   
  ------------------------------------  ------------------------
  rac-2                                 Observer                
  rac-1                                 Observer                
CTSS is in Observer state. Switching over to clock synchronization checks using NTP


Starting Clock synchronization checks using Network Time Protocol(NTP)...


NTP Configuration file check started...
The NTP configuration file "/etc/ntp.conf" is available on all nodes
NTP Configuration file check passed


Checking daemon liveness...


Check: Liveness for "ntpd"
  Node Name                             Running?                
  ------------------------------------  ------------------------
  rac-2                                 no                      
  rac-1                                 no                      
Result: Liveness check failed for "ntpd"
PRVF-5494 : The NTP Daemon or Service was not alive on all nodes
PRVF-5415 : Check to see if NTP daemon or service is running failed
Result: Clock synchronization check using Network Time Protocol(NTP) failed


PRVF-9652 : Cluster Time Synchronization Services check failed


Verification of Clock Synchronization across the cluster nodes was unsuccessful on all the specified nodes. 


5)檢查OS層ntpd的配置
   /etc/ntp.conf
   /etc/rc.tcpip


3、問題的處理方法(兩個節點都執行)
1)停用ctssd (grid使用者執行)
    crsctl  stop  resource ora.ctssd  -init
2) 停止ntpd (root使用者執行)
    stopsrc  -s  xntpd
3) 啟動ntpd,加入”-X“ 模式 (root使用者執行,啟動需幾分鐘)
   startsrc  -s xntpd  -a  "-X"
4) 啟動ctssd (grid 使用者執行)
    crsctl  start  resource  ora.ctssd  -init

來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/22969361/viewspace-1211303/,如需轉載,請註明出處,否則將追究法律責任。

相關文章