- Oracle Linux Support
- ChapterВ 5В Configuring Network Time
- 5.1В About the chrony Suite
- 5.1.1В About the chronyd Service Daemon
- 5.1.2В Using the chronyc Service Utility
- 5.1.3В Configuring the chronyd Service
- 5.1.4В Editing the chronyd Configuration File
- 5.1.5В Converting From ntp to chrony
- 5.2В About PTP
- 5.2.1В Configuring the PTP Service
- 5.2.2В Using PTP as a Time Source for NTP
Oracle Linux Support
Oracle’s worldwide, around-the-clock, cost-effective Linux support is offered in 145 countries for traditional, cloud-based, or virtual environments.
Our customers depend on the Oracle Linux operating system to run many of their most important IT systems. As part of our commitment to long term stable availability of our operating system, Oracle Linux Premier Support and Oracle Linux Basic Support for Oracle Linux program releases 5, 6, 7, and 8 are available for ten years from the date a release of the Oracle Linux program becomes generally available. Support for Oracle Linux program may be extended for additional three years with Oracle Linux Extended Support, followed by lifetime Sustaining Support. This is just part of Oracle’s unique Lifetime Support Policy that enables customers to move to new versions of software when they’re ready. Refer to the Oracle Linux and Oracle VM Support Policies (PDF) and the Lifetime Support Policy: Coverage for Oracle Linux and Oracle VM (PDF) documents for details.
Premier Support | Basic Support | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
24×7 telephone and online support | Yes | Yes | |||||||||||||
Around-the-clock access to enhancements, updates, and errata | Yes | Yes | |||||||||||||
Oracle Enterprise Manager for Linux Management | Yes | Yes | |||||||||||||
Oracle Linux Manager (formerly Spacewalk) | Yes | Yes | |||||||||||||
High availability with Oracle Clusterware | Yes | Yes | |||||||||||||
Comprehensive tracing with DTrace | Yes | Yes | |||||||||||||
Oracle Linux load balancer | Yes | Yes | |||||||||||||
Comprehensive indemnification | Yes | Yes | |||||||||||||
Oracle Container runtime for Docker | Yes | Yes | |||||||||||||
Oracle Linux Virtualization Manager | Yes | No | |||||||||||||
Zero-downtime patching with Ksplice | Yes | No | |||||||||||||
Oracle Linux Automation Manager/Engine | Yes | No | |||||||||||||
Oracle Cloud Native Environment: | Yes | No | |||||||||||||
— includes Kubernetes, Kata Containers, and more | Yes | No | |||||||||||||
Gluster Storage for Oracle Linux | Yes | No | |||||||||||||
Oracle Linux software collections | Yes | No | |||||||||||||
Oracle Linux high availability services support (Corosync and Pacemaker) | Yes | No | |||||||||||||
Premier backports | Yes | No | |||||||||||||
Lifetime sustaining support | Yes | No | |||||||||||||
ntp | chrony |
---|---|
/etc/ntp.conf | /etc/chrony.conf |
/etc/ntp/keys | /etc/chrony.keys |
ntpd | chronyd |
ntpq command | chronyc command |
ntpd.service | chronyd.service |
ntp-wait.service | chrony-wait.service |
ntpdate and sntp utilities | chronyd -q and chronyd -t commands |
The ntpstat utility which is available in the ntpstat package, now supports chronyd . Thus, you can still use the utility in Oracle Linux 8. The command generates output that is similar to when it is used with ntp .
The /usr/share/doc/chrony/ntp2chrony.py script is available to help convert existing ntp configuration to chrony , for example:
The script supports the conversion of the most common directives in /etc/ntp.conf to chrony . In the example, the -b and -v options specify creating backup configuration files before converting and displaying verbose messages during the migration process, respectively.
To list the different options that you can use with the script, type the following command:
5.2В About PTP
PTP enables you to synchronise system clocks on a LAN to a higher accuracy than NTP. Provided that network drivers support either hardware or software time stamping, a PTP clock can use the time stamps in PTP messages to compensate for propagation delays across a network. Software time stamping allows PTP to synchronise systems to within a few tens of microseconds. With hardware time stamping, PTP can synchronise systems to within a few tenths of a microsecond. If you require high-precision time synchronization of systems, use hardware time stamping.
A typical PTP configuration on an enterprise local area network consists of:
One or more grandmaster clock systems.
A grandmaster clock is typically implemented as specialized hardware that can use high-accuracy GPS signals or lower-accuracy code division multiple access (CDMA) signals, radio clock signals, or NTP as a time reference source. If several grandmaster clocks are available, the best master clock (BMC) algorithm selects the grandmaster clock based on the settings of their priority1 , clockClass , clockAccuracy , offsetScaledLogVariance , and priority2 parameters and their unique identifier, in that order.
Several boundary clock systems.
Each boundary clock is backed up to a grandmaster clock on one subnetwork and relays PTP messages to one or more additional subnetworks. A boundary clock is usually implemented as a function of a network switch.
Multiple slave clock systems.
Each slave clock on a subnetwork is backed up to a boundary clock, which acts as the master clock for that slave clock.
For a simpler configuration, set up a single grandmaster clock and multiple slave clocks on the same network segment and thus eliminates any need for an intermediate layer of boundary clocks.
Grandmaster and slave clock systems that use only one network interface for PTP are termed ordinary clocks .
Boundary clocks require at least two network interfaces for PTP: one interface acts a slave to a grandmaster clock or a higher-level boundary clock; the other interfaces act as masters to slave clocks or lower-level boundary clocks.
Synchronization of boundary and slave clock systems is achieved by sending time stamps in PTP messages. By default, PTP messages are sent in UDPv4 datagrams. It is also possible to configure PTP to use UDPv6 datagrams or Ethernet frames as its transport mechanism.
To use PTP on a system, the driver for at least one of the system’s network interfaces must support either software or hardware time stamping. To find out whether the driver for a network interface supports time stamping, use the ethtool command:
The following output is displayed:
The output in the example shows that the en1 interface supports both hardware and software time stamping capabilities.
With software time stamping, ptp4l synchronises the system clock to an external grandmaster clock.
If hardware time stamping is available, ptp4l can synchronise the PTP hardware clock to an external grandmaster clock. In this case, you use the phc2sys daemon to synchronise the system clock with the PTP hardware clock.
5.2.1В Configuring the PTP Service
To configure the PTP service on a system:
Install the linuxptp package.
Edit /etc/sysconfig/ptp4l and define the start-up options for the ptp4l daemon.
Grandmaster clocks and slave clocks require that you define only one interface.
For example, to use hardware time stamping with interface en1 on a slave clock:
To use software time stamping instead of hardware time stamping, specify the -S option:
The -s option specifies that the clock operates only as a slave ( slaveOnly mode). Do not specify this option for a grandmaster clock or a boundary clock.
For a grandmaster clock, omit the -s option, for example:
A boundary clock requires that you define at least two interfaces, for example:
You might need to edit the /etc/ptp4l.conf file to make further adjustments to the configuration of ptp4l , for example:
For a grandmaster clock, set the value of the priority1 parameter to a value between 0 and 127, where lower values have higher priority when the BMC algorithm selects the grandmaster clock. For a configuration that has a single grandmaster clock, a value of 127 is suggested.
If you set the value of summary_interval to an integer value N instead of 0, ptp4l writes summary clock statistics to /var/log/messages every 2 N seconds instead of every second (2 0 = 1). For example, a value of 10 would correspond to an interval of 2 10 or 1024 seconds.
The logging_level parameter controls the amount of logging information that ptp4l records. The default value of logging_level is 6 , which corresponds to LOG_INFO . To turn off logging completely, set the value of logging_level to 0 . Alternatively, specify the -q option to ptp4l .
See the ptp4l(8) manual page.
Configure the system firewall to allow access by PTP event and general messages to UDP ports 319 and 320 in the appropriate zone, for example:
Start the ptp4l service and configure it to start following a system reboot.
To configure phc2sys on a clock system that uses hardware time stamping:
Edit the /etc/sysconfig/phc2sys file and define the start-up options for the phc2sys daemon.
On a boundary clock or slave clock, synchronise the system clock with the PTP hardware clock that is associated with the slave network interface, for example:
The slave network interface on a boundary clock is the one that it uses to communicate with the grandmaster clock.
The -w option specifies that phc2sys waits until ptp4l has synchronised the PTP hardware clock before attempting to synchronise the system clock.
On a grandmaster clock, which derives its system time from a reference time source such as GPS, CDMA, NTP, or a radio time signal, synchronise the network interface’s PTP hardware clock from the system clock, for example:
See the phc2sys(8) manual page.
Start the phc2sys service and configure it to start following a system reboot.
You can use the pmc command to query the status of ptp4l operation. The following example shows the results of running pmc on a slave clock system that is directly connected to the grandmaster clock system without any intermediate boundary clocks:
The following output is displayed:
The following output is displayed:
This output examples include the following useful information:
The unique identifier of the grandmaster clock, which is based on the MAC address of its network interface.
Whether an external grandmaster clock is available. This value is displayed as false on the grandmaster clock itself.
An estimate of how many nanoseconds by which synchronization messages are delayed.
The most recent measurement of the time difference in nanoseconds relative to the grandmaster clock.
The number of network steps between this system and the grandmaster clock.
For more information, see the phc2sys(8) , pmc(8) , and ptp4l(8) manual pages, and IEEE 1588.
5.2.2В Using PTP as a Time Source for NTP
To make the PTP-adjusted system time on an NTP server available to NTP clients, include the following entries in the /etc/chrony.conf file on the NTP server:
These entries define the local system clock as the time reference.
Do not configure any additional server lines in the file.
Copyright В© 2019, 2021 Oracle and/or its affiliates. Legal Notices
Источник