biolocal:Ntpservers

From Wiki CEINGE

Jump to: navigation, search

[edit] Ceinge NTP servers

Ceinge NTP servers are:

  • ntp1.ceinge.unina.it (=ceingeauth01)
  • ntp2.ceinge.unina.it (=ceingeauth02).
  • ntp.ceinge.unina.it (=pc-network): OLD, will be dismissed
  • ntp.computing.ceinge.unina.it (=bpe): OLD, it has been dismissed

ntp1 and ntp2 are configured as follows, in the /etc/ntpd.conf file

# restriction to CEINGE DBBM network only
restrict 143.225.151.0 mask 255.255.255.0 nomodify notrap
restrict 192.168.0.0 mask 255.255.0.0 nomodify notrap
restrict 143.225.208.0 mask 255.255.255.0 nomodify notrap
restrict 143.225.149.0 mask 255.255.255.0 nomodify notrap
# servers used for clock sync
server 0.it.pool.ntp.org
server 1.it.pool.ntp.org
server 2.it.pool.ntp.org
server 3.it.pool.ntp.org
server 0.centos.pool.ntp.org
server 1.centos.pool.ntp.org
server 2.centos.pool.ntp.org
# restriction for limiting remote servers access
restrict 0.centos.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 1.centos.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 2.centos.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 0.it.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 1.it.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
restrict 2.it.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery

[edit] NTP client configuration

In order to use them, in the client /etc/ntp.conf file, comment all other servers and add the lines:

server ntp1.ceinge.unina.it
server ntp2.ceinge.unina.it
restrict ntp1.ceinge.unina.it mask 255.255.255.255 nomodify notrap noquery
restrict ntp2.ceinge.unina.it mask 255.255.255.255 nomodify notrap noquery

[edit] Cluster nodes ntp server

Differently from other machines, cluster nodes are synchronized by using ntpdate and no deamon ntpd is necessary. Cluster nodes ntp server is ntp.computing.ceinge.unina.it (=ceingeauth01) and they are synchronized by cron through a script (/etc/cron.hourly/ntpdate.cron) launched hourly.

[node~]# cat /etc/cron.hourly/ntpdate.cron 
#!/bin/sh

/usr/sbin/ntpdate -s -b -p 8 -u ntp.computing.ceinge.unina.it
Personal tools