Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Red Hat Install (http://www.linux-archive.org/red-hat-install/)
-   -   NTP (http://www.linux-archive.org/red-hat-install/12147-ntp.html)

Yazan Albakheit 12-04-2007 04:30 PM

NTP
 
Dear ,


*


* *Can you Help me in configuring the NTP between two nodes running
RHEL_AS_V4_U5* .


*


** I Have** two Server (A,B)** I want server B* to take its
time from server A* only.


*


*


Thanks.







_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@redhat.com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@redhat.com
Subject: unsubscribe

Rick Stevens 12-04-2007 06:31 PM

NTP
 
On Tue, 2007-12-04 at 19:30 +0200, Yazan Albakheit wrote:
> Dear ,
>
>
>
> Can you Help me in configuring the NTP between two nodes running
> RHEL_AS_V4_U5 .
>
>
>
> I Have two Server (A,B) I want server B to take its time from
> server A only.

The easiest way is to use system-config-date or redhat-config-date.
When the GUI comes up, go to the "Network Time Protocol" tab, check
the "Enable Network Time Protocol" box and put add the "A" machine in
the NTP Servers box.

If you want to do it the hard way, then edit /etc/ntp.conf. Delete all
lines that start with the word "server", then add one that specifies
your machine:

server a.yourdomain.com (domain based)
server www.xxx.yyy.zzz (using only an IP address)

You should also delete any lines that begin "restrict" and contain the
old NTP servers' names and add a line for your machine:

restrict a.yourdomain.com mask 255.255.255.255 nomodify notrap
noquery

(that last bit should all be on one line).

----------------------------------------------------------------------
- Rick Stevens, Principal Engineer rstevens@internap.com -
- CDN Systems, Internap, Inc. http://www.internap.com -
- -
- Real Time, adj.: Here and now, as opposed to fake time, which only -
- occurs there and then -
----------------------------------------------------------------------

_______________________________________________
Redhat-install-list mailing list
Redhat-install-list@redhat.com
https://www.redhat.com/mailman/listinfo/redhat-install-list
To Unsubscribe Go To ABOVE URL or send a message to:
redhat-install-list-request@redhat.com
Subject: unsubscribe

"Davy Leon" 12-17-2009 03:16 PM

NTP
 
Hi folks
*
I have a Centos 5.3. I'm wondering how can I make
this linux box to act as a time server for my small network.
I just need this Centos PC act as a time reference
for the other PCs so they can keep the time exact the same as the Centos server.
Don;t need to syncronize the server with tyhe internet, just keep my local
network with the same time in all the PC.
*
Thanks in advance
*
David
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Ray Van Dolson 12-17-2009 03:20 PM

NTP
 
On Thu, Dec 17, 2009 at 11:16:45AM -0500, Davy Leon wrote:
> Hi folks
>
> I have a Centos 5.3. I'm wondering how can I make this linux box to
> act as a time server for my small network. I just need this Centos
> PC act as a time reference for the other PCs so they can keep the
> time exact the same as the Centos server. Don;t need to syncronize
> the server with tyhe internet, just keep my local network with the
> same time in all the PC.
>

http://kbase.redhat.com/faq/docs/DOC-2148

Ray
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Steve Lindemann 12-17-2009 03:49 PM

NTP
 
Ray Van Dolson wrote:
> On Thu, Dec 17, 2009 at 11:16:45AM -0500, Davy Leon wrote:
>> I have a Centos 5.3. I'm wondering how can I make this linux box to
>> act as a time server for my small network. I just need this Centos
>> PC act as a time reference for the other PCs so they can keep the
>> time exact the same as the Centos server. Don;t need to syncronize
>> the server with tyhe internet, just keep my local network with the
>> same time in all the PC.
>>
> http://kbase.redhat.com/faq/docs/DOC-2148
>

And if you're into learning about ntp, here are a few other references
that may prove useful...

http://www.eecis.udel.edu/~mills/ (original developer, now retired)

http://www.ntp.org/
http://asg.andrew.cmu.edu/rfc/rfc1305.html
http://support.ntp.org/bin/view/Servers/WebHome

...I have a few more time related links but these three are the best of
my collection for ntp.
--
Steve Lindemann __
Network Administrator // ASCII Ribbon Campaign
Marmot Library Network, Inc. // against HTML/RTF email,
http://www.marmot.org // vCards & M$ attachments
+1.970.242.3331 x116


_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

"Davy Leon" 12-17-2009 04:06 PM

NTP
 
thanks guys I'm seeing is not so hard.


----- Original Message -----
From: "Steve Lindemann" <steve@marmot.org>
To: "CentOS mailing list" <centos@centos.org>
Sent: Thursday, December 17, 2009 11:49 AM
Subject: Re: [CentOS] NTP


> Ray Van Dolson wrote:
>> On Thu, Dec 17, 2009 at 11:16:45AM -0500, Davy Leon wrote:
>>> I have a Centos 5.3. I'm wondering how can I make this linux box to
>>> act as a time server for my small network. I just need this Centos
>>> PC act as a time reference for the other PCs so they can keep the
>>> time exact the same as the Centos server. Don;t need to syncronize
>>> the server with tyhe internet, just keep my local network with the
>>> same time in all the PC.
>>>
>> http://kbase.redhat.com/faq/docs/DOC-2148
>>
>
> And if you're into learning about ntp, here are a few other references
> that may prove useful...
>
> http://www.eecis.udel.edu/~mills/ (original developer, now retired)
>
> http://www.ntp.org/
> http://asg.andrew.cmu.edu/rfc/rfc1305.html
> http://support.ntp.org/bin/view/Servers/WebHome
>
> ...I have a few more time related links but these three are the best of
> my collection for ntp.
> --
> Steve Lindemann __
> Network Administrator // ASCII Ribbon Campaign
> Marmot Library Network, Inc. // against HTML/RTF email,
> http://www.marmot.org // vCards & M$ attachments
> +1.970.242.3331 x116
>
>
> _______________________________________________
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>
_______________________________________________
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

Patrick Dupre 02-27-2012 08:55 PM

ntp
 
Hello,

My machine (fedora 16) does not synchronize its time.
ntpd is running, but ntpdate 0.fedora.pool.ntp.org
generate an error:
27 Feb 21:44:29 ntpdate[3184]: the NTP socket is in use, exiting

Here is my ntp.conf


# For more information about this file, see the man pages
# ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5),
ntp_mon(5).


driftfile /var/lib/ntp/drift

# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

# Permit all access over the loopback interface. This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1
restrict -6 ::1

# Hosts on local network are less restricted.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 0.fedora.pool.ntp.org iburst
server 1.fedora.pool.ntp.org iburst
server 2.fedora.pool.ntp.org iburst
server 3.fedora.pool.ntp.org iburst

#broadcast 192.168.1.255 autokey # broadcast server
#broadcastclient # broadcast client
#broadcast 224.0.1.1 autokey # multicast server
#multicastclient 224.0.1.1 # multicast client
#manycastserver 239.255.254.254 # manycast server
#manycastclient 239.255.254.254 autokey # manycast client

# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
#server 127.127.1.0 # local clock
#fudge 127.127.1.0 stratum 10

# Enable public key cryptography.
#crypto

includefile /etc/ntp/crypto/pw

# Key file containing the keys and key identifiers used when operating
# with symmetric key cryptography.
keys /etc/ntp/keys

# Specify the key identifiers which are trusted.
#trustedkey 4 8 42

# Specify the key identifier to use with the ntpdc utility.
#requestkey 8

# Specify the key identifier to use with the ntpq utility.
#controlkey 8

# Enable writing of statistics records.
#statistics clockstats cryptostats loopstats peerstats

================================================== ===============
This is part of the message file:



Feb 27 21:22:55 Homere ntpd[2144]: ntpd 4.2.6p4@1.2324-o Thu Oct 6
15:37:57 UTC 2011 (1)

Feb 27 21:22:55 Homere ntpd[2144]: proto: precision = 0.076 usec
Feb 27 21:22:55 Homere ntpd[2144]: 0.0.0.0 c01d 0d kern kernel time sync
enabled
Feb 27 21:22:55 Homere ntpd[2144]: Listen and drop on 0 v4wildcard 0.0.0.0
UDP 123
Feb 27 21:22:55 Homere ntpd[2144]: Listen and drop on 1 v6wildcard :: UDP
123
Feb 27 21:22:55 Homere ntpd[2144]: Listen normally on 2 lo 127.0.0.1 UDP
123
Feb 27 21:22:55 Homere ntpd[2144]: Listen normally on 3 p5p1 134.99.120.46
UDP 123
Feb 27 21:22:55 Homere ntpd[2144]: Listen normally on 4 p5p1
fe80::225:22ff:fecb:b91a UDP 123

Feb 27 21:22:55 Homere ntpd[2144]: Listen normally on 5 lo ::1 UDP 123
Feb 27 21:22:55 Homere ntpd[2144]: peers refreshed
Feb 27 21:22:55 Homere ntpd[2144]: Listening on routing socket on fd #22
for interface updates

Feb 27 21:22:55 Homere ntpd[2144]: 0.0.0.0 c016 06 restart
Feb 27 21:22:55 Homere ntpd[2144]: 0.0.0.0 c012 02 freq_set kernel 0.000
PPM

Feb 27 21:22:55 Homere ntpd[2144]: 0.0.0.0 c011 01 freq_not_set
Feb 27 21:24:15 Homere ntpd[2144]: ntpd exiting on signal 15
Feb 27 21:24:15 Homere ntpd[2147]: ntpd 4.2.6p4@1.2324-o Thu Oct 6
15:37:57 UTC 2011 (1)

Feb 27 21:24:15 Homere ntpd[2147]: proto: precision = 0.243 usec
Feb 27 21:24:15 Homere ntpd[2147]: 0.0.0.0 c01d 0d kern kernel time sync
enabled
Feb 27 21:24:15 Homere ntpd[2147]: Listen and drop on 0 v4wildcard 0.0.0.0
UDP 123
Feb 27 21:24:15 Homere ntpd[2147]: Listen and drop on 1 v6wildcard :: UDP
123
Feb 27 21:24:15 Homere ntpd[2147]: Listen normally on 2 lo 127.0.0.1 UDP
123
Feb 27 21:24:15 Homere ntpd[2147]: Listen normally on 3 p5p1 134.99.120.46
UDP 123
Feb 27 21:24:15 Homere ntpd[2147]: Listen normally on 4 p5p1
fe80::225:22ff:fecb:b91a UDP 123

Feb 27 21:24:15 Homere ntpd[2147]: Listen normally on 5 lo ::1 UDP 123
Feb 27 21:24:15 Homere ntpd[2147]: peers refreshed
Feb 27 21:24:15 Homere ntpd[2147]: Listening on routing socket on fd #22
for interface updates

Feb 27 21:24:15 Homere ntpd[2147]: 0.0.0.0 c016 06 restart
Feb 27 21:24:15 Homere ntpd[2147]: 0.0.0.0 c012 02 freq_set kernel 0.000
PPM

Feb 27 21:24:15 Homere ntpd[2147]: 0.0.0.0 c011 01 freq_not_set
Feb 27 21:24:19 Homere ntpd[2147]: ntpd exiting on signal 15
Feb 27 21:24:19 Homere ntpd[2149]: ntpd 4.2.6p4@1.2324-o Thu Oct 6
15:37:57 UTC 2011 (1)

Feb 27 21:24:19 Homere ntpd[2149]: proto: precision = 0.278 usec
Feb 27 21:24:19 Homere ntpd[2149]: 0.0.0.0 c01d 0d kern kernel time sync
enabled
Feb 27 21:24:19 Homere ntpd[2149]: Listen and drop on 0 v4wildcard 0.0.0.0
UDP 123
Feb 27 21:24:19 Homere ntpd[2149]: Listen and drop on 1 v6wildcard :: UDP
123
Feb 27 21:24:19 Homere ntpd[2149]: Listen normally on 2 lo 127.0.0.1 UDP
123
Feb 27 21:24:19 Homere ntpd[2149]: Listen normally on 3 p5p1 134.99.120.46
UDP 123
Feb 27 21:24:19 Homere ntpd[2149]: Listen normally on 4 p5p1
fe80::225:22ff:fecb:b91a UDP 123

Feb 27 21:24:19 Homere ntpd[2149]: Listen normally on 5 lo ::1 UDP 123
Feb 27 21:24:19 Homere ntpd[2149]: peers refreshed
Feb 27 21:24:19 Homere ntpd[2149]: Listening on routing socket on fd #22
for interface updates

Feb 27 21:24:19 Homere ntpd[2149]: 0.0.0.0 c016 06 restart
Feb 27 21:24:19 Homere ntpd[2149]: 0.0.0.0 c012 02 freq_set kernel 0.000
PPM

Feb 27 21:24:19 Homere ntpd[2149]: 0.0.0.0 c011 01 freq_not_set

--
---
================================================== ========================
Patrick DUPRÉ | |
Department of Chemistry | | Phone: (44)-(0)-1904-434384
The University of York | | Fax: (44)-(0)-1904-432516
Heslington | |
York YO10 5DD United Kingdom | | email: patrick.dupre@york.ac.uk
================================================== ========================--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Pete Travis 02-27-2012 09:12 PM

ntp
 
On Feb 27, 2012 2:56 PM, "Patrick Dupre" <patrick.dupre@york.ac.uk> wrote:

>

> Hello,

>

> My machine (fedora 16) does not synchronize its time.

> ntpd is running, but ntpdate 0.fedora.pool.ntp.org

> generate an error:

> 27 Feb 21:44:29 ntpdate[3184]: the NTP socket is in use, exiting

>

> Here is my ntp.conf

>

>

> # For more information about this file, see the man pages

> # ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5), ntp_mon(5).

>

> driftfile /var/lib/ntp/drift

>

> # Permit time synchronization with our time source, but do not

> # permit the source to query or modify the service on this system.

> restrict default kod nomodify notrap nopeer noquery

> restrict -6 default kod nomodify notrap nopeer noquery

>

> # Permit all access over the loopback interface. *This could

> # be tightened as well, but to do so would effect some of

> # the administrative functions.

> restrict 127.0.0.1

> restrict -6 ::1

>

> # Hosts on local network are less restricted.

> #restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

>

> # Use public servers from the pool.ntp.org project.

> # Please consider joining the pool (http://www.pool.ntp.org/join.html).

> server 0.fedora.pool.ntp.org iburst

> server 1.fedora.pool.ntp.org iburst

> server 2.fedora.pool.ntp.org iburst

> server 3.fedora.pool.ntp.org iburst

>

> #broadcast 192.168.1.255 autokey * * * *# broadcast server

> #broadcastclient * * * * * * * * * * * *# broadcast client

> #broadcast 224.0.1.1 autokey * * * * * *# multicast server

> #multicastclient 224.0.1.1 * * * * * * *# multicast client

> #manycastserver 239.255.254.254 * * * * # manycast server

> #manycastclient 239.255.254.254 autokey # manycast client

>

> # Undisciplined Local Clock. This is a fake driver intended for backup

> # and when no outside source of synchronized time is available.

> #server 127.127.1.0 * * # local clock

> #fudge *127.127.1.0 stratum 10

>

> # Enable public key cryptography.

> #crypto

>

> includefile /etc/ntp/crypto/pw

>

> # Key file containing the keys and key identifiers used when operating

> # with symmetric key cryptography.

> keys /etc/ntp/keys

>

> # Specify the key identifiers which are trusted.

> #trustedkey 4 8 42

>

> # Specify the key identifier to use with the ntpdc utility.

> #requestkey 8

>

> # Specify the key identifier to use with the ntpq utility.

> #controlkey 8

>

> # Enable writing of statistics records.

> #statistics clockstats cryptostats loopstats peerstats

>

> ================================================== ===============

> This is part of the message file:

>

>

>

> Feb 27 21:22:55 Homere ntpd[2144]: ntpd 4.2.6p4@1.2324-o Thu Oct *6 15:37:57 UTC 2011 (1)

> Feb 27 21:22:55 Homere ntpd[2144]: proto: precision = 0.076 usec

> Feb 27 21:22:55 Homere ntpd[2144]: 0.0.0.0 c01d 0d kern kernel time sync enabled

> Feb 27 21:22:55 Homere ntpd[2144]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123

> Feb 27 21:22:55 Homere ntpd[2144]: Listen and drop on 1 v6wildcard :: UDP 123

> Feb 27 21:22:55 Homere ntpd[2144]: Listen normally on 2 lo 127.0.0.1 UDP 123

> Feb 27 21:22:55 Homere ntpd[2144]: Listen normally on 3 p5p1 134.99.120.46 UDP 123

> Feb 27 21:22:55 Homere ntpd[2144]: Listen normally on 4 p5p1 fe80::225:22ff:fecb:b91a UDP 123

> Feb 27 21:22:55 Homere ntpd[2144]: Listen normally on 5 lo ::1 UDP 123

> Feb 27 21:22:55 Homere ntpd[2144]: peers refreshed

> Feb 27 21:22:55 Homere ntpd[2144]: Listening on routing socket on fd #22 for interface updates

> Feb 27 21:22:55 Homere ntpd[2144]: 0.0.0.0 c016 06 restart

> Feb 27 21:22:55 Homere ntpd[2144]: 0.0.0.0 c012 02 freq_set kernel 0.000 PPM

> Feb 27 21:22:55 Homere ntpd[2144]: 0.0.0.0 c011 01 freq_not_set

> Feb 27 21:24:15 Homere ntpd[2144]: ntpd exiting on signal 15

> Feb 27 21:24:15 Homere ntpd[2147]: ntpd 4.2.6p4@1.2324-o Thu Oct *6 15:37:57 UTC 2011 (1)

> Feb 27 21:24:15 Homere ntpd[2147]: proto: precision = 0.243 usec

> Feb 27 21:24:15 Homere ntpd[2147]: 0.0.0.0 c01d 0d kern kernel time sync enabled

> Feb 27 21:24:15 Homere ntpd[2147]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123

> Feb 27 21:24:15 Homere ntpd[2147]: Listen and drop on 1 v6wildcard :: UDP 123

> Feb 27 21:24:15 Homere ntpd[2147]: Listen normally on 2 lo 127.0.0.1 UDP 123

> Feb 27 21:24:15 Homere ntpd[2147]: Listen normally on 3 p5p1 134.99.120.46 UDP 123

> Feb 27 21:24:15 Homere ntpd[2147]: Listen normally on 4 p5p1 fe80::225:22ff:fecb:b91a UDP 123

> Feb 27 21:24:15 Homere ntpd[2147]: Listen normally on 5 lo ::1 UDP 123

> Feb 27 21:24:15 Homere ntpd[2147]: peers refreshed

> Feb 27 21:24:15 Homere ntpd[2147]: Listening on routing socket on fd #22 for interface updates

> Feb 27 21:24:15 Homere ntpd[2147]: 0.0.0.0 c016 06 restart

> Feb 27 21:24:15 Homere ntpd[2147]: 0.0.0.0 c012 02 freq_set kernel 0.000 PPM

> Feb 27 21:24:15 Homere ntpd[2147]: 0.0.0.0 c011 01 freq_not_set

> Feb 27 21:24:19 Homere ntpd[2147]: ntpd exiting on signal 15

> Feb 27 21:24:19 Homere ntpd[2149]: ntpd 4.2.6p4@1.2324-o Thu Oct *6 15:37:57 UTC 2011 (1)

> Feb 27 21:24:19 Homere ntpd[2149]: proto: precision = 0.278 usec

> Feb 27 21:24:19 Homere ntpd[2149]: 0.0.0.0 c01d 0d kern kernel time sync enabled

> Feb 27 21:24:19 Homere ntpd[2149]: Listen and drop on 0 v4wildcard 0.0.0.0 UDP 123

> Feb 27 21:24:19 Homere ntpd[2149]: Listen and drop on 1 v6wildcard :: UDP 123

> Feb 27 21:24:19 Homere ntpd[2149]: Listen normally on 2 lo 127.0.0.1 UDP 123

> Feb 27 21:24:19 Homere ntpd[2149]: Listen normally on 3 p5p1 134.99.120.46 UDP 123

> Feb 27 21:24:19 Homere ntpd[2149]: Listen normally on 4 p5p1 fe80::225:22ff:fecb:b91a UDP 123

> Feb 27 21:24:19 Homere ntpd[2149]: Listen normally on 5 lo ::1 UDP 123

> Feb 27 21:24:19 Homere ntpd[2149]: peers refreshed

> Feb 27 21:24:19 Homere ntpd[2149]: Listening on routing socket on fd #22 for interface updates

> Feb 27 21:24:19 Homere ntpd[2149]: 0.0.0.0 c016 06 restart

> Feb 27 21:24:19 Homere ntpd[2149]: 0.0.0.0 c012 02 freq_set kernel 0.000 PPM

> Feb 27 21:24:19 Homere ntpd[2149]: 0.0.0.0 c011 01 freq_not_set

>

> --

> ---

> ================================================== ========================

> *Patrick DUPRÉ * * * * * * * * * * *| * |

> *Department of Chemistry * * * * * *| * | *Phone: (44)-(0)-1904-434384

> *The University of York * * * * * * | * | *Fax: * (44)-(0)-1904-432516

> *Heslington * * * * * * * * * * * * | * |

> *York YO10 5DD *United Kingdom * * *| * | *email: patrick.dupre@york.ac.uk

> ================================================== ========================

> --

> users mailing list

> users@lists.fedoraproject.org

> To unsubscribe or change subscription options:

> https://admin.fedoraproject.org/mailman/listinfo/users

> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

> Have a question? Ask away: http://ask.fedoraproject.org

>


http://docs.fedoraproject.org/en-US/Fedora/16/html/Release_Notes/sect-Release_Notes-Changes_for_Sysadmin.html#id2975208


--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Michael Cronenworth 02-27-2012 09:14 PM

ntp
 
Patrick Dupre wrote:

My machine (fedora 16) does not synchronize its time.
ntpd is running, but ntpdate 0.fedora.pool.ntp.org
generate an error:
27 Feb 21:44:29 ntpdate[3184]: the NTP socket is in use, exiting


Is chrony running?

$ systemctl status chrony.service

If it is, you cannot run ntp and chrony at the same time.

ntp has been deprecated in favor of chrony in Fedora 16.
http://fedoraproject.org/wiki/Features/ChronyDefaultNTP
--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org

Patrick Dupre 02-27-2012 09:15 PM

ntp
 
On Mon, 27 Feb 2012, Patrick Dupre wrote:


Hello,

My machine (fedora 16) does not synchronize its time.
ntpd is running, but ntpdate 0.fedora.pool.ntp.org
generate an error:
27 Feb 21:44:29 ntpdate[3184]: the NTP socket is in use, exiting

Here is my ntp.conf


# For more information about this file, see the man pages
# ntp.conf(5), ntp_acc(5), ntp_auth(5), ntp_clock(5), ntp_misc(5),
ntp_mon(5).


driftfile /var/lib/ntp/drift

# Permit time synchronization with our time source, but do not
# permit the source to query or modify the service on this system.
restrict default kod nomodify notrap nopeer noquery
restrict -6 default kod nomodify notrap nopeer noquery

# Permit all access over the loopback interface. This could
# be tightened as well, but to do so would effect some of
# the administrative functions.
restrict 127.0.0.1
restrict -6 ::1

# Hosts on local network are less restricted.
#restrict 192.168.1.0 mask 255.255.255.0 nomodify notrap

# Use public servers from the pool.ntp.org project.
# Please consider joining the pool (http://www.pool.ntp.org/join.html).
server 0.fedora.pool.ntp.org iburst
server 1.fedora.pool.ntp.org iburst
server 2.fedora.pool.ntp.org iburst
server 3.fedora.pool.ntp.org iburst

#broadcast 192.168.1.255 autokey # broadcast server
#broadcastclient # broadcast client
#broadcast 224.0.1.1 autokey # multicast server
#multicastclient 224.0.1.1 # multicast client
#manycastserver 239.255.254.254 # manycast server
#manycastclient 239.255.254.254 autokey # manycast client

# Undisciplined Local Clock. This is a fake driver intended for backup
# and when no outside source of synchronized time is available.
#server 127.127.1.0 # local clock
#fudge 127.127.1.0 stratum 10

# Enable public key cryptography.
#crypto

includefile /etc/ntp/crypto/pw

# Key file containing the keys and key identifiers used when operating
# with symmetric key cryptography.
keys /etc/ntp/keys

# Specify the key identifiers which are trusted.
#trustedkey 4 8 42

# Specify the key identifier to use with the ntpdc utility.
#requestkey 8

# Specify the key identifier to use with the ntpq utility.
#controlkey 8

# Enable writing of statistics records.
#statistics clockstats cryptostats loopstats peerstats

================================================== ===============
This is part of the message file:



Feb 27 21:22:55 Homere ntpd[2144]: ntpd 4.2.6p4@1.2324-o Thu Oct 6 15:37:57
UTC 2011 (1)

Feb 27 21:22:55 Homere ntpd[2144]: proto: precision = 0.076 usec
Feb 27 21:22:55 Homere ntpd[2144]: 0.0.0.0 c01d 0d kern kernel time sync
enabled
Feb 27 21:22:55 Homere ntpd[2144]: Listen and drop on 0 v4wildcard 0.0.0.0
UDP 123

Feb 27 21:22:55 Homere ntpd[2144]: Listen and drop on 1 v6wildcard :: UDP 123
Feb 27 21:22:55 Homere ntpd[2144]: Listen normally on 2 lo 127.0.0.1 UDP 123
Feb 27 21:22:55 Homere ntpd[2144]: Listen normally on 3 p5p1 134.99.120.46
UDP 123
Feb 27 21:22:55 Homere ntpd[2144]: Listen normally on 4 p5p1
fe80::225:22ff:fecb:b91a UDP 123

Feb 27 21:22:55 Homere ntpd[2144]: Listen normally on 5 lo ::1 UDP 123
Feb 27 21:22:55 Homere ntpd[2144]: peers refreshed
Feb 27 21:22:55 Homere ntpd[2144]: Listening on routing socket on fd #22 for
interface updates

Feb 27 21:22:55 Homere ntpd[2144]: 0.0.0.0 c016 06 restart
Feb 27 21:22:55 Homere ntpd[2144]: 0.0.0.0 c012 02 freq_set kernel 0.000 PPM
Feb 27 21:22:55 Homere ntpd[2144]: 0.0.0.0 c011 01 freq_not_set
Feb 27 21:24:15 Homere ntpd[2144]: ntpd exiting on signal 15
Feb 27 21:24:15 Homere ntpd[2147]: ntpd 4.2.6p4@1.2324-o Thu Oct 6 15:37:57
UTC 2011 (1)

Feb 27 21:24:15 Homere ntpd[2147]: proto: precision = 0.243 usec
Feb 27 21:24:15 Homere ntpd[2147]: 0.0.0.0 c01d 0d kern kernel time sync
enabled
Feb 27 21:24:15 Homere ntpd[2147]: Listen and drop on 0 v4wildcard 0.0.0.0
UDP 123

Feb 27 21:24:15 Homere ntpd[2147]: Listen and drop on 1 v6wildcard :: UDP 123
Feb 27 21:24:15 Homere ntpd[2147]: Listen normally on 2 lo 127.0.0.1 UDP 123
Feb 27 21:24:15 Homere ntpd[2147]: Listen normally on 3 p5p1 134.99.120.46
UDP 123
Feb 27 21:24:15 Homere ntpd[2147]: Listen normally on 4 p5p1
fe80::225:22ff:fecb:b91a UDP 123

Feb 27 21:24:15 Homere ntpd[2147]: Listen normally on 5 lo ::1 UDP 123
Feb 27 21:24:15 Homere ntpd[2147]: peers refreshed
Feb 27 21:24:15 Homere ntpd[2147]: Listening on routing socket on fd #22 for
interface updates

Feb 27 21:24:15 Homere ntpd[2147]: 0.0.0.0 c016 06 restart
Feb 27 21:24:15 Homere ntpd[2147]: 0.0.0.0 c012 02 freq_set kernel 0.000 PPM
Feb 27 21:24:15 Homere ntpd[2147]: 0.0.0.0 c011 01 freq_not_set
Feb 27 21:24:19 Homere ntpd[2147]: ntpd exiting on signal 15
Feb 27 21:24:19 Homere ntpd[2149]: ntpd 4.2.6p4@1.2324-o Thu Oct 6 15:37:57
UTC 2011 (1)

Feb 27 21:24:19 Homere ntpd[2149]: proto: precision = 0.278 usec
Feb 27 21:24:19 Homere ntpd[2149]: 0.0.0.0 c01d 0d kern kernel time sync
enabled
Feb 27 21:24:19 Homere ntpd[2149]: Listen and drop on 0 v4wildcard 0.0.0.0
UDP 123

Feb 27 21:24:19 Homere ntpd[2149]: Listen and drop on 1 v6wildcard :: UDP 123
Feb 27 21:24:19 Homere ntpd[2149]: Listen normally on 2 lo 127.0.0.1 UDP 123
Feb 27 21:24:19 Homere ntpd[2149]: Listen normally on 3 p5p1 134.99.120.46
UDP 123
Feb 27 21:24:19 Homere ntpd[2149]: Listen normally on 4 p5p1
fe80::225:22ff:fecb:b91a UDP 123

Feb 27 21:24:19 Homere ntpd[2149]: Listen normally on 5 lo ::1 UDP 123
Feb 27 21:24:19 Homere ntpd[2149]: peers refreshed
Feb 27 21:24:19 Homere ntpd[2149]: Listening on routing socket on fd #22 for
interface updates

Feb 27 21:24:19 Homere ntpd[2149]: 0.0.0.0 c016 06 restart
Feb 27 21:24:19 Homere ntpd[2149]: 0.0.0.0 c012 02 freq_set kernel 0.000 PPM
Feb 27 21:24:19 Homere ntpd[2149]: 0.0.0.0 c011 01 freq_not_set




I can that if I run system-config-date
If I check the synchronize date and time over the network
then it kill the ntpd server and vice et versa.

What is wrong?

--
---
================================================== ========================
Patrick DUPRÉ | |
Department of Chemistry | | Phone: (44)-(0)-1904-434384
The University of York | | Fax: (44)-(0)-1904-432516
Heslington | |
York YO10 5DD United Kingdom | | email: patrick.dupre@york.ac.uk
================================================== ========================--
users mailing list
users@lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org


All times are GMT. The time now is 12:06 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.