How to sync time with bios in rhel7?

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat How to sync time with bios in rhel7?
# 1  
Old 10-06-2015
How to sync time with bios in rhel7?

Hi All,

I deployed the rhel7 server in the bare metal hardware. I want to configure the rhel7 server to sync time with bios. I tired the below commands. Still it did not sync the time with bios.

Quote:
demo>> cat /sys/devices/system/clocksource/clocksource0/current_clocksource
tsc
demo>>cat /sys/devices/system/clocksource/clocksource0/available_clocksource
tsc hpet acpi_pm
demo>>date
Tue Oct 6 10:51:10 IST 2015
demo>> hwclock --systohc --utc
demo>>ls -lrt /etc/local
locale.conf localtime
demo>>ls -lrt /etc/localtime
lrwxrwxrwx 1 root root 32 Sep 14 17:11 /etc/localtime -> /usr/share/zoneinfo/Asia/Kolkata
demo>>hwclock
Tue 06 Oct 2015 10:51:44 AM IST -0.672309 seconds
demo>>

Thanks,
Kalai
# 2  
Old 10-06-2015
I'm not seeing the problem you are trying to demonstrate. Is there some reason why you believe the timestamp on a file that you changed on September 14th should have a timestamp that is somehow related to the current hardware or software clock?

What is the output from the single command line:
Code:
date;hwclock;date

If the output from these three commands are not in non-decreasing timestamp order, then you might have a problem.
# 3  
Old 10-06-2015
Hi Don,

Thanks for the reply.

Here the problem is the time is not getting synced with the BIOS. Always the server time is lower than the bios time.

Generated in another server.
Quote:
date;hwclock;date
Tue Oct 6 07:26:25 PDT 2015
Tue 06 Oct 2015 07:26:26 AM PDT -0.922400 seconds
Tue Oct 6 07:26:26 PDT 2015

Thanks,
Kalai
# 4  
Old 10-06-2015
And what would the result be on the server in question?
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Best way to sync time on a Linux machine

I wanted to know which should be the best way to sync time for a linux machine. We have an application server and a database server, both using RHEL 5.8 as the OS. It is important that the time on both these servers match together and also sync with a common time source. As per my knowledge, these... (11 Replies)
Discussion started by: RHCE
11 Replies

2. UNIX for Dummies Questions & Answers

Having a problem with the time sync from Solaris 10 to VirtualBox

I have a VirtualBox w2008r2 Domain Controller running on a Solaris 10 server. I have the time on the Virtual machine set to Default time sync (bios clock) and the Solaris server set to sync to 0 8,20 * * * /usr/sbin/ntpdate tick.usno.navy.mil tock.usno.navy.mil >> /tmp/ntp.log My problem is... (2 Replies)
Discussion started by: SIFT3R
2 Replies

3. 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

4. Solaris

Time and Date Sync between 2 Sol boxes

I have 2 sol 10 OS boxes in replication and there is a 6 minutes time difference in GMT zone. How I can sync? they are not on public network. (2 Replies)
Discussion started by: chandravadrevu
2 Replies

5. Red Hat

Time Sync issue on RHEL 5.3

Hi, My Linux VMs are running on citrix XEN.Somehow the time drift is too high (going very fast). Even if the correct time configured using date -s command, for every 1 hr it is differing almost 5 - 10 mins. Tried configuring ntpd (local NTP server) and still it is not synchronized. Machine... (2 Replies)
Discussion started by: uday123
2 Replies

6. 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

7. 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

8. SuSE

unable to sync the time with ntp server

Hi folks, The server time is no tgetiing synched up with the NTP server. I tried ntpdate -u <ipadress> this is not working. please help out. regards, Sag. (7 Replies)
Discussion started by: sag71155
7 Replies

9. 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

10. 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
Login or Register to Ask a Question