2023. 11. 6. 11:56ㆍIT System Engineer
# 시간동기화 chrony 설치
sudo yum install chrony
1) OS → HW 덮어쓰기
hwclock --systohc
hwclock -w
2) HW → OS 덮어쓰기
hwclock --hctosys
hwclock -s
# Timezone UTC로 변경
timedatectl set-timezone UTC
# chronyd version update
chronyc sources -v
# 즉시 동기화
timedatectl set-ntp yes
chronyc -a makestep
# 방화벽 등록
firewall-cmd --add-service=ntp --permanent
firewall-cmd --permanent --zone=public --add-port=123/udp
firewall-cmd --reload
# ntp서버 sync 활성화
timedatectl set-ntp yes
timedatectl ntp synchronized yes
# ntp 서버확인
chronyc sources
chronyc sourcestats
# ntp 동기화 확인
timedatectl status
chronyc tracking
# 윤초 추가
1. slew 옵션 이란?
- 시스템은 윤초가 발생하였을 때 00:00:00 UTC에 시스템 시계를 1초 뒤로 또는 앞으로 조정하여 윤초를 삽입 / 삭제 합니다.
- 시스템 시간 조정에 대해 민감한 어플리케이션의 경우 해당 작업이 문제가 발생할 수 있으므로, 바로 조정하지 않고 천천히 조정하도록 설정할 수 있습니다.
2. chronyd
vi /etc/chrony.conf
leapsecmode slew 추가
systemctl restart chronyd
'IT System Engineer' 카테고리의 다른 글
Linux Teaming 설정 (Linux Teaming Configuration) (0) | 2023.11.06 |
---|---|
Linux ssh, sftp port 분리 (Linux ssh, sftp port separation) (0) | 2023.11.06 |
Linux Swap 설정 (Swap settings on Linux) (0) | 2023.11.06 |
Linux ssh-keygen 생성 (Generate ssh-keygen) (0) | 2023.11.06 |
Linux hostname reboot 없이 강제변경 (Force change of hostname on Linux system without reboot) (0) | 2023.11.06 |