11gr2通過配置ntp.conf來觀察ctssd.log中CTSSD模式為ACTIVE或者observer

還不算暈發表於2016-12-10
1.未配置NTP,且移除/etc/ntp.conf配置檔案
2016-12-10 22:39:17.459: [    CTSS][156329728]ctss_main: The Cluster Time Synchronization Service is started with option [reboot].
2016-12-10 22:39:17.459: [    CTSS][156329728]ctss_scls_init: SCLs Context is 0x19bd3b0
[  clsdmt][149878528]Listening to (ADDRESS=(PROTOCOL=ipc)(KEY=bys1DBG_CTSSD))
2016-12-10 22:39:17.469: [  clsdmt][149878528]PID for the Process [2460], connkey 11
2016-12-10 22:39:17.470: [  clsdmt][149878528]Creating PID [2460] file for home /u01/11.2.0/grid host bys1 bin ctss to /u01/11.2.0/gri
d/ctss/init/
2016-12-10 22:39:17.470: [  clsdmt][149878528]Writing PID [2460] to the file [/u01/11.2.0/grid/ctss/init/bys1.pid]
2016-12-10 22:39:18.193: [    CTSS][149878528]ctss_checkcb: clsdm requested check alive. checkcb_data{mode[0x40], offset[0 ms]}, lengt
h=[8].
2016-12-10 22:39:18.206: [    CTSS][156329728]ctss_css_init: CSS Context is 0x19ce210
2016-12-10 22:39:18.206: [    CTSS][156329728]ctss_init: CTSS production mode
2016-12-10 22:39:18.206: [    CTSS][156329728]ctss_init: Env var CTSS_REBOOT is undefined or contains non-boolean value. Ignoring CTSS_REBOOT.
----以上可以看到叢集啟動時CTSSD啟動,及相關的PID資訊
2016-12-10 22:39:18.206: [    CTSS][156329728]sclsctss_gvss2: NTP default pid file not found
2016-12-10 22:39:18.206: [    CTSS][156329728]sclsctss_gvss8: Return [0] and NTP status [1].
2016-12-10 22:39:18.206: [    CTSS][156329728]ctss_check_vendor_sw: Vendor time sync software is not detected. status [1].
2016-12-10 22:39:18.206: [    GIPC][156329728] gipcCheckInitialization: possible incompatible non-threaded init from [prom.c : 694], original from [clsss.c : 5358]
-------沒有檢測到NTP及其它時間同步軟體,CTSSD為ACTIVE模式(結合下面配置ntp.conf時的日誌判斷)
2016-12-10 22:39:18.210: [ default][156329728]clsvactversion:4: Retrieving Active Version from local storage.
2016-12-10 22:39:18.211: [    CTSS][156329728]clsctss_r_av4: Current active version [11.2.0.4.0] [186647552].
2016-12-10 22:39:18.213: [  CRSCCL][156329728]clsCclInit called by process 2460: groupname=CTSSGROUP commOptions=0 clusterType=0
2016-12-10 22:39:18.213: [  CRSCCL][156329728]Software version: 11.2.0.4.0.
2016-12-10 22:39:18.214: [  OCRMSG][156329728]prom_waitconnect: CONN NOT ESTABLISHED (0,29,1,2)


##########################################
2.未配置NTP,但是存在/etc/ntp.conf配置檔案
 
2016-12-10 23:03:38.020: [    CTSS][3066242816]ctss_main: The Cluster Time Synchronization Service is started with option [reboot].
2016-12-10 23:03:38.020: [    CTSS][3066242816]ctss_scls_init: SCLs Context is 0x11363b0
[  clsdmt][3059791616]Listening to (ADDRESS=(PROTOCOL=ipc)(KEY=bys1DBG_CTSSD))
2016-12-10 23:03:38.026: [  clsdmt][3059791616]PID for the Process [10797], connkey 11
2016-12-10 23:03:38.026: [  clsdmt][3059791616]Creating PID [10797] file for home /u01/11.2.0/grid host bys1 bin ctss to /u01/11.2.0/grid/ctss/init/
2016-12-10 23:03:38.027: [  clsdmt][3059791616]Writing PID [10797] to the file [/u01/11.2.0/grid/ctss/init/bys1.pid]
2016-12-10 23:03:38.915: [    CTSS][3059791616]ctss_checkcb: clsdm requested check alive. checkcb_data{mode[0x40], offset[0 ms]}, length=[8].
2016-12-10 23:03:38.918: [    CTSS][3066242816]ctss_css_init: CSS Context is 0x1147210
2016-12-10 23:03:38.918: [    CTSS][3066242816]ctss_init: CTSS production mode
2016-12-10 23:03:38.919: [    CTSS][3066242816]ctss_init: Env var CTSS_REBOOT is undefined or contains non-boolean value. Ignoring CTSS_REBOOT.

