redhat:time-services-redhat:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revisionBoth sides next revision
redhat:time-services-redhat:start [2017/10/03 14:49] – [Zeit Synchronisation mit cronyd] michaelredhat:time-services-redhat:start [2018/05/29 14:50] michael
Line 2: Line 2:
  
 Dieser Artikel behandelt die Installation, Konfiguration und Verwendung des NTP-Services und gibt zudem vorher einen kurzen Überblick über NTP sowie die Bedeutung der Uhrzeit im Computerbereich. Dieser Artikel behandelt die Installation, Konfiguration und Verwendung des NTP-Services und gibt zudem vorher einen kurzen Überblick über NTP sowie die Bedeutung der Uhrzeit im Computerbereich.
 +
 +{{:icons:ntp.png?nolink&100|}}
  
 <WRAP center round tip 100%> <WRAP center round tip 100%>
Line 78: Line 80:
 <wrap em>ACHTUNG:</wrap> **Soll die Zeit nun fortan automatisch mit dem cronyd NTP-clients anstelle des ntpd synchronisiert werden; So muss der ntpd Service entfernt/disabled werden! -> ''yum remove ntp''**  <wrap em>ACHTUNG:</wrap> **Soll die Zeit nun fortan automatisch mit dem cronyd NTP-clients anstelle des ntpd synchronisiert werden; So muss der ntpd Service entfernt/disabled werden! -> ''yum remove ntp''** 
  
-  * **Chrony Installieren** <code># yum install chronyd</code> +  * **Chrony Installieren** <code># yum install chrony</code> 
-  * **Konfiguration bearbeiten und korrekte Zeitserver ergänzen!**<code># vim /etc/chrony.conf</code><sxh bash;>server 0.ch.pool.ntp.org iburst+  * **Konfiguration bearbeiten und korrekte Zeitserver ergänzen!**<code># vim /etc/chrony.conf</code><sxh bash;> 
 +# Use public servers from the pool.ntp.org project. 
 +# Please consider joining the pool (http://www.pool.ntp.org/join.html). 
 +server 0.ch.pool.ntp.org iburst
 server 1.ch.pool.ntp.org iburst server 1.ch.pool.ntp.org iburst
 server 2.ch.pool.ntp.org iburst server 2.ch.pool.ntp.org iburst
 server 3.ch.pool.ntp.org iburst server 3.ch.pool.ntp.org iburst
-..</sxh> 
  
-  * **Aktivieren der benötigten firewalld Rule:** <code># firewall-cmd --add-service=ntp --permanent+# Record the rate at which the system clock gains/losses time. 
 +driftfile /var/lib/chrony/drift 
 + 
 +# Allow the system clock to be stepped in the first three updates 
 +# if its offset is larger than 1 second. 
 +makestep 1.0 3 
 + 
 +# Enable kernel synchronization of the real-time clock (RTC). 
 +rtcsync 
 + 
 +# Enable hardware timestamping on all interfaces that support it. 
 +#hwtimestamp * 
 + 
 +# Increase the minimum number of selectable sources required to adjust 
 +# the system clock. 
 +#minsources 2 
 + 
 +# Allow NTP client access from local network. 
 +#allow 192.168.0.0/16 
 + 
 +# Serve time even if not synchronized to a time source. 
 +#local stratum 10 
 + 
 +# Specify file containing keys for NTP authentication. 
 +#keyfile /etc/chrony.keys 
 + 
 +# Specify directory for log files. 
 +logdir /var/log/chrony 
 + 
 +# Select which information is logged. 
 +#log measurements statistics tracking 
 + 
 +</sxh> 
 + 
 +  * **Aktivieren der benötigten firewalld Rule:** <code># firewall-cmd --add-service=ntp --permanent
 # firewall-cmd --reload </code> # firewall-cmd --reload </code>
   * **Chrony starten & enablen** <code># systemctl start chronyd    * **Chrony starten & enablen** <code># systemctl start chronyd 
Line 92: Line 130:
   * <wrap em>Aktivieren der Automatischen Zeit Synchronisation auf Systemebene</wrap>: <code># timedatectl set-ntp true</code>   * <wrap em>Aktivieren der Automatischen Zeit Synchronisation auf Systemebene</wrap>: <code># timedatectl set-ntp true</code>
   * **Testen und anzeigen der aktuellen Zeit:** <code># timedatectl</code> <sxh plain; gutter: false;>   * **Testen und anzeigen der aktuellen Zeit:** <code># timedatectl</code> <sxh plain; gutter: false;>
-[root@vstif2 ~]# timedatectl +      Local time: Tue 2017-10-03 14:57:27 CEST 
- Local time: Mon 2017-08-14 09:18:10 CEST +  Universal time: Tue 2017-10-03 12:57:27 UTC 
- Universal time: Mon 2017-08-14 07:18:10 UTC +        RTC time: Tue 2017-10-03 12:57:27 
- RTC time: Mon 2017-08-14 07:18:10 +       Time zone: Europe/Zurich (CEST, +0200) 
- Time zone: Europe/Zurich (CEST, +0200) +     NTP enabled: yes
- NTP enabled: yes+
 NTP synchronized: yes NTP synchronized: yes
  RTC in local TZ: no  RTC in local TZ: no
- DST active: yes+      DST active: yes
  Last DST change: DST began at  Last DST change: DST began at
- Sun 2017-03-26 01:59:59 CET +                  Sun 2017-03-26 01:59:59 CET 
- Sun 2017-03-26 03:00:00 CEST+                  Sun 2017-03-26 03:00:00 CEST
  Next DST change: DST ends (the clock jumps one hour backwards) at  Next DST change: DST ends (the clock jumps one hour backwards) at
- Sun 2017-10-29 02:59:59 CEST +                  Sun 2017-10-29 02:59:59 CEST 
- Sun 2017-10-29 02:00:00 CET+                  Sun 2017-10-29 02:00:00 CET 
 </sxh> </sxh>
  
  • redhat/time-services-redhat/start.txt
  • Last modified: 2019/03/07 15:00
  • by michael