LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 06-16-2005, 03:01 AM   #1
raysr
Member
 
Registered: Nov 2003
Location: WA State
Distribution: Ubuntu 13.04
Posts: 727

Rep: Reputation: 31
Clock Problems


I can't keep my clock synced. Xandros keeps good time but Mandriva gets out of time. I downloaded the time sync program but it doesn't work. Ideas?
 
Old 06-16-2005, 03:07 AM   #2
uberNUT69
Member
 
Registered: Jan 2005
Location: Tasmania
Distribution: Xen Debian Lenny/Sid
Posts: 578

Rep: Reputation: 30
I use an app called ntpdate to keep time on my machines.
Formerly, the most difficult part of the setup was finding an ntp server,
however, my current isp is generous enough to supply one for me.
Try googling for free ntp servers.
 
Old 06-17-2005, 01:19 PM   #3
WuTanZan
LQ Newbie
 
Registered: Jun 2005
Distribution: Mandriva 2009.1
Posts: 18

Rep: Reputation: 0
Hi. Go to MCC - adjust date and time and enable ntp and select a server from the drop down list - you may have to install the ntpd rpm. After that your clock will always be synced.
 
Old 06-17-2005, 02:37 PM   #4
raysr
Member
 
Registered: Nov 2003
Location: WA State
Distribution: Ubuntu 13.04
Posts: 727

Original Poster
Rep: Reputation: 31
Thanks for the reply. I did that but none of the sync addresses will work.
 
Old 06-17-2005, 04:04 PM   #5
WuTanZan
LQ Newbie
 
Registered: Jun 2005
Distribution: Mandriva 2009.1
Posts: 18

Rep: Reputation: 0
Strange. The first thing to do is check ntpd is running on your system. Use
ps -A | grep ntp
to make sure its currently running. If not, check the rpm is installed and enable it in MCC - Boot - Services.
Next. You can manually enter and ntp server in MCC. I use a pool of servers es.pool.ntp.org. You can find the nearest to you at
http://ntp.isc.org/bin/view/Servers/NTPPoolServers
Lastly, if all this is going ok, grep /var/log/messages for ntp. You should see something like

Jun 17 21:52:13 elvis ntpd: ntpd startup succeeded
Jun 17 21:52:13 elvis ntpd[4385]: frequency initialized -9.617 PPM from /etc/ntp/drift

If it still doesnŽt work, please grep /vat/log/messages, errors and warnings for ntp and post the output here so we can see.
 
Old 06-18-2005, 02:24 AM   #6
raysr
Member
 
Registered: Nov 2003
Location: WA State
Distribution: Ubuntu 13.04
Posts: 727

Original Poster
Rep: Reputation: 31
ps -A | grep ntp: 6503? 00:00:00 ntpd
grep/var/log/messages: no such file or directory
grep/vat/log/messages: no such file or directory
MCC shows ntd installed.
 
Old 06-18-2005, 02:32 PM   #7
WuTanZan
LQ Newbie
 
Registered: Jun 2005
Distribution: Mandriva 2009.1
Posts: 18

Rep: Reputation: 0
Hi. Ok. Looks like the ntpd daemon is running on your system. Its a process thats always running and checking the time. So now we need to see what messages the ntpd process is printing - then we can see whats going on. Most of the processes running on your print messages to the file /var/log/messages as they go along - its key to diagnosing any problems in the system. You can only read them as root i.e. admin. I had a typo in my last message - sorry - so iŽll go through it in more detail now.
Open a console and type "su root" then enter your password. Now you can read this file but also do anything else you want so be careful.
type "cat /var/log/messages | grep ntp" and post the result here - if its a lot just print the most recent days messages. Close the root session by entering "exit". Then weŽll take it from there.......
 
Old 06-18-2005, 03:13 PM   #8
raysr
Member
 
Registered: Nov 2003
Location: WA State
Distribution: Ubuntu 13.04
Posts: 727

Original Poster
Rep: Reputation: 31
cat/var/log/messages | grep ntp: no such file or directory
 
Old 06-18-2005, 03:51 PM   #9
WuTanZan
LQ Newbie
 
Registered: Jun 2005
Distribution: Mandriva 2009.1
Posts: 18

Rep: Reputation: 0
Strange What files are in /var/log. What happens when you do "ls /var/log" - donŽt need to be root for that.
 
Old 06-18-2005, 11:52 PM   #10
aaa
LQ Guru
 
Registered: Jul 2003
Location: VA
Distribution: Slack 10.1
Posts: 2,194

Rep: Reputation: 46
Make sure you put spaces in the right spots, like between "cat" and
"/var/log/messages":
Code:
# cat /var/log/messages | grep ntp
Also you need to be connected to the internet to sync time.
 
Old 09-21-2006, 07:07 PM   #11
kgarnett
LQ Newbie
 
Registered: Sep 2006
Distribution: Mandriva, Xandros Server
Posts: 1

Rep: Reputation: 0
clock problems

Quote:
Originally Posted by raysr
I can't keep my clock synced. Xandros keeps good time but Mandriva gets out of time. I downloaded the time sync program but it doesn't work. Ideas?
I see the same thing with Mandriva 2006 compared with Xandros Server 1. Mandriva falls out of sync even with several time servers given. Using ntpq -p shows it falling farther and farther out of sync. I can kill ntpd, use ntpdate to put it right, then start ntpd and see if fall out of sync again.
 
Old 09-21-2006, 09:15 PM   #12
raysr
Member
 
Registered: Nov 2003
Location: WA State
Distribution: Ubuntu 13.04
Posts: 727

Original Poster
Rep: Reputation: 31
Not using Mandriva anymore but I set it up as "local time" and that worked.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
System clock correct, hardware clock wrong karlovac Linux - General 5 01-16-2009 08:19 PM
system clock problems curmudgeon42 Linux - Software 4 08-26-2004 09:06 AM
System Clock Problems rioch Linux - Hardware 2 05-20-2004 11:20 AM
Problems with Clock in Mandrake 10 Seph64 Mandriva 10 05-10-2004 07:18 PM
Clock problems Iriel Linux - Newbie 3 10-26-2003 05:51 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 07:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration