在RAC中配置NTPD時間同步
When the installer finds that the NTP protocol is not active, the Cluster Time
Synchronization Service is installed in active mode and synchronizes the time across
the nodes. If NTP is found configured, then the Cluster Time Synchronization Service
is started in observer mode, and no active time synchronization is performed by
Oracle Clusterware within the cluster.
To confirm that ctssd is active after installation, enter the following command as the
Grid installation owner:
$ crsctl check ctss
If you are using NTP, and you prefer to continue using it instead of Cluster Time
Synchronization Service, then you need to modify the NTP configuration to set the -x
flag, which prevents time from being adjusted backward. Restart the network time
protocol daemon after you complete this task.
To do this, on Oracle Linux, Red Hat Linux, and Asianux systems, edit the
/etc/sysconfig/ntpd file to add the -x flag, as in the following example:
# Drop root to id 'ntp:ntp' by default.
OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"
# Set to 'yes' to sync hw clock after successful ntpdate
SYNC_HWCLOCK=no
# Additional options for ntpdate
NTPDATE_OPTIONS=""
Then, restart the NTP service.
# /sbin/service ntp restart
On SUSE systems, modify the configuration file /etc/sysconfig/ntp with the
following settings:
NTPD_OPTIONS="-x -u ntp"
Restart the daemon using the following command:
# service ntp restart
Cluster Time Management(叢集時間管理)
The Cluster Time Synchronization Service (CTSS) is installed as part of Oracle Clusterware and runs in observer mode if it detects a time synchronization service or a time synchronization service configuration, valid or broken, on the system. If CTSS detects that there is no time synchronization service or time synchronization service configuration on any node in the cluster, then CTSS goes into active mode and takes over time management for the cluster. When nodes join the cluster, if CTSS is in active mode, then it compares the time on those nodes to a reference clock located on one node in the cluster. If there is a discrepancy between the two times and the discrepancy is within a certain stepping limit, then CTSS performs step time synchronization, which is to step the time of the nodes joining the cluster to synchronize them with the reference.
When Oracle Clusterware starts, if CTSS is running in active mode and the time discrepancy is outside the stepping limit (the limit is 24 hours), then CTSS generates an alert in the alert log, exits, and Oracle Clusterware startup fails. You must manually adjust the time of the nodes joining the cluster to synchronize with the cluster, after which Oracle Clusterware can start and CTSS can manage the time for the nodes.
Clocks on the nodes in the cluster become desynchronized with the reference clock (a time CTSS uses as a basis and is on the first node started in the cluster) periodically for various reasons. When this happens, CTSS performs slew time synchronization, which is to speed up or slow down the system time on the nodes until they are synchronized with the reference system time. In this time synchronization method, CTSS does not adjust time backward, which guarantees monotonic increase of the system time.
When performing slew time synchronization, CTSS never runs time backward to synchronize with the reference clock. CTSS periodically writes alerts to the alert log containing information about how often it adjusts time on nodes to keep them synchronized with the reference clock.
To activate CTSS in your cluster, you must stop and deconfigure the vendor time synchronization service on all nodes in the cluster. CTSS detects when this happens and assumes time management for the cluster.
For example, to deconfigure NTP, you must remove or rename the ntp.conf file. Similarly, if you want to deactivate CTSS in your cluster, then do the following:
1. Configure the vendor time synchronization service on all nodes in the cluster. CTSS detects this change and reverts back to observer mode.
2. Use the crsctl check ctss command to ensure that CTSS is operating in observer mode.
3. Start the vendor time synchronization service on all nodes in the cluster.
4. Use the cluvfy comp clocksync -n all command to verify that the vendor time synchronization service is operating.
Synchronization Service is installed in active mode and synchronizes the time across
the nodes. If NTP is found configured, then the Cluster Time Synchronization Service
is started in observer mode, and no active time synchronization is performed by
Oracle Clusterware within the cluster.
To confirm that ctssd is active after installation, enter the following command as the
Grid installation owner:
$ crsctl check ctss
If you are using NTP, and you prefer to continue using it instead of Cluster Time
Synchronization Service, then you need to modify the NTP configuration to set the -x
flag, which prevents time from being adjusted backward. Restart the network time
protocol daemon after you complete this task.
To do this, on Oracle Linux, Red Hat Linux, and Asianux systems, edit the
/etc/sysconfig/ntpd file to add the -x flag, as in the following example:
# Drop root to id 'ntp:ntp' by default.
OPTIONS="-x -u ntp:ntp -p /var/run/ntpd.pid"
# Set to 'yes' to sync hw clock after successful ntpdate
SYNC_HWCLOCK=no
# Additional options for ntpdate
NTPDATE_OPTIONS=""
Then, restart the NTP service.
# /sbin/service ntp restart
On SUSE systems, modify the configuration file /etc/sysconfig/ntp with the
following settings:
NTPD_OPTIONS="-x -u ntp"
Restart the daemon using the following command:
# service ntp restart
Cluster Time Management(叢集時間管理)
The Cluster Time Synchronization Service (CTSS) is installed as part of Oracle Clusterware and runs in observer mode if it detects a time synchronization service or a time synchronization service configuration, valid or broken, on the system. If CTSS detects that there is no time synchronization service or time synchronization service configuration on any node in the cluster, then CTSS goes into active mode and takes over time management for the cluster. When nodes join the cluster, if CTSS is in active mode, then it compares the time on those nodes to a reference clock located on one node in the cluster. If there is a discrepancy between the two times and the discrepancy is within a certain stepping limit, then CTSS performs step time synchronization, which is to step the time of the nodes joining the cluster to synchronize them with the reference.
When Oracle Clusterware starts, if CTSS is running in active mode and the time discrepancy is outside the stepping limit (the limit is 24 hours), then CTSS generates an alert in the alert log, exits, and Oracle Clusterware startup fails. You must manually adjust the time of the nodes joining the cluster to synchronize with the cluster, after which Oracle Clusterware can start and CTSS can manage the time for the nodes.
Clocks on the nodes in the cluster become desynchronized with the reference clock (a time CTSS uses as a basis and is on the first node started in the cluster) periodically for various reasons. When this happens, CTSS performs slew time synchronization, which is to speed up or slow down the system time on the nodes until they are synchronized with the reference system time. In this time synchronization method, CTSS does not adjust time backward, which guarantees monotonic increase of the system time.
When performing slew time synchronization, CTSS never runs time backward to synchronize with the reference clock. CTSS periodically writes alerts to the alert log containing information about how often it adjusts time on nodes to keep them synchronized with the reference clock.
To activate CTSS in your cluster, you must stop and deconfigure the vendor time synchronization service on all nodes in the cluster. CTSS detects when this happens and assumes time management for the cluster.
For example, to deconfigure NTP, you must remove or rename the ntp.conf file. Similarly, if you want to deactivate CTSS in your cluster, then do the following:
1. Configure the vendor time synchronization service on all nodes in the cluster. CTSS detects this change and reverts back to observer mode.
2. Use the crsctl check ctss command to ensure that CTSS is operating in observer mode.
3. Start the vendor time synchronization service on all nodes in the cluster.
4. Use the cluvfy comp clocksync -n all command to verify that the vendor time synchronization service is operating.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29802484/viewspace-2097762/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- ntpd 時間同步
- 讓FreeBSD使用ntpd同步時間(轉)
- oracle rac中設定時間同步Oracle
- Oracle 11G RAC ntp時間同步配置Oracle
- Oracle 10g RAC之配置時間同步Oracle 10g
- Oracle rac時間不同步Oracle
- Oracle RAC時間同步(NTP/CTSS)Oracle
- RAC的時間同步問題
- NTP配置時間同步
- RAC時間同步的兩種方式
- Linux 時間同步配置Linux
- oracle RAC 11G 時間同步策略Oracle
- 11.2 RAC時間同步異常(二)
- 11.2 RAC時間同步異常(一)
- 10gR2 RAC 配置時間同步和hangcheck-timer模組GC
- Oracle叢集(RAC)時間同步(ntp和CTSS)Oracle
- 關於RAC Server時間同步以及DB Server時間修改注意點Server
- Linux下 ntp 時間同步服務ntpd 出現 the NTP socket is in use, exiting 解決Linux
- 在Windows10系統中同步Internet 時間Windows
- RAC各節點時間同步的兩種方法
- Hadoop叢集是配置時間同步!Hadoop
- (轉)windows環境下rac節點時間同步方法Windows
- RAC中臨時空間使用機制
- inux安裝oracle rac機器的時間同步問題UXOracle
- 配置rhel4的rdate時間同步服務
- 在11gR2 rac linux中修改os的系統時間Linux
- 同步vmware時間
- chrony時間同步
- centos:時間同步CentOS
- NTP時間同步
- 時間同步 - rdate
- Centos 時間同步CentOS
- chrony 時間同步
- linux安裝oracle rac機器的時間同步問題LinuxOracle
- RAC中修改系統時間的問題
- laravel sync()同步時修改中間表欄位Laravel
- Centos8中如何使用Chrony同步時間CentOS
- RAC環境下配置OGG同步