dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse


Our Discord Notification Server invitation link is https://discord.gg/jB2qmRrxyD

Author Topic: NTP time sync  (Read 46 times)

Online smfadmin (OP)

  • SMF (internal) Site
  • Owner
  • Sr. Member
  • *****
  • Administrator
  • *****
  • Admin
  • ****
  • Join Date: Dec 2014
  • Location: Management
  • Posts: 664
  • Reputation Power: 0
  • smfadmin has hidden their reputation power
  • Last Login:Today at 06:59:24 AM
  • Supplied Install Member
NTP time sync
« on: October 19, 2026, 09:23:51 AM »
📎 Click on me to view all my attachments
ListAttBBC  |  v6.18  |  2026-10-20  |  Andrew.human & Claude.ai  |  live 07:00:40
#FileSizeDownloadsInfoDL
00chatlog_NTP_Dev_Clone.md1.1 KB2â„šī¸âŦ‡ī¸
01NTP time sync and chatlog export.pdf  [native]  [pdf in chunks]221.6 KB0â„šī¸âŦ‡ī¸
NTP time sync


📝 Inline Markdownv4.6.0 · 2026-10-19

Chat log: setting the time on Dev and Clone via NTP

Date: October 19, 2026


Andrew:

i need to set the right time on DEv and Clone via NTP


Claude:

Run this as root on each of Dev and Clone:

service ntpd stop
ntpdate -u au.pool.ntp.org
hwclock --systohc
service ntpd start
chkconfig ntpd on

ntpdate steps the clock immediately, which ntpd alone won't do if the offset is large. hwclock --systohc writes the corrected time to the hardware clock, so it survives a reboot.

If ntpdate isn't found, install it with yum install ntp. On CentOS 6 that may need the vault repo, since the mirrors are gone. The same package provides ntpd.

Check afterwards with ntpq -p. A * in the first column means it has locked onto a server.

If the clocks are right but the timezone is wrong, fix that with ln -sf /usr/share/zoneinfo/Australia/Sydney /etc/localtime.

On VMs, a clock that keeps drifting often comes from the hypervisor's time sync fighting ntpd. If the time goes wrong again after a few hours, check the VM's time-sync setting on the host.


Andrew:

copy the chatlog to markdown

friendly
0
funny
0
informative
0
agree
0
disagree
0
like
0
dislike
0
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
No reactions
measure twice, cut once

Tags:
 


dopetalk does not endorse any advertised product nor does it accept any liability for it's use or misuse





TERMS AND CONDITIONS

In no event will d&u or any person involved in creating, producing, or distributing site information be liable for any direct, indirect, incidental, punitive, special or consequential damages arising out of the use of or inability to use d&u. You agree to indemnify and hold harmless d&u, its domain founders, sponsors, maintainers, server administrators, volunteers and contributors from and against all liability, claims, damages, costs and expenses, including legal fees, that arise directly or indirectly from the use of any part of the d&u site.


TO USE THIS WEBSITE YOU MUST AGREE TO THE TERMS AND CONDITIONS ABOVE


Founded December 2014
SimplePortal 2.3.6 © 2008-2014, SimplePortal