----以上可以看到叢集啟動時CTSSD啟動,及相關的PID資訊

2016-12-10 23:03:38.919: [    CTSS][3066242816]sclsctss_gvss1: NTP default config file found  ----發現了NTP的配置檔案
2016-12-10 23:03:38.919: [    CTSS][3066242816]sclsctss_gvss8: Return [0] and NTP status [2].
2016-12-10 23:03:38.919: [    CTSS][3066242816]ctss_check_vendor_sw: Vendor time sync software is detected. status [2].

2016-12-10 23:03:38.919: [    CTSS][3066242816]ctss_check_vendor_sw: Ctssd is switching to observer role  ----CTSSD切換為observer觀察者模式

2016-12-10 23:03:38.920: [    GIPC][3066242816] gipcCheckInitialization: possible incompatible non-threaded init from [prom.c : 694], original from [clsss.c : 5358]
2016-12-10 23:03:38.921: [ default][3066242816]clsvactversion:4: Retrieving Active Version from local storage.
2016-12-10 23:03:38.923: [    CTSS][3066242816]clsctss_r_av4: Current active version [11.2.0.4.0] [186647552].
2016-12-10 23:03:38.924: [  CRSCCL][3066242816]clsCclInit called by process 10797: groupname=CTSSGROUP commOptions=0 clusterType=0
2016-12-10 23:03:38.925: [  CRSCCL][3066242816]Software version: 11.2.0.4.0.
2016-12-10 23:03:38.925: [  OCRMSG][3066242816]prom_waitconnect: CONN NOT ESTABLISHED (0,29,1,2)
2016-12-10 23:03:38.926: [  OCRMSG][3066242816]GIPC error [29] msg [gipcretConnectionRefused]
2016-12-10 23:03:38.926: [  OCRMSG][3066242816]prom_connect: error while waiting for connection complete [24]
2016-12-10 23:03:38.926: [  CRSCCL][3066242816]Failed to init OCR to get active version. PROC-32: Cluster Ready Services on the local node is not running Messaging error [gipcretConnectionRefused] [29]Checking active version in OLR.
2016-12-10 23:03:38.928: [ default][3066242816]clsvactversion:4: Retrieving Active Version from local storage.
2016-12-10 23:03:38.930: [  CRSCCL][3066242816]Active version: 11.2.0.4.0.
2016-12-10 23:03:38.931: [  CRSCCL][3066242816]USING GIPC ============
2016-12-10 23:03:38.931: [  CRSCCL][3066242816]clsCclGipcListen: Attempting to listen on gipcha://bys1:CTSSGROUP_1.
2016-12-10 23:03:38.932: [GIPCHGEN][3066242816] gipchaInternalRegister: Initializing HA GIPC
2016-12-10 23:03:38.932: [GIPCHGEN][3066242816] gipchaNodeCreate: adding new node 0x1271b40 { host '', haName '981d-9f80-3574-cb76', srcLuid 2b8bd76d-00000000, dstLuid 00000000-00000000 numInf 0, contigSeq 0, lastAck 0, lastValidAck 0, sendSeq [0 : 0], createTime 1227934, sentRegister 0, localMonitor 0, flags 0x1 }
2016-12-10 23:03:38.932: [GIPCHTHR][3051460352] gipchaWorkerThread: starting worker thread hctx 0x125d7e0 [0000000000000010] { gipchaContext : host 'bys1', name '981d-9f80-3574-cb76', luid '2b8bd76d-00000000', numNode 0, numInf 0, usrFlags 0x0, flags 0xc000 }
2016-12-10 23:03:38.933: [GIPCHDEM][3049359104] gipchaDaemonThread: starting daemon thread hctx 0x125d7e0 [0000000000000010] { gipchaContext : host 'bys1', name '981d-9f80-3574-cb76', luid '2b8bd76d-00000000', numNode 0, numInf 0, usrFlags 0x0, flags 0xc000 }
2016-12-10 23:03:38.958: [GIPCHGEN][3049359104] gipchaNodeAddInterface: adding interface information for inf 0x7faaa400c0c0 { host '', haName '981d-9f80-3574-cb76', local (nil), ip '192.168.59.1', subnet '192.168.59.0', mask '255.255.255.0', mac '08-00-27-64-b0-1c', ifname 'eth1', numRef 0, numFail 0, idxBoot 0, flags 0x1 }
2016-12-10 23:03:39.160: [GIPCXCPT][3066242816] gipchaInternalResolve: failed to resolve ret gipcretKeyNotFound (36), host 'bys1', port 'CTSSGROUP_1', hctx 0x125d7e0 [0000000000000010] { gipchaContext : host 'bys1', name '981d-9f80-3574-cb76', luid '2b8bd76d-00000000', numNode 0, numInf 1, usrFlags 0x0, flags 0x5 }, ret gipcretKeyNotFound (36)
2016-12-10 23:03:39.160: [GIPCHGEN][3066242816] gipchaResolveF [gipcmodGipcResolve : gipcmodGipc.c : 809]: EXCEPTION[ ret gipcretKeyNotFound (36) ]  failed to resolve ctx 0x125d7e0 [0000000000000010] { gipchaContext : host 'bys1', name '981d-9f80-3574-cb76', luid '2b8bd76d-00000000', numNode 0, numInf 1, usrFlags 0x0, flags 0x5 }, host 'bys1', port 'CTSSGROUP_1', flags 0x0
2016-12-10 23:03:39.161: [GIPCHTHR][3051460352] gipchaWorkerCreateInterface: created local interface for node 'bys1', haName '981d-9f80-3574-cb76', inf 'udp://192.168.59.1:63850'
2016-12-10 23:03:39.162: [  CRSCCL][3066242816]gipcListen() Listening on gipcha://bys1:CTSSGROUP_1
2016-12-10 23:03:39.164: [  CRSCCL][3047257856]CSS Group Registration complete.

