This topic describes how to configure NTP on the metadata server.
Context
Stop all applications that are currently running on the SAN File
System client. To stop applications other than SAN File System applications,
refer to the documentation that comes with the applications.
Steps
- From the command line, enter:
rpm -qa | grep ntp
xntp-4.1.1-289 is displayed.
- Display the NTP run levels. These are usually set to off.
chkconfig --list xntpd
- Stop the xntpd daemon when you have configured it to start when
the server starts or have started it manually. Otherwise continue with the
next step.
/etc/init.d/xntpd stop
- Activate the xntpd daemon on boot:
chkconfig xntpd on
- Display run levels. Run levels 2, 3, 5 are listed as on:
chkconfig --list xntpd
- Open the NTP file with the editor:
vi /etc/ntp.conf
- Scroll down about halfway through the file and after the line that
reads:
NTP server IP_address_of_NTP_server
add
the following line: server xx.xx.xx.xx #IP_address_of_server
- If the ntp.conf file contains a line that reads:
restrict default ignore
comment
out this line. This line prevents the daemon from synchronizing with any of
the servers.
- Set your local time equal to the time on one or more servers:
/usr/sbin/ntpdate -b <server_1> [<server_n>]
- Set the hardware clock to the system time:
/sbin/hwclock --systohc
- Verify that the CMOS clock is correct:
/sbin/hwclock --show
- Start the xntpd daemon:
/etc/init.d/xntpd start
- Verify that the system date and time on the metadata server match
the date and time on the NTP server:
date