Time synchronization using NTP
The Network Time Protocol (NTP) client must be used in the Db2® Mirror environment to keep the system clocks synchronized. The two Db2 Mirror nodes also must use the same local time and time zone.
- External time server
- Both nodes reference the same external time server.
- Chained time server
- The setup source node references an external time server.
- Peer time server
- The setup copy node references the setup source node.
For more information about NTP, see ADD_TIME_SERVER procedure and NTP client.
QIBM_OS400_SNTP when the SNTP client
starts or QIBM_OS400_NTP when the NTP client starts.External time server
The external time server configuration option has both Db2 Mirror nodes reference the same time server as shown below.
Each node will independently check and adjust to the time supplied by the external time server and thus remain synchronized with each other. The time server could be a server within your local network or a public time server. The time server should be accessible through a reliable and low latency network link to minimize jitter. A local network time server is highly recommended.
Chained time server
The chained time server configuration option configures the setup source node to reference an external time server and the setup copy node references the setup source node as the preferred time server.
The setup source node will be configured as an SNTP server.
The external time server could be a server within your local network or it could be a public time server. As mentioned before, the external time server should ideally be accessible through a reliable and low latency network link to minimize jitter, so a site time server is highly recommended.
As shown in the configuration below, the NTP client on the setup copy node will be configured to also reference the external time server as a non-preferred server. It will automatically failover to synchronize directly with the external time server when the setup source node is unavailable as the preferred time server.
Peer time server
The peer time server configuration option configures the setup copy node to reference the setup source node as the preferred time server.
The setup source node will be configured as an SNTP server.
As shown in the configuration below, this option uses no external time servers.