TimeSynchronisation » History » Version 2

Anonymous, 09/14/2007 09:47 AM

1 2 Anonymous
2 2 Anonymous
h1. Time Synchronisation
3 2 Anonymous
4 1 Anonymous
The system time on all nodes must be synchronized as 
5 1 Anonymous
 a) data is written/read on/from a common, shared file system or even expires after a certain period of time and must be deleted, and 
6 1 Anonymous
 b) system logs are maintained independently but entries must be able to be associated with each other.
7 1 Anonymous
8 2 Anonymous
* Add your own time server to _/etc/ntp/ntpservers_: 
9 2 Anonymous
<pre>
10 1 Anonymous
   128.243.21.16 #marian.cs.nott.ac.uk
11 1 Anonymous
   128.243.21.17 #robin.cs.nott.ac.uk
12 1 Anonymous
   128.243.21.18 #tuck.cs.nott.ac.uk
13 1 Anonymous
   128.243.21.19 #pat.cs.nott.ac.uk
14 2 Anonymous
</pre>
15 1 Anonymous
16 2 Anonymous
* Modify _/etc/ntp.conf_ in order to permit systems on the subnet to synchronise with this time service:
17 2 Anonymous
<pre>
18 1 Anonymous
   # -- CLIENT NETWORK -------
19 1 Anonymous
   restrict 192.168.199.0 mask 255.255.255.0 nomodify notrap
20 1 Anonymous
   broadcastclient
21 2 Anonymous
</pre>
22 1 Anonymous
 
23 2 Anonymous
* Modify _/etc/ntp.conf_ and add further time servers:
24 2 Anonymous
<pre>
25 1 Anonymous
   # --- OUR TIMESERVERS -----
26 1 Anonymous
   server 128.243.21.16 #marian.cs.nott.ac.uk
27 1 Anonymous
   restrict 128.243.21.16 mask 255.255.255.255 nomodify notrap noquery
28 1 Anonymous
   server 128.243.21.17 #robin.cs.nott.ac.uk
29 1 Anonymous
   restrict 128.243.21.17 mask 255.255.255.255 nomodify notrap noquery
30 1 Anonymous
   server 128.243.21.18 #tuck.cs.nott.ac.uk
31 1 Anonymous
   restrict 128.243.21.18 mask 255.255.255.255 nomodify notrap noquery
32 1 Anonymous
   server 128.243.21.19 #pat.cs.nott.ac.uk
33 1 Anonymous
   restrict 128.243.21.19 mask 255.255.255.255 nomodify notrap noquery
34 2 Anonymous
</pre>
35 1 Anonymous
36 2 Anonymous
* Make the NTP daemon start at bootup. Enter at the command line of the master node and each slave node:
37 2 Anonymous
<pre>
38 1 Anonymous
   /sbin/chkconfig  --add ntpd
39 1 Anonymous
   /sbin/chkconfig  ntpd  on
40 2 Anonymous
</pre>
41 1 Anonymous
42 2 Anonymous
* Start the NTP daemon. Enter at the command line of the master node and each slave node:
43 2 Anonymous
<pre>
44 1 Anonymous
   /sbin/service ntpd start
45 2 Anonymous
</pre>