본문 바로가기

콩's EDUCATION/콩's LINUX Server

[RHEL8] Chrony 설정

Red Hat Enterprise Linux 8부터 NTP 프로토콜은 chronyd 데몬에서 구현되며 

chrony 패키지의 리포지토리에서 사용할 수 있습니다.

29장. Chrony 제품군을 사용하여 NTP 구성 Red Hat Enterprise Linux 8 | Red Hat Customer Portal

 

-- chrony 패키지 설치

[root@~]#  yum -y install chrony

 

-- 상태, 자동 실행, 시작

[root@~]# systemctl status chronyd.service

[root@~]# systemctl enable chronyd.service

[root@~]# systemctl start chronyd.service

 

-- 환경설정 변경

[root@sydnddev ~]# vi /etc/chrony.conf

 

#pool 2.rhel.pool.ntp.org iburst
server time.bora.net
server time.kornet.net
server kr.pool.ntp.org

# Asia Server
server 0.asia.pool.ntp.org iburst
server 1.asia.pool.ntp.org iburst
server 2.asia.pool.ntp.org iburst
server 3.asia.pool.ntp.org iburst

 

[참고]

pool.ntp.org: NTP Servers in Asia, asia.pool.ntp.org (ntppool.org)

 

-- 작동 여부 확인, Reach값이 377이면 동기화 정상 상태

[root@syapp ~]# chronyc sources -v

 

  .-- Source mode  '^' = server, '=' = peer, '#' = local clock.
 / .- Source state '*' = current best, '+' = combined, '-' = not combined,
| /             'x' = may be in error, '~' = too variable, '?' = unusable.
||                                                 .- xxxx [ yyyy ] +/- zzzz
||      Reachability register (octal) -.           |  xxxx = adjusted offset,
||      Log2(Polling interval) --.      |          |  yyyy = measured offset,
||                                \     |          |  zzzz = estimated error.
||                                 |    |           \
MS Name/IP address         Stratum Poll Reach LastRx Last sample
===============================================================================
^- time.bora.net                 3   6   377    62    +45ms[  +45ms] +/-   51ms
^+ send.mx.cdnetworks.com        2   7   377   116   -378us[ -378us] +/-   23ms