Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
HI I have centos 5.8 everytime when I reboot the system Its time get change to MST or other zone. then I manually do it by cp /usr/share/zoneinfo/Asia/Calcutta /etc/localtime and ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Jan 2008
    Posts
    28

    server date time change on every boot


    HI

    I have centos 5.8 everytime when I reboot the system Its time get change to MST or other zone.

    then I manually do it by

    cp /usr/share/zoneinfo/Asia/Calcutta /etc/localtime

    and its showing the IST time.

    what sud i required to do solve this issue. !!!

  2. #2
    Linux Newbie
    Join Date
    Jan 2013
    Posts
    116
    once booted into Linux, what does the command hwclock show? This command reads the actual BIOS hardware clock.
    You should check your hardware time.

    Thanks

  3. #3
    Just Joined!
    Join Date
    Jan 2008
    Posts
    28
    hi

    hwclock

    Wed 01 May 2013 04:53:40 PM IST -0.500316 seconds

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Newbie
    Join Date
    Jan 2013
    Posts
    116
    Is it the time after server reboot, have you configured ntp on your server. and also check /etc/adjtime.
    The system clock is set from the hardware clock from systemd, dependent on values in /etc/adjtime. Hence, having the hardware clock using localtime may cause some unexpected behavior during the boot sequence.

    Thanks

  6. #5
    Just Joined!
    Join Date
    Jan 2008
    Posts
    28
    hi

    hwclock

    Wed 01 May 2013 04:53:40 PM IST -0.500316 seconds

  7. #6
    Just Joined!
    Join Date
    Jan 2008
    Posts
    28
    hi

    is it possible to change the hwclock via command ?/?/

    see I want to set it with the system time current system time is

    Wed May 1 17:34:16 IST 2013

    hwclock

    Wed 01 May 2013 05:34:35 PM IST -0.812994 seconds


    I have tried the following command also but not changes the hwclock value
    hwclock -- --systohc

  8. #7
    Linux Newbie
    Join Date
    Jan 2013
    Posts
    116
    Quote Originally Posted by niraj.vara View Post
    hi

    I have tried the following command also but not changes the hwclock value
    hwclock -- --systohc
    I think Its a typo, you are using double "-- --" try it as below:
    Code:
    hwclock --systohc
    or
    Code:
    hwclock -w
    Thanks

  9. #8
    Trusted Penguin
    Join Date
    May 2011
    Posts
    4,353
    Note that CentOS calls hwclock at system start-up, usually in the script /etc/rc.sysinit. You can grep it for hwclock. Usually it is something like this:

    Code:
    hwclock --hctosys

  10. #9
    Just Joined!
    Join Date
    Jan 2008
    Posts
    28
    Hi

    Today when I checked the hwclock then its showing the same as system time. means earlier command works. might be its taking times to reflect.

  11. #10
    Linux Newbie
    Join Date
    Jan 2013
    Posts
    116
    Hello Niraj,

    It will be great if your issue has resolved. Keep us updated what you experienced with time intervals.

Page 1 of 2 1 2 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •