biolocal:Ntpservers

From Wiki CEINGE

(Difference between revisions)
Jump to: navigation, search
Revision as of 16:43, 10 November 2009 (edit)
Mauro (Talk | contribs)
(Cluster nodes ntp server)
← Previous diff
Revision as of 16:46, 10 November 2009 (edit) (undo)
Mauro (Talk | contribs)
(Cluster nodes ntp server)
Next diff →
Line 39: Line 39:
== Cluster nodes ntp server == == Cluster nodes ntp server ==
-Cluster nodes ntp server is '''ntp.computing.ceinge.unina.it''' (=ceingeauth01).+Differently from other machines, cluster nodes are synchronized by using ''ntpdate'' and no deamon ntpd is necessary.
-Differently from other machines, nodes are synchronized by ntpdate launched by cron hourly through a script (/etc/cron.hourly/ntpdate.cron).+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) launche hourly.
[node~]# cat /etc/cron.hourly/ntpdate.cron [node~]# cat /etc/cron.hourly/ntpdate.cron

Revision as of 16:46, 10 November 2009

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

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

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) launche 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