/
[SoftNAS KB]: Setup NTPD on CentOS Linux

[SoftNAS KB]: Setup NTPD on CentOS Linux

Symptoms

Server is not keeping the correct time.

Purpose

SoftNAS needs persistent time settings to be accurate for HA and replication and the wrong time or timezone can potentially cause issues.

Resolution

Open the terminal or login over the ssh session. You must login as as the root user. Type the following yum command to install NTP:

  # yum install ntp ntpdate ntp-doc

Turn on service, enter:

  # chkconfig ntpd on

Synchronize the system clock with 0.pool.ntp.org server (use this command only once or as required):

  # ntpdate pool.ntp.org

Start the NTP server. The following will continuously adjusts system time from upstream NTP server. No need to run ntpdate:

  # /etc/init.d/ntpd start


Additional Information

Configure ntpd (optional)

Edit /etc/ntp.conf, enter:

  # vi /etc/ntp.conf


Set public servers from the pool.ntp.org project:

  server 0.rhel.pool.ntp.org

  server 1.rhel.pool.ntp.org

  server 2.rhel.pool.ntp.org

References:

  1.  http://www.cyberciti.biz/faq/howto-install-ntp-to-synchronize-server-clock/

Related content

[SoftNAS KB]: HVM Snap Rep/SNAP HA Build Error Related To HwClock
[SoftNAS KB]: HVM Snap Rep/SNAP HA Build Error Related To HwClock
More like this
Configuring System Time
Configuring System Time
More like this
Managing Schedules
Managing Schedules
More like this
[SoftNAS KB]: SoftNAS LDAP Server Configuration
[SoftNAS KB]: SoftNAS LDAP Server Configuration
More like this
Kerberos Authentication SoftNAS Prerequisites
Kerberos Authentication SoftNAS Prerequisites
More like this
Configuring A Daily SoftNAS Health Check Report Summary
Configuring A Daily SoftNAS Health Check Report Summary
More like this