Sponsored Content
Operating Systems Linux SuSE unable to sync the time with ntp server Post 302181134 by sunil456 on Wednesday 2nd of April 2008 07:30:23 AM
Old 04-02-2008
Data

We are using suse-linux and we are not getting any error messages. we tried 1. adding ntp server in ntp.conf file and restarting xntpd
2. using ntpdate -u <ntpserver>
this also doesn't work .

In /var/log/ntp these are the following messages.



1 Apr 12:17:02 ntpd[26972]: sendto(10.188.0.21): Bad file descriptor
1 Apr 12:17:03 ntpd[26972]: sendto(10.188.0.20): Bad file descriptor
1 Apr 12:17:04 ntpd[26972]: sendto(10.188.0.21): Bad file descriptor
1 Apr 12:17:05 ntpd[26972]: sendto(10.188.0.20): Bad file descriptor
1 Apr 12:17:06 ntpd[26972]: sendto(10.188.0.21): Bad file descriptor
1 Apr 12:17:07 ntpd[26972]: sendto(10.188.0.20): Bad file descriptor
1 Apr 12:17:08 ntpd[26972]: sendto(10.188.0.21): Bad file descriptor
1 Apr 12:17:08 ntpd[26972]: ntpd exiting on signal 2
1 Apr 12:22:45 ntpd[24999]: no servers reachable
1 Apr 12:30:05 ntpd[24999]: synchronized to 10.188.0.20, stratum 3
1 Apr 12:33:13 ntpd[24999]: no servers reachable
1 Apr 12:40:47 ntpd[24999]: synchronized to 10.188.0.21, stratum 3
1 Apr 12:48:34 ntpd[24999]: synchronized to 10.188.0.20, stratum 3
1 Apr 12:48:38 ntpd[24999]: time reset +4.722232 s
1 Apr 12:49:27 ntpd[24999]: ntpd exiting on signal 15
1 Apr 12:50:45 ntpd[29152]: synchronized to 10.188.0.21, stratum 3
1 Apr 12:50:45 ntpd[29152]: kernel time sync disabled 0041
1 Apr 12:51:23 ntpd[29152]: ntpd exiting on signal 15
1 Apr 13:54:40 ntpd[29248]: synchronized to LOCAL(0), stratum 10
1 Apr 13:54:40 ntpd[29248]: kernel time sync disabled 0041
1 Apr 14:09:52 ntpd[29248]: kernel time sync enabled 0001
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

TIME SYNC (NTP)

Is there a utility which offers the ability to utilize NTP to sync time on machine. If so please point to man page or web site (3 Replies)
Discussion started by: SmartJuniorUnix
3 Replies

2. UNIX for Advanced & Expert Users

How To Provide Time Sync Using Nts-150 Time Server On Unix Network?

can anybody tel lme,how to instal NTS -150 on a unix network,it needs some patch to fetch time frm serve,,?? (2 Replies)
Discussion started by: pesty
2 Replies

3. UNIX for Advanced & Expert Users

Sync Time/date with NTP server

Hello all, What would be the most convienint and proper way on syncing up the time and date on Solaris 8 servers with an NTP server? Any help would be appreciated. Thanks (2 Replies)
Discussion started by: Sunguy222
2 Replies

4. UNIX for Advanced & Expert Users

How to set NTP server to +1 hour time?

Hello, colleges! I need to synchronize time on several thousands device (UTM-1 Edge Appliances - All inclusive, all secure, all branch offices.) which don`t understand summer time at all. But in my country summer time are used. I plan to sync it with NTP server with modificated time: plus one... (2 Replies)
Discussion started by: chmelvv
2 Replies

5. Solaris

NTP time sync in Solaris 10

Ok, I have 4 production systems. There is one NTP server for all four systems. In each system there is one Solaris 10 box that points to that NTP server. All of the other machines in the system point to the Solaris 10 machine to get their time sync. All four Solaris 10 machines have essentially... (2 Replies)
Discussion started by: DeCoTwc
2 Replies

6. Red Hat

ntp error: time sync and frequency error

Hi Expert, One on my server keep logging this error below, how to fix this issue? Thank you. Reggy. pluton02:/home/reggy --> sudo grep "ntpd" /var/log/messages | tail Oct 6 00:26:18 pluton02 ntpd: time reset -6.588403 s Oct 6 00:26:18 pluton02 ntpd: frequency error -512 PPM exceeds... (0 Replies)
Discussion started by: regmaster
0 Replies

7. Linux

How often does Linux NTP server update its time with the external NTP server?

All here, thank you for listening. Now I've set up a Linux NTP server by adding a external windows NTP server in /etc/ntp.conf. Then I start the ntpd daemon. But how often does the Linux NTP server update its time with the external NTP server? I've looked up everywhere but found no information... (1 Reply)
Discussion started by: MichaelLi
1 Replies

8. Fedora

NTP Clients not sync

hi guys I have several Red Hat 5.7(7) all of them sync time with two NTP Servers based on Windows but the issue is I configure the NTP service, I start the ntp service and use ntpdate -u to set the time the first time This is what I do 1. Configure /etc/ntp.conf restrict default kod... (2 Replies)
Discussion started by: karlochacon
2 Replies

9. Linux

Questions about the NTP time server sync

Hi folks, I have developed a Linux server for my customer. After migrating the server to my customer site, I was trying to sync its time to the NTP time servers at my customer site. Below is the ntp.conf: % vi /etc/ntp.conf # Permit time synchronization with our time source, but do not # permit... (2 Replies)
Discussion started by: kimurayuki
2 Replies

10. Red Hat

Ntp client sync with local over ntp server

Hi, I have two ntp servers in my cluster and I want all the nodes in my cluster to sync with either of the ntp servers or just one. Unfortunately it keep rotating the sync, between my ntp server 1, ntp server 2 and local. Is there anyway I can change the sync to avoid local? # ntpq -p ... (3 Replies)
Discussion started by: pjeedu2247
3 Replies
NTPD(8) 						 Clockwatcher's Programming Manual						   NTPD(8)

NAME
ntpd - time synchronization daemon implementing NTP SYNOPSIS
ntpd [-d] [-s] [-t] OPTIONS
-d will bump the debug level by one. May be specified more than once to increment debug level by one each time. Has no effect if ntpd has not been compiled with DEBUG defined. -s will cause ntpd to not adjust the the local clock. -t will cause ntpd to modify the value of tickadj in your kernel. This will have no effect unless ntpd was compiled with SETTICKADJ defined. DESCRIPTION
NTPD is the network time synchronization daemon and is normally invoked at boot time from the /etc/rc(8) file. It implements a new revi- sion of the Network Time Protocol first described in RFC-958. It maintains the host's time synchronized with a set of distributed time servers, each with varying accurracy and reliability. Multiple time server masters may exist, but there is no requirement for election of a single master. Ntpd uses the adjtime(2) system call to slew the clock of the host by small amount in order to keep the clock synchronized. If the local clock exceeds the ``correct'' time by some threshold, then settimeofday(2) is used to make a step adjustment of the local clock. When ntpd(8) is started on the machine, it reads configuration information from /etc/ntp.conf which contains information about other ntp time servers and host specific information. Configuration information is listed one entry per line, with fields separated by whitespace. Lines which begin with a ``#'' character are treated as comments. Here is a sample configuration file: # # Local clock parameters # # Precision of the local clock to the nearest power of 2 # ex. # 60-HZ = 2**-6 # 100-HZ = 2**-7 # 1000-HZ = 2**-10 precision -7 # # intrinsic drift of local clock # tickadj 1 # # Peers Type Name # peer foo.umd.edu peer 192.5.39.94 peer bar.arpa server bogon.umd.edu passive bozo.umd.edu There are two major types of information specified in the configuration file: local host information, and remote timer server specifica- tion. The local host information is used to describe the intrinsic properties of the local host's timekeeping machinary. The commands in this group are precision, and tickadj. The precision command takes a number which describes the resolution of the local clock, as a power of two. For example, a VAX system typi- cally has a 100 HZ clock and thus a precision of -7. If the symbol _hz is defined in the namelist of /vmunix, this value is automatically set based on the value of hz. The tickadj command is used to specify the granularity of clock adjustment done by the adjtime(2) system call. If the -s option is speci- fied when ntpd is invoked, the kernel variable _tickadj is modified via /dev/kmem. The preferred method of setting tickadj is by changing the value in the kernel file conf.c instead of having ntpd set in this rude fashion. On a VAX, a value of 1 is usually used. See the README file for typical values of tickadj on various hardware platforms. Currently three timer server specifications are supported. They are peer, server and passive. Each command takes either a dotted-quad internet address or a host name. Each host specified in any one of the three commands is elligable to be synchronized to, while random hosts which set up a peer relationship are not. The peer and server commands create an active polling situation; in the case of peer, the NTP packets are sourced in Symmetric-Active mode, while using server causes the packets to be in Client mode. When reachability is lost with a configured host in either of these two cases, the daemon will continue to poll to re-acquire that host. A host specified in the passive command will not continue to be polled. If that host begins to poll us, it will be eligable as to be synchronized but will not be polled if reachability is lost. It is recommended that the bulk of the peers configured should be specified with the client keyword; this will minimize resource usage on the remote NTP server. If your host will be serving as a redistribution point for a cluster of hosts, you should set up peer relation- ships with higher quality clocks (lower stratums) and other equal stratum clocks. In other words, if you are not redistributing time to others, you shouldn't need to configure any peers in your NTP configuration; client specifications are more appropriate. NOTES
Please choose your NTP peers carefully; send mail to ntp@TRANTOR.UMD.EDU for assitance. There exists a broadcast command which will exercise completely untested code. Use at your own risk. There is no reason to believe that the hpux code which was added still works. In general, this code and adaptations of the NTPD to plat- forms without the adjtime(2) system call are not likely to be very satisfying. BUGS
No doubt. FILES
/etc/ntp.conf NTP daemon configuration file SEE ALSO
adjtime(2), settimeofday(2), RFC-958, Network Time Protocol (Version 1) Specification and Implementation, Revised 17 September 1988 AUTHORS
Louis A. Mamakos, louie@TRANTOR.UMD.EDU Michael G. Petry, petry@TRANTOR.UMD.EDU The University of Maryland, Computer Science Center. LOCAL
27 November 1996 NTPD(8)
All times are GMT -4. The time now is 10:22 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy