How to Set Up the NTP Server
The NTP server is on a separate system from OpenStack nodes.
-
Install the NTP package.
ntp-server# pkg install ntp
-
Install the configuration file.
ntp-server# cp /etc/inet/ntp.server /etc/inet/ntp.conf
-
Edit the /etc/inet/ntp.conf file by configuring the server and driftfile keywords.
For example:
server 127.127.1.0 prefer
...
driftfile /var/ntp/ntp.drift
Note -
127.127.1.0 is not an IP address. It is a format used to refer to a clock that provides accurate time to the server. Make sure to read the comments in the ntp.conf file that explains the server keyword.
-
Create the /var/ntp/ntp.drift file as you have defined in the previous step.
ntp-server# touch /var/ntp/ntp.drift
-
Start the ntp service.
ntp-server# svcadm enable ntp