LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 10-07-2004, 12:47 PM   #1
mrconover
LQ Newbie
 
Registered: Oct 2003
Distribution: gentoo redhat debian
Posts: 7

Rep: Reputation: 0
linux time changes 1 hour -- after reboot


we are running a linux rsync server where keeping accurate dates and times is essential. today after rebooting the linux box, which has not occured in a few weeks the times of the files on our rsync shares is 1 hour retarded from before reboot? How can this happen? Is there any way to correct this? Is there any way of mass changing time stamps? Help.
 
Old 10-07-2004, 01:11 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
You can set the date with the 'date' command or, use 'ntpdate clock.server.name', or 'netdate clock.server.name' (you'll need to find either a local or remote time server to get the correct time).

after you have the correct time, update your compter's clock with 'hwclock -w'

To change all the timestamps in question, try 'touch filename'
 
Old 10-07-2004, 02:34 PM   #3
mrconover
LQ Newbie
 
Registered: Oct 2003
Distribution: gentoo redhat debian
Posts: 7

Original Poster
Rep: Reputation: 0
its not that my time is wrong or my hardware time is wrong I use ntp to sync the time and that has stayed constant, including hardware time. Touch looks like it could work if I can figure out a way to touch all files recursivley and start with that particular files time and not the systems at the time of execution. Any suggestions?

Last edited by mrconover; 10-07-2004 at 02:48 PM.
 
Old 10-07-2004, 04:25 PM   #4
mrconover
LQ Newbie
 
Registered: Oct 2003
Distribution: gentoo redhat debian
Posts: 7

Original Poster
Rep: Reputation: 0
figured out a solution - wrote a bash script using a for loop and touch.
 
Old 10-07-2004, 06:13 PM   #5
Shade
Senior Member
 
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
Good solution, but the key is to figure out why you're having the problem. Often, it can indicate something else wrong.

Unfortunately, I don't have any ideas of where to look.

Good luck!

--Shade
 
  


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
modification time off 1 hour between linux and windows after DST adjustment pvlogin Linux - Software 3 11-01-2005 10:51 AM
am/pm verses 24 hour time CouchMaster Suse/Novell 5 05-05-2005 02:02 PM
Time updated by ntp is 1 hour behind jon1591 Linux - Newbie 2 06-21-2004 03:34 PM
Why is the time always an hour behind? aaa LQ Suggestions & Feedback 6 07-23-2003 01:34 PM
clock keeps going forward one hour every reboot. Frustin Linux - General 2 08-08-2002 03:44 AM


All times are GMT -5. The time now is 06:42 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration