CentOS 5 :: How To Set Up NTPD Properly
Dec 16, 2009
I have a Windows 2003 server that runs a Win32 time server which synchronizes with off site time sources. I have a CentOS 5.4 server which I just configured and installed NTP on. For some reason, I keep getting time discrepancies even after the server is (apparently) synching with my local NTP server on the Windows box.
Hwclock is set to UTC true/etc/localtime is properly symlinked to appropriate /usr/share/zoneinfo fileNTPD is setup as a service which loads on startupNTP.conf is configured to only retrieve from my local Windows 2003 time serverntpq -p seems to verify that the system is indeed synching up properlyThe problem is, whenever I run the 'date' command it is displaying my system time in (presumably) UTC. That is, even though my the CentOS box appears to be synching up to the local time, it's not translating it into my proper time zone. Consequently, the date is always at -6 hours from the actual local time. It was my understanding that the hwclock is fine to remain at UTC as ntpd should be synching with my local Windows 2003 time server periodically and updating it, and the system time should be getting translated to my localtime.
what I do, after rebooting the box the hwclock and system clock display the improper time.Maybe I just have a fundamental misunderstanding of how this is supposed to operate.Update: I'm not sure why, but after I commented out the other servers and added a fudge declaration for my internal server and rebooted, everything is working as it should and the time is correct.I'm still not really sure if it was adding the "fudge <hostname> stratum 2" declaration that corrected things, or commenting out the additional hosts, so I'll leave this open if anyone cares to comment or contribute.
View 9 Replies
ADVERTISEMENT
Mar 30, 2011
[root@espeed log]# /etc/init.d/ntpd start
Starting ntpd: ntpd: error while loading shared libraries: libm.so.6: cannot open shared object file: No such file or directory
[root@espeed log]# ldd /usr/sbin/ntpd
linux-gate.so.1 => (0x00786000)
libm.so.6 => /lib/libm.so.6 (0x0059d000)
[code]....
View 8 Replies
View Related
Apr 1, 2010
I am facing issue in ntp, it is getting killed frequently. see below error; # /etc/init.d/ntpd status ntpd dead but pid file exists After starting service it is works fine but again after sometimes it get in dead postition.
View 5 Replies
View Related
Aug 29, 2010
i'm trying to use the ntpd -gq instead of ntpdate. The result is that clock not set. as below. However ntpdate is working ok and had set the clock correctly.this is the ntp.conf file:
[root@CentOS5 ~]# cat /etc/ntp.conf
logfile /var/log/ntp.log
driftfile /var/lib/ntp/drift
server 0.centos.pool.ntp.org
this is the output of command:
[root@CentOS5 ~]# ntpd -dqg
ntpd 4.2.2p1@1.1570-o Sat Dec 19 00:58:16 UTC 2009 (1)[code]....
Also attached is the trace file, from the trace file, everything seems ok, timestamps is sent and received:
View 1 Replies
View Related
Jan 27, 2009
I have a server running VMWare Server on it with 4 virtual machines running. I am trying to use NTPD to keep the time correct on all of the virtual machines. On my physical server, I have installed ntpd and this is it's config file:
Quote:# ntpd.conf
tinker panic 0
restrict 127.0.0.1
restrict default kod nomodify notrap
server 0.vmware.pool.ntp.org
server 1.vmware.pool.ntp.org
server 2.vmware.pool.ntp.org
[Code]...
View 3 Replies
View Related
Nov 20, 2009
I'm having a problem with the time on one of my servers jumping forward into the future. We run serveral CentOS 5.4 servers running Xen, some up to date and some a little older. The one in question is running 2.6.18-164.el5xen, with xen-libs-3.0.3-94.el5_4.2 and xen-3.0.3-94.el5_4.2. On this server are several Xen virtual machines, also running CentOS 5.4 with kernel 2.6.18-164.el5xen. One in particular has problems with the clock keeping proper time.
We use NTP (ntpd) to sync time to a central server in the company. Our NTP set-up works fine, and we have problems on only a couple of servers out of many. The problem I see is that one one particular Xen virtual machine, the clock will suddenly jump forward into the future, usually by several minutes but once by more than an hour. This has obvious implications for software running on the machine. Software such as Oracle grid control agent will restart itself under the (incorrect) assumption that it has been hung for several minutes with no activity. Oracle database will cope gracefully, but applications that refer to the clock will be confused.
We detect these time jumps because we have Nagios checking the clock on each host against the centralised time server (Nagios's check_ntp plugin). Nagios will suddenly report a clock offset that is miles into the future. Following the time jump, ntpd on the host in question will re-sync the time. Ntpd keeps the time steady, ticking just a few milliseconds per second until real time catches up with the server. i.e. Nagios will report the time as being 10 minutes ahead, then a minute later the host will be 9 minutes ahead, and then a further minute later the host will be 8 minutes ahead of real time. The clock on the host stays running very slow until it eventually is correct.
[Code]...
View 6 Replies
View Related
Sep 1, 2010
ntpd startup fails during boot.Does startup just fine manually from command line once it's booted though. Any suggestions what I might adjust?
View 2 Replies
View Related
Jan 21, 2011
I am running a centOS 5.5 server and can't synchronize with time servers via ntpd. My server sits behind a firewall with only port 80 open and I suspect this is the issue. Do I need to open other ports to connect to the time servers at [URL]?
View 4 Replies
View Related
Jan 8, 2010
I cant get ntpd to synchronize with the ntp servers. I have a CentOS 5.3 32 bit Virtual Machine. I'm in USA on Pacific Standard Time. Here's all configuration and other important information for troubleshooting. Is there anything wrong with my config? btw, I used wireshark to look at the UDP packets - I dont get any responses from any of the servers back. I only see requests going out from my server, but no response. Is this a firewall Issue? If it is, then do I need to just enable UDP port 123 on the firewall?
[Code]...
View 4 Replies
View Related
Mar 23, 2010
I had a sata drive go down on my software raid array a couple days ago..After replacing the defective drive, I rebuilt it using fdisk to set partitions and mdadm to add the drive back into the raid array.After getting md2 to mount to /mnt I copied the /mnt/etc/fstab and /mnt/etc/mdadm.conf to the /etc directory and rebooted..When I boot, my /dev/md2 partition is not mounting to / It is not loading all of the services at boot time it should.. the size of /dev/md2 on / is even wrong.. it should be about 1.3TBwhen I manually mount /dev/md2 to /mnt I can access all of my data, through /mnt/var/www/vhosts and so on.. I am at a loss, why is the machine booting to this craziness?All of my data, that I know of can be accessed when md2 is mounted to /mnt[root@ESS000272 etc]# cat mdadm.conf
# mdadm.conf written out by anaconda
DEVICE partitions
MAILADDR root
[code]....
View 1 Replies
View Related
Aug 17, 2010
I have noticed my server do not shutdown properly sometimes.It should do it with this command in a cron with root session /sbin/shutdown -h now
View 3 Replies
View Related
Nov 25, 2010
I have a centos 5.5 server running great, but i am having issues with my xen vm01 virtual machine. The first probelm is, i have created the vm01 fine and it was running ( even though i can not login into it ) by running:
vm console vm01
View 2 Replies
View Related
May 7, 2010
I am rebuilding / updating my internal server. It is strange to me that 11.0 will not install on this ASUS M3A78 MB but 11.2 will go through. I am setting up the ntp server and run into new things, ntpdate is not used anymore so you have this long string : sntp -P no -r pool.ntp.org which does the same thing or a couple of other calls that may work. It seems that pool.ntp.org will not work however so I switched to another time server.
pool.ntp.org does work on 11.0 however, it still uses ntpdate atm.
I can use ntpdate to my server from other clients and get the time but I can't use Yast to set it up, it hangs (or maybe it will eventually time out) when you test the server in the gui tool. rcntp ntptimeset comes back with no server reached on the ntp server machine so I am not confident that it will auto update itself, which I think is an issue, the server will not respond to client queries after a day or two.
View 1 Replies
View Related
Apr 8, 2010
I'm able to connect to ftp as a virtual user. It was also difficult as nowhere mentioned, that it should be done with SSL. Anyway I found the answer and got connection. But now I can't connect to ftp server as system user. It gives me "530 Permission denied", or if I delete the user from the file denied_users, - "530 Login incorrect".
1. Still I can't understand, how I can log in to FTP server with a system user.Also some other questions regarding this matter:
2. My httpd server Apache has a virtual hosts located in "/home" directory.The scripts create users in "/var/ftp virtual_users". Will it cause any problem if I will change them to "/home"? All I need to do with this is ability to have several virtual hosts in one server with separate access to each of them via FTP. And 1 account with access to all files in "/home".
3. In my ftp client I can see the owner of virtual host "ftp" instead of username.
View 7 Replies
View Related
Nov 29, 2010
I am running Centos 5.5 X86_64 and recently after updating my server, I am having problem loading gnome. When the server boots, and begins to bring up the login screen theme, I get an error that states "Could not recognize the image file format for /usr/share/gdm/themes/TreeFlower/background.png" I am able to login after clicking ok to this message, and using the "simplistic" login manager. But when the users desktop loads, there are several errors pertaining to "unsupported image format" and none of the icons are displaying correctly. They are just the default "curvy page" icon for an unassociated file type. Some of the icons do not even show up at all.
Another thing I noticed wierd is that when I try to view a png, nothing happens. When I try to open one using gimp, I get an "unsupported file type" error. When I tried to click on the "add/remove software" button I get prompted for root pass, but nothing happens. So, I tried launching pirut from CLI, and I received the following error:
Quote:
[root@server ~]# pirut
Traceback (most recent call last):
File "/usr/sbin/pirut", line 41, in ?
from pirut import *
[code]...
View 14 Replies
View Related
Aug 20, 2010
I haven't manually configured XWindows in a very long time, so I'm not very certain what I need to do anymore. Hopefully someone can provide some guidance. I just built up a new system that I'm trying to connect to a 47" LCD TV that provides a VGA connection. When the computer starts booting all of the text comes up just fine (1 or 2 characters on the left are chopped, but otherwise fine). When I tried to run the installer for CentOS5.5 I ran into a problem. The monitor(TV) wasn't getting a proper signal to display XWindows. In an effort to keep going, I reconnected the PC to an old monitor and did the install from there. That worked no problem. I ran all the latest updates hoping that maybe this was fixed in a patch. I then shutdown and reconnected to my TV. no luck. When it starts XWindows the screen doesn't display anything. I've tried fooling around with modifying the xorg.conf and adding an explicit "Monitor" section and set it to 640x480 with a VertRefresh of 60 (which is supposedly an acceptable format), but no luck. Can anyone provide any guidance on how to solve this problem. BTW I do know that the VGA connector on the TV works just fine because I can hook up my laptop (Windows XP) to it.
H/W Monitor: Olevia 747i (when nVidia on my laptop detects it, it is reported as 747-b11) Motherboard: Biostar MCP6PB M2+ Motherboard - Socket AM2+, �ATX, Audio, GeForce 6150 Graphics, SATA, RAID Graphics: Using the integrated GeForce 6150 chipset
View 7 Replies
View Related
Dec 17, 2010
I have just configure RAID 1 on my IBM X3400 Server in CENTOS 5 ..Partition information is md0 boot , md1 swap and md2 is root ....but after resyn when i run cat /proc/mdstat I realize that md0 and md1 is ok and present with [UU] status. BUT the md2 is showing on one [U_].. that means my root partition is not properly in RAID 1.. how can i make it active in both drive. Or i need to reinstall complete system again. Screen shot attached [URL]
View 2 Replies
View Related
Nov 24, 2010
I can compile and run ntpd 4.2.6p2, but after a while the reach indicator falls back from 377 to 0 and then the ntpd is in an unsynced state for a while. So far I haven't seen any indication why we have this.
View 1 Replies
View Related
Aug 30, 2010
I'm trying to use the ntpd -gq instead of ntpdate. The result is that clock not set. as below. However ntpdate is working ok and had set the clock correctly
This is the ntp.conf file:
Code:
[root@CentOS5 ~]# cat /etc/ntp.conf
logfile /var/log/ntp.log
driftfile /var/lib/ntp/drift
server 0.centos.pool.ntp.org
This is the output of command:
Code:
[root@CentOS5 ~]# ntpd -dqg
ntpd 4.2.2p1@1.1570-o Sat Dec 19 00:58:16 UTC 2009 (1)
addto_syslog: precision = 1.000 usec
create_sockets(123)
addto_syslog: ntp_io: estimated max descriptors: 1024, initial socket boundary: 16 .....
clock_filter: n 6 off 42905.489022 del 0.390840 dsp 0.000132 jit 4.733917, age 12
16 addto_syslog: no reply; clock not set
Also attached is the trace file, from the trace file, everything seems ok, timestamps is sent and received:
View 1 Replies
View Related
Jun 4, 2009
if I use the final flag, postfix loggs to /var/log/messages, not to /var/log/maillog.What I am doing wrong?regards ralfHere my config:
options {
sync (0);
time_reopen (10);
[code]....
View 2 Replies
View Related
Mar 9, 2010
I had a corrupted superblock in my RAID boot drive (/dev/md0), which I fixed with fsck in Recovery Mode.
However, after rebooting, the same boot-up problem (hanging for hours) persists. When I re-enter Recovery Mode to examine the boot drive, I found its superblock was corrupted again (which I fixed again using fsck).
Is there a proper reboot procedure which is gentle on the boot drive, such that it doesn't corrupt it? Or, is something else amiss?
View 1 Replies
View Related
Dec 10, 2010
We have a Blade server connected to a two internal ESM Cisco switch. We want to have a active-backup configuration with bonding. We follow the documentation and we hace configured the next:
Centos 5.5
ETH0:
[root etc]# cat /etc/sysconfig/network-scripts/ifcfg-eth0
# Broadcom Corporation NetXtreme II BCM5709S Gigabit Ethernet
DEVICE=eth0
[Code].....
View 1 Replies
View Related
Mar 22, 2010
I am trying to synchronize the time of my VM server with ntpd. I have the following configuration. And in the /etc/ntp.conf, I have the following line:
restrict default ignore
restrict 127.0.0.1.
server time1.server
server time2.server
Whenever I have this line, the erver is not able to synchronize its time... So far as I understood, this line prevents other servers using this machine as a time server. And the second line says to allow localhost to use as time server. But why do I need to use its own time server when I have specified to use time1.server and time2.server ? ( firewall for tcp and udp ports 123 is open)
However, when I replace the first line of the configuration with the following line, it works. restrict default kod nomodify notrap noquery But with this, i am allowing other servers to use this server a ntp (which I wouldn't like to). Why this machine tries to use ntp server of its own (to snyc time) and why it is not working though i have the entry "restrict 127.0.0.1" ??
View 1 Replies
View Related
Feb 10, 2011
NTPD on Fedora 14.
View 2 Replies
View Related
Aug 31, 2010
I use Arch, but no info about it in official wiki.
View 2 Replies
View Related
Apr 8, 2009
I have a problem with a server with os Linux RedHat Enterprise AS 4.7:
when the server boots both ntpd and rpc.statd fail to start.
looking into /var/log/messages I found:
and
For ntp, when the server completed the boot process, altough it seems ntpd started, no external server is used for syncronization. The rpc.statd does not start at all and it doesn't appear if I issue a rpcinfo -p
The strange thing is that at this point if I manually start or restart /etc/init.d/ntpd and /etc/init.d/nfslock both services start with no errors. Another strange thing is the timestamp for messages into /var/log/messages. How could it be possible to have a line with a certain timestamp and the following with a timestamp 30 seconds before?
The kernel version in use is 2.6.9-55.0.12.ELsmp #1 SMP x86_64
View 2 Replies
View Related
Jun 28, 2010
I'd like to get the 13.0 "synchronized to <time server>, stratum <stratum>" messages back on 13.1.
- On 13.0, running ntpd 4.2.4p8, reassuring messages appeared in /var/log/messages like "synchronized to 211.233.84.186, stratum 2".
- On 13.1, running ntpd 4.2.6p1, there are no messages in /var/log/messages to confirm that time is being synchronised.
rc.ntpd on both starts ntpd with the same options. /etc/ntp.conf is identical on both, a "get it working and then make it secure" version:
Code:
cat /etc/ntp.conf | grep -E -v '^$|^#' cat /etc/ntp.conf | grep -E -v '^$|^#'
server in.pool.ntp.org
server asia.pool.ntp.org
server 127.127.1.0
fudge 127.127.1.0 stratum 10
driftfile /etc/ntp/drift
According to Linux Home Networking, synchronization can be checked using ntpq -p. This shows synchronization is working. I would prefer to see that confirmation in /var/log/messages without having to run a command manually to check it. How to get the old messages back?
View 14 Replies
View Related
Jul 19, 2011
I'm trying to sync my clock. I think I would like to do this by the "ntpd" daemon running. I think it should start up on boot, but it doesn't.
I have the following in my /var/log/syslog:
Jul 18 23:44:14 neo ntpd[1780]: ntpd 4.2.6p2@1.2194-o Sun Oct 17 13:45:13 UTC 2010 (1)
Jul 18 23:44:14 neo ntpd[1781]: proto: precision = 0.634 usec
Jul 18 23:44:14 neo ntpd[1781]: unable to bind to wildcard address 0.0.0.0 - another process may be running - EXITING
Jul 18 23:44:14 neo ntpdate[1194]: step time server 72.26.125.125 offset -0.505108 sec
Other posts say if ntpd and ntpdate run too close together, they cause one to think the other is locking a resource. It works to type "ntpdate pool.ntp.org" to manually update the clock. My Debian version is squeeze (6.0.2)
It works to start the ntpd daemon manually:
... sudo /etc/init.d/ntp start
... Starting NTP server: ntpd.
View 2 Replies
View Related
Mar 29, 2011
I am having a situation with an NTPD server.
Code:
remote refid st t when poll reach delay offset jitter
plesk2.datacent .INIT. 16 u - 64 0 0.000 0.000 0.000
91.198.87.118.b .INIT. 16 u - 64 0 0.000 0.000 0.000
core.fr.zeroloo .INIT. 16 u - 64 0 0.000 0.000 0.000
178-26-105-100- .INIT. 16 u - 64 0 0.000 0.000 0.000
and it remains so no matter how long I wait...
Hoping to get better results with ntpdate, I stopped NTPS and tried :
Code:
# ntpdate ntp.skynet.be
29 Mar 09:12:26 ntpdate[4715]: no server suitable for synchronization found
# ntpdate -ud ntp.skynet.be
29 Mar 09:14:02 ntpdate[4814]: ntpdate 4.2.4p4@1.1520-o Sun Nov 22 16:14:35 UTC 2009 (1)
transmit(195.13.23.5)
receive(195.13.23.5) .....
I am running Debian Lenny 64b, and every packages are totally updated. I have 25 identical servers. And there is just one giving me this problem. From what I see, it is not a connection/FW issue since ntpdate get replies from the ntp server (ntp.skynet.be is my isp's stratum 2 ntp server).
View 14 Replies
View Related
Mar 25, 2010
I have recently installed Slackware 13 (64bit) (Kernel 2.6.29.6) on an Acer Veriton M series with AMD Athlon cpu. I have started ntpd server and from it's log file it seems to be synchronising to each of the three stratum 2 servers specified in the ntp.conf file.
25 Mar 18:27:02 ntpd[4542]: time reset +2.163491 s
25 Mar 18:33:08 ntpd[4542]: synchronized to 130.88.200.4, stratum 2
25 Mar 18:37:25 ntpd[4542]: synchronized to 130.88.200.6, stratum 2
25 Mar 18:42:59 ntpd[4542]: time reset +2.282097 s
25 Mar 18:49:21 ntpd[4542]: synchronized to 130.88.200.6, stratum 2
25 Mar 18:50:17 ntpd[4542]: synchronized to 130.159.196.118, stratum 2
25 Mar 18:55:57 ntpd[4542]: synchronized to 130.88.200.6, stratum 2
25 Mar 18:58:57 ntpd[4542]: time reset +2.147508 s
If I invoke ntpdate from another linux machine, that ntpdate reports that the stratum of the ntpd server is too high and won't use it.
transmit(192.168.175.8)
receive(192.168.175.8)
transmit(192.168.175.8)
receive(192.168.175.8)
transmit(192.168.175.8)
192.168.175.8: Server dropped: strata too high
server 192.168.175.8, port 123
stratum 16, precision -20, leap 11, trust 000
refid [192.168.175.8], delay 0.02577, dispersion 0.00000
transmitted 4, in filter 4
reference time: cf562778.a310c705 Thu, Mar 25 2010 18:18:32.636
originate timestamp: cf562cdd.048cbee3 Thu, Mar 25 2010 18:41:33.017
transmit timestamp: cf562cd0.56618ce2 Thu, Mar 25 2010 18:41:20.337
filter delay: 0.02579 0.02577 0.02579 0.02579
0.00000 0.00000 0.00000 0.00000
filter offset: 12.68024 12.68024 12.68024 12.68024
0.000000 0.000000 0.000000 0.000000
delay 0.02577, dispersion 0.00000
offset 12.680248
25 Mar 18:41:20 ntpdate[9683]: no server suitable for synchronization found
I have run ntpd on another platform with Slackware 12 (32bit) and never had any problems.
View 6 Replies
View Related