验证操作

验证操作

我们建议您在继续进一步的操作之前验证 NTP 的同步。有些节点,特别是哪些引用了控制节点的,需要花费一些时间去同步。

  1. 在控制节点上执行这个命令:

    # chronyc sources
    
      210 Number of sources = 2
      MS Name/IP address         Stratum Poll Reach LastRx Last sample
      ===============================================================================
      ^- 192.0.2.11                    2   7    12   137  -2814us[-3000us] +/-   43ms
      ^* 192.0.2.12                    2   6   177    46    +17us[  -23us] +/-   68ms
    

    Contents in the Name/IP address column should indicate the hostname or IP address of one or more NTP servers. Contents in the MS column should indicate * for the server to which the NTP service is currently synchronized.

  2. 在所有其他节点执行相同命令:

    # chronyc sources
    
      210 Number of sources = 1
      MS Name/IP address         Stratum Poll Reach LastRx Last sample
      ===============================================================================
      ^* controller                    3    9   377   421    +15us[  -87us] +/-   15ms
    

    Name/IP address 列的内容应显示控制节点的主机名。

Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.