biolocal:Ntpservers

From Wiki CEINGE

(Difference between revisions)
Jump to: navigation, search
Revision as of 15:54, 10 November 2009 (edit)
Mauro (Talk | contribs)

← Previous diff
Current revision (16:55, 10 November 2009) (edit) (undo)
Mauro (Talk | contribs)
(Cluster nodes ntp server)
 
(15 intermediate revisions not shown.)
Line 4: Line 4:
* '''ntp2.ceinge.unina.it''' (=ceingeauth02). * '''ntp2.ceinge.unina.it''' (=ceingeauth02).
* '''ntp.ceinge.unina.it''' (=pc-network): OLD, will be dismissed * '''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 ntp1 and ntp2 are configured as follows, in the /etc/ntpd.conf file
-<pre>+ # restriction to CEINGE DBBM network only
-# restriction to CEINGE DBBM network only+ restrict 143.225.151.0 mask 255.255.255.0 nomodify notrap
-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 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.208.0 mask 255.255.255.0 nomodify notrap+ restrict 143.225.149.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+ # servers used for clock sync
-server 0.it.pool.ntp.org+ server 0.it.pool.ntp.org
-server 1.it.pool.ntp.org+ server 1.it.pool.ntp.org
-server 2.it.pool.ntp.org+ server 2.it.pool.ntp.org
-server 3.it.pool.ntp.org+ server 3.it.pool.ntp.org
-server 0.centos.pool.ntp.org+ server 0.centos.pool.ntp.org
-server 1.centos.pool.ntp.org+ server 1.centos.pool.ntp.org
-server 2.centos.pool.ntp.org+ server 2.centos.pool.ntp.org
-# restriction for remote servers access+ # restriction for limiting remote servers access
-restrict 0.centos.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery+ 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 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 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 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 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+ restrict 2.it.pool.ntp.org mask 255.255.255.255 nomodify notrap noquery
-</pre>+
-== Ceinge NTP client configuration ==+== NTP client configuration ==
-In order to use them, in the client /etc/ntp.conf file, comment the default all other servers and add the lines:+In order to use them, in the client /etc/ntp.conf file, comment all other servers and add the lines:
-<pre>+ server ntp1.ceinge.unina.it
-server ntp1.ceinge.unina.it+ server ntp2.ceinge.unina.it
-server ntp2.ceinge.unina.it+ restrict ntp1.ceinge.unina.it mask 255.255.255.255 nomodify notrap noquery
-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
-restrict ntp2.ceinge.unina.it mask 255.255.255.255 nomodify notrap noquery+ 
-</pre>+== 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

Current revision

[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