Dell Unity:無法與具有 6 或更高階層值的 NTP 伺服器同步

Summary: Unity 陣列無法與具有 6 或更高階層值的 NTP 伺服器同步。 Unisphere 中未顯示任何錯誤,但 Unity 時鐘並未同步處理。

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Symptoms

在此範例中,可連線到 NTP 伺服器,但 Unity 無法與它同步,因為階層值設為 6。這可從命令的 svc_ntp -i 輸出來決定;NTP 伺服器的行開始時沒有「*」符號。
 
06:40:01 service spb:~/user# svc_ntp -i
NTP Status:
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
 xxx.xxx.xxx.xxx    LOCAL(0)      6 u   67   64  377    0.156  637.565   0.105
*peer            127.0.0.1        6 s   15   64  376    0.026    0.089   0.124

List of associations:
ind assid status  conf reach auth condition  last_event cnt
===========================================================
  1 45538  9024   yes   yes  none    reject   reachable  2
  2 45539  961a   yes   yes  none  sys.peer    sys_peer  1

List of servers in ntp.conf:
server      xxx.xxx.xxx.xxx iburst prefer                                          

Timestamps:
hwclock:1667976004 systime:1667976004 uptime:434601.65

Detailed Timestamps:
Wed Nov  9 06:40:05 UTC 2022
Wed Nov  9 06:40:06 2022  -0.953423 seconds
 06:40am  up 5 days  0:43,  6 users,  load average: 112.37, 112.83, 113.09


Cause

其中 /etc/ntp.conf 有下列行可防止 ntpd 與具有 6 或更高階層值的 NTP 伺服器同步處理。

tos orphan 6

Resolution

 
有兩個選項可解決問題。
  1. 使用以 5 或更小階層值設定的 NTP 伺服器。  
等待 10 分鐘左右,然後執行 svc_ntp -s 命令以確認 ntpd 是否與 NTP 伺服器同步。輸出的 NTP 專案左側應有星號,且階層值 (st) 應為 5 或更小。
 
06:58:01 service spb:~/user# svc_ntp -i
NTP Status:
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
* xxx.xxx.xxx.xxx   LOCAL(0)      5 u   35   64  377    0.170   -0.123   0.041
 peer            127.0.0.1        6 s   47   64   37    0.059  -637.13   0.102

List of associations:
ind assid status  conf reach auth condition  last_event cnt
===========================================================
  1 25293  961a   yes   yes  none  sys.peer    sys_peer  1
  2 25294  9014   yes   yes  none    reject   reachable  1

List of servers in ntp.conf:
server      xxx.xxx.xxx.xxx iburst prefer                                          

Timestamps:
hwclock:1667977331 systime:1667977331 uptime:435927.21

Detailed Timestamps:
Wed Nov  9 07:02:12 UTC 2022
Wed Nov  9 07:02:13 2022  -0.953428 seconds
 07:02am  up 5 days  1:05,  7 users,  load average: 112.32, 112.49, 112.74
  1. 請聯絡 Dell 技術支援或您的授權服務供應商編輯 /etc/ntp.conf 檔案,並變更下列行中的值,以支援大於預設值 5 的階層值,因為此方法需要根存取。
tos orphan 6

支援的最大值為 15。

例子:
# cp /etc/ntp.conf /cores/service/user/ntp.conf.bak
# sed -i -e 's/tos orphan 6/tos orphan 7/g' /etc/ntp.conf
# diff /etc/ntp.conf /cores/service/user/ntp.conf.bak
86c86
< tos orphan 7
---
> tos orphan 6

接著,執行下列命令:


svc_ntp -s
注意:在 Unity OE 升級後,該 tos orphan/etc/ntp.conf 可能會還原至原始值。

注意:如果時差過大,則可能需要重新開機儲存處理器 (SP),才能使變更生效。

Affected Products

Dell EMC Unity
Article Properties
Article Number: 000205159
Article Type: Solution
Last Modified: 09 Jun 2023
Version:  2
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.