Configuring NTP on the metadata server

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

  1. From the command line, enter:
    rpm -qa | grep ntp
    xntp-4.1.1-289 is displayed.
  2. Display the NTP run levels. These are usually set to off.
    chkconfig --list xntpd
  3. 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
  4. Activate the xntpd daemon on boot:
    chkconfig xntpd on
  5. Display run levels. Run levels 2, 3, 5 are listed as on:
    chkconfig --list xntpd
  6. Open the NTP file with the editor:
    vi /etc/ntp.conf
  7. 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
  8. 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.
  9. Set your local time equal to the time on one or more servers:
    /usr/sbin/ntpdate -b <server_1> [<server_n>]
  10. Set the hardware clock to the system time:
    /sbin/hwclock --systohc
  11. Verify that the CMOS clock is correct:
    /sbin/hwclock --show
  12. Start the xntpd daemon:
    /etc/init.d/xntpd start
  13. Verify that the system date and time on the metadata server match the date and time on the NTP server:
    date

Parent topic: Setting the time and date on the Metadata servers

Library | Support | Terms of use | Feedback
(C) Copyright IBM Corporation 2003, 2004. All Rights Reserved.
IBM TotalStorage SAN File System v2.2