ECS: 옵스 : NTP 서버를 추가하거나 제거하는 방법
摘要: 이 문서에서는 ECS NTP 구성을 수정하는 방법을 보여줍니다.
本文适用于
本文不适用于
本文并非针对某种特定的产品。
本文并非包含所有产品版本。
说明
중요 사항: xDoctor 4-8.104.0 이상에서 새로운 기능이 릴리스되었습니다. 이 KB(Knowledge Base)는 이제 xDoctor로 자동화되어 NTP 서버를 빠르게 추가하거나 제거할 수 있습니다. 스크립트가 NTP 서버를 추가하거나 제거할 수 없는 경우 결과에 대한 자세한 요약을 제공합니다.
자세한 내용은 ECS ObjectScale: 문서를 참조하십시오. KB 자동화 스크립트(자동 파일럿)를 실행하는 방법(등록된 사용자로 Dell 지원에 로그인해야 할 수 있음)
자세한 내용은 ECS ObjectScale: 문서를 참조하십시오. KB 자동화 스크립트(자동 파일럿)를 실행하는 방법(등록된 사용자로 Dell 지원에 로그인해야 할 수 있음)
- NAN IP를 찾으려면 알림에서 식별된 IP를 사용하거나
getclusterinfo -i이 스크립트를 사용하여 대상을 위해.
명령:
# getclusterinfo -i
예:
admin@ecsnode1:~> getclusterinfo -i
Registered Racks
================
Ip Address epoxy seg mac seg color seg id NAN Hostname
=============== ===== ================= ========== ======= ============
169.xxx.1.1 False 00:00:00:00:00:00 red 1 provo-red.nanlocal
Node private Node Public BMC
Ip Address Id Status Mac Ip Address Mac Ip Address Private.4(NAN) Node Name
=============== ====== ====== ================= =============== ================= =============== =============== =========
192.xxx.219.1 1 MA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.101 169.xxx.1.1 provo-red
192.xxx.219.2 2 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.102 169.xxx.1.2 sandy-red
192.xxx.219.3 3 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.103 169.xxx.1.3 orem-red
192.xxx.219.4 4 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.104 169.xxx.1.4 ogden-red
192.xxx.219.5 5 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.105 169.xxx.1.5 layton-red
192.xxx.219.6 6 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.106 169.xxx.1.6 logan-red
192.xxx.219.7 7 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.107 169.xxx.1.7 lehi-red
192.xxx.219.8 8 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.108 169.xxx.1.8 murray-red
Status:
M - Master, S - Slave
E - Epoxy
I - Initializing, U - Updating, A - Active
P - On, O - Off
! - Warning/Error list:
1 -(W) Hostname set to default hostname set by installer
169.xxx.2.1 False 00:00:00:00:00:00 green 2 tucson-green.nanlocal
Node private Node Public BMC
Ip Address Id Status Mac Ip Address Mac Ip Address Private.4(NAN) Node Name
=============== ====== ====== ================= =============== ================= =============== =============== =========
192.xxx.219.1 1 MA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.219.101 169.xxx.2.1 provo-green
192.xxx.219.2 2 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.102 169.xxx.2.2 sandy-green
192.xxx.219.3 3 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.103 169.xxx.2.3 orem-rgreen
192.xxx.219.4 4 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.104 169.xxx.2.4 ogden-green
192.xxx.219.5 5 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.105 169.xxx.2.5 layton-green
192.xxx.219.6 6 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.106 169.xxx.2.6 logan-green
192.xxx.219.7 7 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.107 169.xxx.2.7 lehi-green
192.xxx.219.8 8 SA 00:00:00:00:00 0.0.0.0 00:00:00:00:00 192.xxx.xxx.108 169.xxx.2.8 murray-green
Status:
M - Master, S - Slave
E - Epoxy
I - Initializing, U - Updating, A - Active
P - On, O - Off
! - Warning/Error list:
1 -(W) Hostname set to default hostname set by installer
- xDoctor 4-8.104.0 이상을 사용하여 제어 노드에서 자동화 명령을 실행합니다.
참고:
--target-rack 이 작업에 대해 지원되며, 이 스크립트는 Ansible 자동화 스크립트 버전 3.0을 특징으로 하는 xDoctor4.8.104.0 릴리스에 포함되었습니다.
명령:
# sudo xdoctor autopilot --kb 273244 --target-rack <rack color>
예: (이 예는 랙 1에서 작업하고 있습니다.)
admin@ecsnode1:~> sudo xdoctor autopilot --kb 273244 --target-rack red Using /etc/ansible/ansible.cfg as config file VERSION: 3.0 Playbook tasks: 66 Role tasks: 28 Total tasks: 94 across 1 host(s)
자동화 스크립트 옵션:
- 구성에 NTP 서버 추가 또는 구성에서 NTP 서버 제거를 선택합니다.
예:
TASK [Ask user if they want to add or remove an NTP server] ************************************************************************************************************************************************** [Ask user if they want to add or remove an NTP server] ****************************************************************************** Please select one of the following options to add or remove an NTP server: ****************************************************************************** (1) Add an NTP server to the configuration. (2) Remove an NTP server from the configuration. (0) Exit ******************************************************************************
- NTP 서버 구성 변경:
-> (1) Add an NTP server IP or FQDN
TASK [Ask for NTP server IP or FQDN if adding] ***************************************************************************************************************************************************************
[Ask for NTP server IP or FQDN if adding]
******************************************************************************
Enter the IP or FQDN of the NTP server:
******************************************************************************
:127.0.0.1
...
TASK [NTP server was successfully added or removed summary] **************************************************************************************************************************************************
ok: [169.xxx.1.6] => {
"msg": [
"*******************************************************************************",
"*******************************************************************************",
"The IP or FQDN address 127.0.0.1 was successfully added to the NTP server list.",
"*******************************************************************************",
"*******************************************************************************"
]
}
- NTP 서버 구성 변경:
->(2) Remove an NTP server from the configuration.
TASK [Prompt user to select NTP server to remove] ************************************************************************************************************************************************************
[Prompt user to select NTP server to remove]
******************************************************************************
Enter the letter of the NTP server you want to remove:
******************************************************************************
(a) 127.0.0.1
(b) x.x.x.x
(0) Exit
******************************************************************************
(a)
ok: [169.xxx.1.6] => {
"msg": [
"*******************************************************************************",
"*******************************************************************************",
"127.0.0.1 was successfully removed from the NTP server list.",
"*******************************************************************************",
"*******************************************************************************"
]
}
NTP에 IP를 추가하는 방법:
추가할 NTP 서버 IP에 대해 아래 명령어를 한 번 실행합니다. 각 NTP 서버에 대해 명령을 반복합니다(또는 공백으로 구분).
명령:
# sudo setrackinfo -a NTPServer <NTP_Server_IP>
예:
# sudo setrackinfo -a NTPServer 10.3.4.5
다음을 사용하여 결과를 확인합니다.
getrackinfo -r
# getrackinfo -r
Rack Master Info
================
ChassisID = 00:01:02:63:1d:1e
RackID = 1
RackName = red
epoxy = False
Basic Config:
-------------
EcsManagedBmc = no
RackInstallServer = no
Network Config:
---------------
DNSSearch = corp.dell.com dell.com
DNSServer = x.x.x.x y.y.y.y
NTPServer = x.x.x.x
System Config:
--------------
NANDomain = nan
NANNetwork = 169.xxx.0.0/16
NANVlan = 4
PublicVlan = 1
RackFirstNode = 1
RackLastNode = 24
RackNetwork = 192.xxx.xxx.0/24
RackSwitchCommunityName = public
RackVlan = 0
NTP 구성에서 IP를 제거하는 방법:
아래 명령을 사용하여 하나 이상의 NTP IP를 제거합니다.
명령:
# sudo setrackinfo -d NTPServer <NTP_Server_IP>
예:
# sudo setrackinfo -d NTPServer 10.3.4.5
其他信息
DNS 구성은 다음 문서를 참조하십시오. ECS: DNS 서버를 추가하거나 제거하는 방법
受影响的产品
ECS Appliance产品
ECS, ECS Appliance Gen 3, ECS Appliance Hardware Series, ECS Appliance Software with Encryption, ECS Appliance Software without Encryption文章属性
文章编号: 000273244
文章类型: How To
上次修改时间: 14 8月 2025
版本: 6
从其他戴尔用户那里查找问题的答案
支持服务
检查您的设备是否在支持服务涵盖的范围内。