LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 08-15-2012, 11:21 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
Disable sync time


I use Redhat system , I found that when the system is reboot , the system will sync the bios time to system time , I just would like to ask if this is a system default setting ? is it good practice to disable this function ? if yes , how to do disable it ?

thx
 
Old 08-16-2012, 08:09 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Yes, it is the default setting and really not a good idea to disable the function. Without the hardware clock the system clock would initialize to 00:00:00 01 Jan 1970 at boot up. Assuming you are running NTP it still takes several minutes to sync so your log files will have time jumps which may or may not be a big deal but is necessary if your using any sort of authentication requests. It will mess up file timestamps which again may or may not be a big deal.

So why do you want to disable it?

Last edited by michaelk; 08-16-2012 at 08:11 AM.
 
Old 08-21-2012, 02:27 AM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by michaelk View Post
Yes, it is the default setting and really not a good idea to disable the function. Without the hardware clock the system clock would initialize to 00:00:00 01 Jan 1970 at boot up. Assuming you are running NTP it still takes several minutes to sync so your log files will have time jumps which may or may not be a big deal but is necessary if your using any sort of authentication requests. It will mess up file timestamps which again may or may not be a big deal.

So why do you want to disable it?
thanks your explaination,

the reason for I want to disable it is the hardware clock is always incorrect , it always run faster than normal , I tried contact the hardware vendor , but they can not provide the solution unless replace the hardware . as your explaination , you said it will changed to 00:00 after reboot , how can I disable it so that the server keep current time rather than changed to 00:00 ?

thanks.

Last edited by ust; 08-21-2012 at 02:47 AM.
 
Old 08-21-2012, 07:01 AM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Is the hardware clock off by hours and how much does it drift? BIOS hardware clocks tends to drift for various reasons and is normal. If it drifts a lot it could be due to the BIOS battery needing to be replaced or as suggested bad hardware.

Running NTP will keep the hardware clock synched to the system clock and will attempt to compensate for its drift rate. Typically if the hardware clock is incorrect by hours the OS is configured to think it is set at UTC rather then local time. At stated without the hardware clock the system clock will start at 00:00 1 Jan 1970 by default when the computer is first turned on. When NTP synches if running it will force the system clock to the current time but as stated will mess up the log files which may or may not be an issue. The only thing that would keep the current time when the computer is off would be a replacement PCI hardware clock card.
 
Old 10-03-2012, 10:36 PM   #5
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
thanks for reply ,

If I just what to disable the sync time process , that mean the OS ( redhat ) do not sync the hardware time when reboot , is it good way to fix it ? if yes , how to do it ?

Thanks
 
Old 10-03-2012, 10:41 PM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
You might want to check if the BIOS button battery needs replacing.
 
Old 10-03-2012, 10:54 PM   #7
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by jschiwal View Post
You might want to check if the BIOS button battery needs replacing.
BIOS button battery ?? the auto sync is not set by redhat ? it is releted to the battery?

thanks.
 
Old 10-04-2012, 04:08 AM   #8
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
sync hardware code is default setting of redhat server ? is it practical ? thx

Last edited by ust; 10-04-2012 at 04:30 AM.
 
Old 10-04-2012, 07:47 AM   #9
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940Reputation: 3940
Yes, on most computer motherboards the BIOS clock etc. are maintained by a small round watch-battery which is usually quite easily spotted.

NTP can handle "clock drift" and can periodically readjust the clock, but significant drift is abnormal and often indicates that the battery's running out of juice.

Last edited by sundialsvcs; 10-04-2012 at 07:51 AM.
 
Old 10-04-2012, 09:24 PM   #10
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by sundialsvcs View Post
Yes, on most computer motherboards the BIOS clock etc. are maintained by a small round watch-battery which is usually quite easily spotted.

NTP can handle "clock drift" and can periodically readjust the clock, but significant drift is abnormal and often indicates that the battery's running out of juice.
thanks reply,

As my previous question , is it good to disable the function of sync hardware clock to OS ? if yes , an advise how to do it ?

Thanks.
 
Old 10-05-2012, 10:40 AM   #11
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by ust View Post
thanks reply,

As my previous question , is it good to disable the function of sync hardware clock to OS ? if yes , an advise how to do it ?

Thanks.
From post #2 in this thread:
Quote:
Originally Posted by michaelk
really not a good idea to disable the function.
So again..NO, it is not a good idea to do it. Again, check the battery on your motherboard. You can also use hwclock...read the man page for it.
 
Old 10-08-2012, 09:48 PM   #12
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by TB0ne View Post
From post #2 in this thread:

So again..NO, it is not a good idea to do it. Again, check the battery on your motherboard. You can also use hwclock...read the man page for it.
thanks reply ,

I just would like to ask why it is not good to disable the function ? why not let the server use its own time clock ? As your recommendation , I think it is not related to battery , the hardware clock is correct , my current problem is the hardware clock is GMT , but my system is BST , the time is different , so I want to disable the sync function

Therefore , I want to disable the function.

Thanks.
 
Old 10-09-2012, 09:44 AM   #13
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,634

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by ust View Post
thanks reply ,
I just would like to ask why it is not good to disable the function ? why not let the server use its own time clock ?
Because hardware clocks are inaccurate and drift badly, that's why. If you don't believe us here, go look it up.
Quote:
As your recommendation , I think it is not related to battery , the hardware clock is correct , my current problem is the hardware clock is GMT , but my system is BST , the time is different , so I want to disable the sync function

Therefore , I want to disable the function.
So do what you want...why bother asking if it's a good idea or not, when you've clearly decided what you want to do?

AGAIN, look at the hwclock function, which sets the hardware clock to NTP (and NTP *IS* accurate). Or, amazingly, you can go into BIOS and pick whatever time zone you want. Read the man pages on hwclock, do some research on WHY this is a bad idea (since you don't believe us), and if you want to do it anyway, go right ahead.
 
Old 10-09-2012, 07:36 PM   #14
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,700

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
You need to tell the OS that the hardware clock is set to UTC. Modify or add a line UTC=true to the /etc/sysconfig/clock file.

As stated the system clock will start at 00:00:00 01 Jan 1970 until the ntp daemon starts and sets it. So what ever process starts before ntp its logs will be the wrong date and time. You could get fsck errors of mount time in the future which might cause some problems.

As stated go ahead and disable the system clock from being synched and see what happens. Look in the start up scripts for hwclock --hctosys and comment out the line.
 
1 members found this post helpful.
  


Reply



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
how to set and sync system time with time server?? servnov Linux - Newbie 6 12-03-2013 07:55 PM
NTP time sync with windows 2000 AD time csghosh Linux - Enterprise 7 02-24-2012 03:46 PM
Should you disable 'sync' and 'who' commands? logicalfuzz Linux - Security 4 02-06-2010 10:47 AM
Usb device sync - disable? rahilrai SUSE / openSUSE 5 03-23-2006 07:21 AM
disable clock sync on shutdown? dingding66 Linux - Newbie 4 03-16-2003 06:41 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:37 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
Open Source Consulting | Domain Registration