update: 生产机 NTP 使用 iKuai 网关 192.127.115.1
MemRelay-Operation: memory-save:ntp-use-lan-gateway-192-127-115-1-2026-11-05 MemRelay-Resource: f80074d4-f71b-479d-a7f0-ecaee1e5089d
This commit is contained in:
@@ -0,0 +1,26 @@
|
|||||||
|
---
|
||||||
|
title: 生产机 NTP 使用 iKuai 网关 192.127.115.1
|
||||||
|
type: fact
|
||||||
|
permalink: main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/生产机-ntp-使用-i-kuai-网关-192.127.115.1
|
||||||
|
stable_id: f80074d4-f71b-479d-a7f0-ecaee1e5089d
|
||||||
|
scope: project
|
||||||
|
memory_type: fact
|
||||||
|
project_id: d5a7f581-c442-4554-87b9-ee723b8b0258
|
||||||
|
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
|
||||||
|
status: active
|
||||||
|
revision: 3
|
||||||
|
request_id: ntp-use-lan-gateway-192-127-115-1-2026-11-05
|
||||||
|
created_at: '2026-11-05T07:09:11.115506+00:00'
|
||||||
|
updated_at: '2026-11-05T07:14:18.047006+00:00'
|
||||||
|
tags:
|
||||||
|
- production
|
||||||
|
- ntp
|
||||||
|
- chrony
|
||||||
|
- ikuai
|
||||||
|
---
|
||||||
|
|
||||||
|
生产机 192.127.115.101 的 chronyd 使用 iKuai 局域网网关做 NTP:/etc/chrony.conf 为 `server 192.127.115.1 iburst`。2026-11-05 15:14 已同步,stratum 2,NTP synchronized 为 yes。
|
||||||
|
|
||||||
|
188.5.127.115 和 192.127.115.1 都是这台 iKuai(115iKuai),两边 NTP 都通,时间差在几十微秒。生产机地址是 192.127.115.101/24,默认网关是 192.127.115.1,该地址在 ens192 上直连。188.5.127.115 要经 192.127.115.1 转发,是 iKuai 的外网地址。选用 192.127.115.1,避免依赖外网地址和 NAT 回环。
|
||||||
|
|
||||||
|
旧配置备份:/etc/chrony.conf.bak-20261105-ikuai(CentOS 池改到 188.5.127.115 之前)、/etc/chrony.conf.bak-20261105-lan(改到 192.127.115.1 之前)。iKuai 自己的时间仍是手动配置。
|
||||||
@@ -1,26 +0,0 @@
|
|||||||
---
|
|
||||||
title: 生产机 NTP 已改用 iKuai
|
|
||||||
type: fact
|
|
||||||
permalink: main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/生产机-ntp-已改用-i-kuai
|
|
||||||
stable_id: f80074d4-f71b-479d-a7f0-ecaee1e5089d
|
|
||||||
scope: project
|
|
||||||
memory_type: fact
|
|
||||||
project_id: d5a7f581-c442-4554-87b9-ee723b8b0258
|
|
||||||
usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998
|
|
||||||
status: active
|
|
||||||
revision: 2
|
|
||||||
request_id: ntp-switch-ikuai-188-5-127-115-2026-11-05
|
|
||||||
created_at: '2026-11-05T07:09:11.115506+00:00'
|
|
||||||
updated_at: '2026-11-05T07:13:23.261979+00:00'
|
|
||||||
tags:
|
|
||||||
- production
|
|
||||||
- ntp
|
|
||||||
- chrony
|
|
||||||
- ikuai
|
|
||||||
---
|
|
||||||
|
|
||||||
生产机 188.5.127.115(内网 192.127.115.101,SSH 端口 15122)的时间服务是 chronyd。2026-11-05 已改为只使用 iKuai 的 NTP:/etc/chrony.conf 中 `server 188.5.127.115 iburst`。旧的 0-3.centos.pool.ntp.org 已去掉,备份在服务器 /etc/chrony.conf.bak-20261105-ikuai。
|
|
||||||
|
|
||||||
iKuai(设备名 115iKuai,管理地址 188.5.127.115)在系统设置里开启了「网关作为 NTP 服务器」。iKuai 自己的时间是手动配置,时区北京时间。从服务器实测 UDP 123 可达,chrony 已选中该源,stratum 2,NTP synchronized 为 yes。校正前系统时间快约 27854 秒(约 7.7 小时),校正后与 iKuai 一致。
|
|
||||||
|
|
||||||
容器没有因这次改时重启(RestartCount 仍是 0)。时钟回拨后,Docker 里按错误旧时钟记下的启动时间会看起来像刚启动,那是显示问题。Metrix /api/health 为 ok,DecomEval 页面返回 200。
|
|
||||||
Reference in New Issue
Block a user