Manage the cluster time (cluster administrators only)
Problems can occur when the cluster time is inaccurate. Although ONTAP enables you to manually set the time zone, date, and time on the cluster, you should configure the Network Time Protocol (NTP) servers to synchronize the cluster time.
Beginning with ONTAP 9.5, you can configure your NTP server with symmetric authentication.
NTP is always enabled. However, configuration is still required for the cluster to synchronize with an external time source. ONTAP enables you to manage the cluster's NTP configuration in the following ways:
-
You can associate a maximum of 10 external NTP servers with the cluster (
cluster time-service ntp server create
).-
For redundancy and quality of time service, you should associate at least three external NTP servers with the cluster.
-
You can specify an NTP server by using its IPv4 or IPv6 address or fully qualified host name.
-
You can manually specify the NTP version (v3 or v4) to use.
By default, ONTAP automatically selects the NTP version that is supported for a given external NTP server.
If the NTP version you specify is not supported for the NTP server, time exchange cannot take place.
-
At the advanced privilege level, you can specify an external NTP server that is associated with the cluster to be the primary time source for correcting and adjusting the cluster time.
-
-
You can display the NTP servers that are associated with the cluster (
cluster time-service ntp server show
). -
You can modify the cluster's NTP configuration (
cluster time-service ntp server modify
). -
You can disassociate the cluster from an external NTP server (
cluster time-service ntp server delete
). -
At the advanced privilege level, you can reset the configuration by clearing all external NTP servers' association with the cluster (
cluster time-service ntp server reset
).
A node that joins a cluster automatically adopts the NTP configuration of the cluster.
In addition to using NTP, ONTAP also enables you to manually manage the cluster time. This capability is helpful when you need to correct erroneous time (for example, a node's time has become significantly incorrect after a reboot). In that case, you can specify an approximate time for the cluster until NTP can synchronize with an external time server. The time you manually set takes effect across all nodes in the cluster.
You can manually manage the cluster time in the following ways:
-
You can set or modify the time zone, date, and time on the cluster (
cluster date modify
). -
You can display the current time zone, date, and time settings of the cluster (
cluster date show
).
Job schedules do not adjust to manual cluster date and time changes. These jobs are scheduled to run based on the current cluster time when the job was created or when the job most recently ran. Therefore, if you manually change the cluster date or time, you must use the |
Commands for managing the cluster time
You use the cluster time-service ntp server
commands to manage the NTP servers for the cluster. You use the cluster date
commands to manage the cluster time manually.
Beginning with ONTAP 9.5, you can configure your NTP server with symmetric authentication.
The following commands enable you to manage the NTP servers for the cluster:
If you want to… | Use this command… | ||
---|---|---|---|
Associate the cluster with an external NTP server without symmetric authentication |
|
||
Associate the cluster with an external NTP server with symmetric authenticationAvailable in ONTAP 9.5 or later |
|
||
Enable symmetric authentication for an existing NTP serverAn existing NTP server can be modified to enable authentication by adding the required key-id. Available in ONTAP 9.5 or later |
|
||
Disable symmetric authentication |
|
||
Configure a shared NTP key |
|
||
Display information about the NTP servers that are associated with the cluster |
|
||
Modify the configuration of an external NTP server that is associated with the cluster |
|
||
Dissociate an NTP server from the cluster |
|
||
Reset the configuration by clearing all external NTP servers' association with the cluster |
|
The following commands enable you to manage the cluster time manually:
If you want to… | Use this command… |
---|---|
Set or modify the time zone, date, and time |
|
Display the time zone, date, and time settings for the cluster |
|