[Hyper-V] [Open Stack] [Controller Node] โ‘ก NTP Server ๊ตฌ์„ฑ

2023. 9. 9. 17:00ใ†System ์ž‘์—…์‹ค/Server ๊ด€๋ จ

728x90
๋ฐ˜์‘ํ˜•

 

 

 

 

 

 

 

 

 

OpenStack for Architects - Second Edition Paperback

COUPANG

www.coupang.com

"์ด ํฌ์ŠคํŒ…์€ ์ฟ ํŒก ํŒŒํŠธ๋„ˆ์Šค ํ™œ๋™์˜ ์ผํ™˜์œผ๋กœ, ์ด์— ๋”ฐ๋ฅธ ์ผ์ •์•ก์˜ ์ˆ˜์ˆ˜๋ฃŒ๋ฅผ ์ œ๊ณต๋ฐ›์Šต๋‹ˆ๋‹ค."

 




๐Ÿ—‚ ๋ชฉ์ฐจ

1. [Hyper-V] [Open Stack] Open Stack์ด๋ž€?
2. [Hyper-V] [Open Stack] [Controller Node] Hyper-V ๊ตฌ์„ฑ ๋ฐ Ubuntu 22.04.3 LTS Server ์„ค์น˜
3. [Hyper-V] [Open Stack] [Controller Node] โ‘  ์˜คํ”ˆ์Šคํƒ ํŒจํ‚ค์ง€ ์„ค์น˜
4. [Hyper-V] [Open Stack] [Controller Node] โ‘ก NTP Server ๊ตฌ์„ฑ
5. [Hyper-V] [Open Stack] [Controller Node] โ‘ข RabbitMQ - Message Queue ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
6. [Hyper-V] [Open Stack] [Controller Node] โ‘ฃ Memcached ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
7. [Hyper-V] [Open Stack] [Controller Node] โ‘ค Etcd ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
8. [Hyper-V] [Open Stack] [Controller Node] โ‘ฅ Keystone - Identity ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
9. [Hyper-V] [Open Stack] [Controller Node] โ‘ฆ Image Service - Glance ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ  
10. [Hyper-V] [Open Stack] [Controller Node] โ‘ง Compute Service - Nova ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
11. [Hyper-V] [Open Stack] [Contoller Node] โ‘จ Neutron - Network ์„œ๋น„์Šค ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ
12. [Hyper-V] [Open Stack] [Controller Node] โ‘ โ“ช Horizon - Dashboard ์„œ๋น„์Šค ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

11. [Hyper-V] [Open Stack] [Compute Node] ์ค€๋น„์ค‘

 

 

 

 

๐Ÿš€ Controller Node ๊ตฌ์„ฑ

    ๐Ÿ”ฝ ๊ฐœ์š”

์ฃผ๋‹ˆ์˜ ์˜คํ”ˆ์Šคํƒ ๊ตฌ์„ฑ๋„

 

 

 

    ๐Ÿ”ฝ ๊ตฌ์„ฑ ์š”์†Œ ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

       ๐Ÿ“ฆ ๊ตฌ์„ฑ ์š”์†Œ ์„ค์น˜ ๋ฐ ๊ตฌ์„ฑ

์ตœ์ดˆ ์„œ๋ฒ„ ์‹œ๊ฐ„ ๋™๊ธฐํ™”๋ฅผ ์œ„ํ•ด Network Time Protocol(NTP)๋ฅผ ์„ค์น˜ํ•˜๊ณ , ๊ตฌ์„ฑํ•ด ๋ณผ๊ฒŒ์š”.

apt-get install -y chrony

728x90



์œ„์™€ ๊ฐ™์ด ์„ค์น˜ํ•œ ๋’ค /etc/chrony/chrony.conf File(ํŒŒ์ผ)์„ ํŽธ์ง‘ํ•˜์—ฌ ํ•ด๋‹น Key(ํ‚ค)๋ฅผ ๋Œ€์ƒ ํ™˜๊ฒฝ์— ๋งž๊ฒŒ ํ•„์š”์— ๋”ฐ๋ผ
์ถ”๊ฐ€, ์ˆ˜์ •, ์ œ๊ฑฐํ•ด ์ฃผ๋ฉด ๋ผ์š”.

 

vim /etc/chrony/chrony.conf ๋ณ€๊ฒฝ ์ „


์ตœ์ดˆ 20 ~ 23๋ฒˆ์งธ ์ค„์— ๋‚ด์šฉ์„ ์ฃผ์„์ฒ˜๋ฆฌ ํ•ด์ค๋‹ˆ๋‹ค.

vim /etc/chrony/chrony.conf ๋ณ€๊ฒฝ ๋’ค

๋ฐ˜์‘ํ˜•


๊ทธ๋Ÿฐ ๋’ค 24 ~ 26๋ฒˆ์งธ์— ์œ„์™€ ๊ฐ™์ด ๋™๊ธฐํ™” ์„œ๋ฒ„ IP ์ฃผ์†Œ๋ฅผ ์ ์–ด์ค๋‹ˆ๋‹ค.

 

โˆ™ time.bora.net: 203.248.240.140
โˆ™ time.nuri.net: 211.115.194.21
โˆ™ time2.kriss.re.kr: 210.98.16.101

๐Ÿ’ก ์ฐธ๊ณ  ์‚ฌํ•ญ
iburst Opion

