tech:ntp_temps_horloge_heure
Différences
Ci-dessous, les différences entre deux révisions de la page.
| Les deux révisions précédentesRévision précédenteProchaine révision | Révision précédente | ||
| tech:ntp_temps_horloge_heure [2025/03/28 16:08] – Jean-Baptiste | tech:ntp_temps_horloge_heure [2025/10/24 09:49] (Version actuelle) – Jean-Baptiste | ||
|---|---|---|---|
| Ligne 13: | Ligne 13: | ||
| * Si pb de flux réseau voir [[tunnel_ssh_udp_forward]] | * Si pb de flux réseau voir [[tunnel_ssh_udp_forward]] | ||
| * https:// | * https:// | ||
| + | * / | ||
| + | * '' | ||
| + | * https:// | ||
| Ligne 69: | Ligne 72: | ||
| ~~~ | ~~~ | ||
| + | |||
| + | |||
| + | #### The systems were using only two NTP servers | ||
| + | Four NTP servers are recommended. See http:// | ||
| + | |||
| + | "With two, it is impossible to tell which one is better, because you don't have any other references to compare them with. This is actually the worst possible configuration -- you'd be better off using just one upstream time server and letting the clocks run free if that upstream were to die or become unreachable." | ||
| + | |||
| + | "Use at least 4 NTP servers" | ||
| + | |||
| + | |||
| + | |||
| + | |||
| + | #### Pour éviter la dérive sur les VM | ||
| + | |||
| + | ** Ou passer à Chrony ** | ||
| + | |||
| + | ~~~ | ||
| + | tinker panic 0 | ||
| + | ~~~ | ||
| + | |||
| + | "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." | ||
| + | |||
| + | Source : https:// | ||
| + | |||
| + | Voir : | ||
| + | * https:// | ||
| + | |||
| + | |||
| + | 1 - Add the following line to the beginning of the ''/ | ||
| + | ~~~bash | ||
| + | tinker panic 0 | ||
| + | ~~~ | ||
| + | |||
| + | 2 - Remove or comment the " | ||
| + | ~~~bash | ||
| + | #driftfile / | ||
| + | ~~~ | ||
| + | |||
| + | 3 - Restart the ntpd.service | ||
| + | ~~~bash | ||
| + | / | ||
| + | ~~~ | ||
| + | |||
| + | Voir https:// | ||
| Ligne 103: | Ligne 150: | ||
| ~~~ | ~~~ | ||
| + | |||
| + | #### Autres | ||
| + | |||
| + | ''/ | ||
| + | |||
| + | ~~~bash | ||
| + | SYNC_HWCLOCK=yes | ||
| + | ~~~ | ||
| + | |||
| + | This is an option to ntpdate | ||
| Ligne 216: | Ligne 273: | ||
| - | ## Autres | + | ## Autres |
| + | |||
| + | ### Timesyncd | ||
| + | |||
| + | ''/ | ||
| + | ~~~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.1743174509.txt.gz · Dernière modification : de Jean-Baptiste