2016-12-10 23:03:39.164: [  CRSCCL][3047257856]cclGetMemberData called
2016-12-10 23:03:39.165: [  CRSCCL][3047257856]Member (1, 1228164, bys1:11.2.0.4.0) @  found.

2016-12-10 23:03:39.166: [  CRSCCL][3047257856]Obtained first membership map.

2016-12-10 23:03:39.166: [  CRSCCL][3047257856]Dumping member data ------------------
2016-12-10 23:03:39.166: [  CRSCCL][3047257856]Member (1, 1228164) on node bys1 port=.
2016-12-10 23:03:39.167: [  CRSCCL][3047257856]Done ------------------
2016-12-10 23:03:39.167: [    CTSS][3066242816]ctss_ccl_init4: clsCclInitWithCtx() finished. The local nodenum is [1].
2016-12-10 23:03:39.167: [    CTSS][3066242816]ctss_ccl_init6: Retrieved grpmap.
2016-12-10 23:03:39.168: [    CTSS][3066242816]ctss_ccl_init99: Successfully initialize CCL
2016-12-10 23:03:39.168: [    CTSS][3066242816]ctss_init: Spawn completed. Waiting for threads to join
2016-12-10 23:03:39.168: [    CTSS][3047257856]ctsselect_msccb1: Receive membership change event. Inc num[1] New master [1] members count[1]
2016-12-10 23:03:39.168: [    CTSS][3047257856]ctsselect_msccb9: The local node [1] is the CTSS master
2016-12-10 23:03:39.168: [  CRSCCL][3047257856]clsCclGetPriMemData: memDataSize[16] is too small. Requires [256]. Returns [14]
2016-12-10 23:03:39.168: [    CTSS][3047257856]ctsselect_gpd1: Size of pridata for node [1] is [256]. Passed [16].
2016-12-10 23:03:39.169: [    CTSS][3047257856](:ctss_e_rmmsr_2_1:: Failed to retrieve peer member data [14]. Need to alloc bigger buffer [16].
2016-12-10 23:03:39.169: [    CTSS][3047257856](:ctss_e_rmmsr_4:): Pri data for member [1]. {Version [1] Node [-1] SW version [186647552] Mode [0x62]}
2016-12-10 23:03:39.169: [    CTSS][3047257856](:ctss_e_rmmsr_5:): Detected vendor time sync sw on peer [1].
2016-12-10 23:03:39.169: [    CTSS][3047257856](:ctss_e_rmmsr_9:): Return [0]
2016-12-10 23:03:39.169: [  CRSCCL][3047257856]Waiting for reconfigs
2016-12-10 23:03:39.170: [  CRSCCL][3047257856]clsCclGetPriMemberData: Detected pridata change for node[1]. Retrieving it to the cache.
[    CTSS][3038471936]ctsselect_msm: Slave Monitor thread started
2016-12-10 23:03:39.170: [    CTSS][3038471936]ctsselect_msm: CTSS mode is [0xee]
[    CTSS][3040573184]clsctsselect_mm: Master Monitor thread started
2016-12-10 23:03:39.172: [    CTSS][3036370688]ctsselect_vermon5: Successfully registered with [crs_version]
2016-12-10 23:03:39.172: [    CTSS][3036370688]ctsselect_vermon7: Expecting clssgsevGRPPRIV event. Ignoring 1 event.
2016-12-10 23:03:39.172: [  CRSCCL][3044775680]cclCommunicationHandler started.
2016-12-10 23:03:39.923: [    CTSS][3059791616]ctss_checkcb: clsdm requested check alive. checkcb_data{mode[0xee], offset[0 ms]}, length=[8].
2016-12-10 23:03:39.927: [    CTSS][3059791616]ctss_checkcb: clsdm requested check alive. checkcb_data{mode[0xee], offset[0 ms]}, length=[8].
2016-12-10 23:03:40.921: [    CTSS][3059791616]ctss_checkcb: clsdm requested check alive. checkcb_data{mode[0xee], offset[0 ms]}, length=[8].
2016-12-10 23:03:40.924: [    CTSS][3059791616]ctss_checkcb: clsdm requested check alive. checkcb_data{mode[0xee], offset[0 ms]}, length=[8].
2016-12-10 23:03:40.931: [    CTSS][3059791616]ctss_checkcb: clsdm requested check alive. checkcb_data{mode[0xee], offset[0 ms]}, length=[8].
2016-12-10 23:03:40.934: [    CTSS][3059791616]ctss_checkcb: clsdm requested check alive. checkcb_data{mode[0xee], offset[0 ms]}, length=[8].
2016-12-10 23:04:04.174: [    CTSS][3036370688]ctsselect_vermon7: Expecting clssgsevGRPPRIV event. Ignoring 1 event.
2016-12-10 23:04:04.174: [    CTSS][3036370688]ctsselect_vermon8: Received clssgsevGRPPRIV event.
2016-12-10 23:04:04.175: [    CTSS][3036370688]ctsselect_vermon10_1: Retrieved av_data from grp pridata. Upgrade state [11].
2016-12-10 23:04:04.175: [    CTSS][3036370688]ctsselect_vermon11: Retrieved Active Version [186647552].
2016-12-10 23:04:04.175: [    CTSS][3036370688]ctsselect_vermon12: Active version[186647552] didn't change.
2016-12-10 23:04:09.171: [    CTSS][3040573184]sclsctss_gvss1: NTP default config file found
2016-12-10 23:04:09.171: [    CTSS][3040573184]sclsctss_gvss8: Return [0] and NTP status [2].
2016-12-10 23:04:09.171: [    CTSS][3040573184]ctss_check_vendor_sw: Vendor time sync software is detected. status [2].
2016-12-10 23:04:09.926: [    CTSS][3059791616]ctss_checkcb: clsdm requested check alive. checkcb_data{mode[0xee], offset[0 ms]}, length=[8].

相關文章