System์˜ ์‹œ๊ฐ„์˜ ์ฐจ์ด์™€ ๊ด€๊ณ„์—†์ด ๋ฐ”๋กœ ๋™๊ธฐํ™”ํ•˜๋Š” Option์œผ๋กœ ํ•ด๋‹น Option์„ ๋„ฃ์ง€ ์•Š์„ ๊ฒฝ์šฐ System ์‹œ๊ฐ„์ด 10๋ถ„ ์ด์ƒ ์ฐจ์ด๊ฐ€ ๋‚˜์•ผ ๋™๊ธฐํ™”๋ฅผ ์‹ค์‹œํ•˜๊ฒŒ ๋จ.

 

28๋ฒˆ์งธ ์ค„ ๋‚ด์šฉ์€ ๋‹ค๋ฅธ Node(๋…ธ๋“œ)๊ฐ€ ์ปจํŠธ๋กค๋Ÿฌ ๋…ธ๋“œ์—์„œ์˜ chrony Deamon(๋ฐ๋ชฌ)์— ์ ‘์†ํ•˜์—ฌ
์‹œ๊ฐ„ ๋™๊ธฐํ™”๋ฅผ ํ•  ์ˆ˜ ์žˆ๋„๋ก ํ—ˆ์šฉํ•˜๊ธฐ ์œ„ํ•œ ๋‚ด์šฉ์ด์—์š”.

 

systemctl restart chrony


๊ทธ๋Ÿฐ ๋’ค NTP ์„œ๋น„์Šค๋ฅผ ์žฌ์‹œ์ž‘ ํ•ด ์ค๋‹ˆ๋‹ค.


date


์œ„์™€ ๊ฐ™์ด ํ˜„์žฌ ํƒ€์ž„์กด์ด ์šฐ๋ฆฌ๋‚˜๋ผ ๊ธฐ์ค€์ด ์•„๋‹Œ๊ฑธ ํ™•์ธํ•  ์ˆ˜ ์žˆ์–ด์š”.


timedatectl set-timezone Asia/Seoul


์œ„ ๋ช…๋ น์–ด๋กœ ํƒ€์ž„์กด์„ ์šฐ๋ฆฌ๋‚˜๋ผ๋กœ ๋งž์ถฐ ์ฃผ์—ˆ์–ด์š”.

 

chronyc sources


Name/IP address ์—ด์— ์žˆ๋Š” ๋‚ด์šฉ์€ ํ•˜๋‚˜ ๋˜๋Š” ์—ฌ๋Ÿฌ NTP ์„œ๋ฒ„์— ๋Œ€ํ•œ ํ˜ธ์ŠคํŠธ ์ด๋ฆ„ ๋˜๋Š” IP ์ฃผ์†Œ๊ฐ€ ๋‚˜์™€์•ผ ํ•ด์š”.
MS ์—ด์— ์žˆ๋Š” ๋‚ด์šฉ ์ค‘ *์€ ํ˜„์žฌ NTP ์„œ๋น„์Šค๊ฐ€ ๋™๊ธฐํ™” ์ค‘์ธ ์„œ๋ฒ„๋ฅผ ๋‚˜ํƒ€๋‚ธ๋‹ต๋‹ˆ๋‹ค.

 

 

 

 

Openstack Essentials Second Edition Paperback

COUPANG

www.coupang.com

"์ด ํฌ์ŠคํŒ…์€ ์ฟ ํŒก ํŒŒํŠธ๋„ˆ์Šค ํ™œ๋™์˜ ์ผํ™˜์œผ๋กœ, ์ด์— ๋”ฐ๋ฅธ ์ผ์ •์•ก์˜ ์ˆ˜์ˆ˜๋ฃŒ๋ฅผ ์ œ๊ณต๋ฐ›์Šต๋‹ˆ๋‹ค."

 

 

 

 

๐Ÿง ์ฐธ๊ณ  ์ž๋ฃŒ

 

OpenStack Docs: Newtork Time Protocol (NTP)

Newtork Time Protocol (NTP) NTP ๋ฅผ ๊ตฌํ˜„ํ•˜๋Š” Chrony๋ฅผ ์„ค์น˜ํ•˜์—ฌ ๋…ธ๋“œ ์‚ฌ์ด์— ์„œ๋น„์Šค๋“ค์„ ์ ์ ˆํžˆ ๋™๊ธฐํ™”ํ•˜๋„๋ก ํ•ด์•ผ ํ•ฉ๋‹ˆ๋‹ค. ์ปจํŠธ๋กค๋Ÿฌ ๋…ธ๋“œ๊ฐ€ ๋ณด๋‹ค ์ •ํ™•ํ•œ (stratum์ด ๋‚ฎ์€) ์„œ๋ฒ„๋ฅผ ๊ฐ€๋ฆฌํ‚ค๋„๋ก ํ•˜๊ณ  ๋‹ค๋ฅธ ๋…ธ

docs.openstack.org

 

Ubuntu 22.04 LTS : Configure NTP Client : Server World

  NTP Client [systemd-timesyncd.service] is running by default on Ubuntu, so it's easy to set NTP Client. By the way, it's also possible to use NTPd or Chrony as a NTP Client. If you use them, simply set only NTP server to sync time, do not set permission

www.server-world.info

 

 

 

 

728x90
๋ฐ˜์‘ํ˜•