Outils pour utilisateurs

Outils du site


tech:ntp_temps_horloge_heure

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
tech:ntp_temps_horloge_heure [2025/03/31 09:38] Jean-Baptistetech:ntp_temps_horloge_heure [2025/10/24 09:49] (Version actuelle) Jean-Baptiste
Ligne 15: Ligne 15:
 * /etc/adjtime ''man 5 adjtime_config'' * /etc/adjtime ''man 5 adjtime_config''
 * ''man 4 rtc'' (Real-Time Clock) * ''man 4 rtc'' (Real-Time Clock)
 +* https://kb.meinbergglobal.com/kb/time_sync/ntp/ntp_basics
  
  
Ligne 81: Ligne 82:
  
  
-#### Autres 
  
-Pour éviter la dérive sur les VM+ 
 +#### Pour éviter la dérive sur les VM 
 + 
 +** Ou passer à Chrony ** 
 ~~~ ~~~
 tinker panic 0 tinker panic 0
Ligne 90: Ligne 94:
 "The tinker panic value of 0 tells NTP that no matter what the time offset is, not to panic and exit. This is recommended for virtual machines because virtual machines have no physical clock and can be paused at anytime and started back up hours later." "The tinker panic value of 0 tells NTP that no matter what the time offset is, not to panic and exit. This is recommended for virtual machines because virtual machines have no physical clock and can be paused at anytime and started back up hours later."
  
-Voir : https://www.redhat.com/en/blog/avoiding-clock-drift-vms+Source : https://www.redhat.com/en/blog/avoiding-clock-drift-vms
  
 +Voir : 
 +* https://documentation.avaya.com/fr-CA/bundle/DeployingSystemManagerinVE_r10.1/page/Timekeeping__NTP_.html
  
-Autres 
  
-''/etc/sysconfig/ntp''+1 - Add the following line to the beginning of the ''/etc/ntp.conf'' file  
 +~~~bash 
 +tinker panic 0 
 +~~~
  
 +2 - Remove or comment the "driftfile"
 ~~~bash ~~~bash
-SYNC_HWCLOCK=yes+#driftfile /var/lib/ntp/drift/ntp.drift # path for drift file
 ~~~ ~~~
  
-This is an option to ntpdate+3 - Restart the ntpd.service 
 +~~~bash 
 +/bin/systemctl restart ntpd.service 
 +~~~
  
 +Voir https://www.suse.com/fr-fr/support/kb/doc/?id=000021102
  
  
Ligne 137: Ligne 150:
 ~~~ ~~~
  
 +
 +#### Autres
 +
 +''/etc/sysconfig/ntp''
 +
 +~~~bash
 +SYNC_HWCLOCK=yes
 +~~~
 +
 +This is an option to ntpdate
  
  
Ligne 250: Ligne 273:
  
  
-## Autres +## Autres 
 + 
 +### Timesyncd 
 + 
 +''/lib/systemd/system/systemd-timesyncd.service.d/wsl.conf'' 
 +~~~ini 
 +# Enable timesyncd on WSL machines 
 +# so WSL clock is synced on resume from suspend of the host. 
 + 
 +[Unit] 
 +ConditionVirtualization= 
 +ConditionVirtualization=|!container 
 +ConditionVirtualization=|wsl 
 +~~~ 
 + 
 + 
 +### Adjtimex 
  
 ~~~bash ~~~bash
tech/ntp_temps_horloge_heure.1743406730.txt.gz · Dernière modification : de Jean-Baptiste

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki