{"id":79092,"date":"2026-11-17T02:00:16","date_gmt":"2026-11-17T02:00:16","guid":{"rendered":"http:\/\/bangla.sitestree.com\/?p=79092"},"modified":"2026-11-17T02:00:16","modified_gmt":"2026-11-17T02:00:16","slug":"linux-advanced-07-time","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=79092","title":{"rendered":"Linux Advanced 07 \u2014 Time Synchronization with chrony"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/bangla.sitestree.com\/?name=linux-course-index\">Linux course index<\/a> \u00b7 <a href=\"https:\/\/bangla.sitestree.com\/?cat=1992\">Linux Advanced category<\/a> \u00b7 Lesson 7 of 9<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>AI disclosure<\/strong> \u2014 AI-generated content, posted as is. AI can make mistakes. This lesson draws on the linked Open Education posts and adds original explanations or lab examples where useful. The newly written explanations and examples may be freely reused. Linked source material retains its own terms.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Learning goal<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Distinguish clock display from synchronization and show whether chrony selected a source.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Concepts and setup<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Clock agreement matters for log correlation, certificate validity, and scheduling. A timezone changes the display of wall time. It does not fix clock drift or change the synchronization reference. The archive uses older ntpd and ntpq commands. This lesson translates those diagnostics to chrony where installed. Some systems use a different client, such as systemd-timesyncd. Avoid having multiple daemons try to adjust the same clock.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Inspect the clock and selected source<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>date -u '+%F %T UTC'\ntimedatectl status\nchronyc -n sources -v\nchronyc tracking<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Possible output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>2026-11-16 19:30:15 UTC\n...\nSystem clock synchronized: yes\n...\n^* 192.0.2.40 ... +21us[+15us] +\/- 14ms\nStratum         : 3\nSystem time     : 0.000015000 seconds fast of NTP time\nLeap status     : Normal<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">The address is illustrative. A star marks the selected source. Compare the system clock and chrony results rather than inferring synchronization just because a service runs.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Read time-service evidence<\/h3>\n\n\n\n<pre class=\"wp-block-code\"><code>systemctl list-unit-files 'chrony*.service'\n# Choose your installed name. This one is common on Red Hat-family systems.\njournalctl -b -u chronyd.service -n 20 --no-pager\nchronyc -n activity<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Possible output<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>chronyd.service enabled ...\n... Selected source ...\n4 sources online\n0 sources offline\n...\n0 sources with unknown address<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">On Ubuntu the unit may be chrony.service. Use approved time sources and confirm the network policy. Client troubleshooting does not call for opening an inbound time service or forcing a time step.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Questions only<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Quick-check questions<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>What does ^* indicate in chronyc sources?<\/li>\n\n\n<li>Does changing the display timezone alter NTP synchronization?<\/li>\n\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Assessment questions<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li>Tracking reports an unsynchronized state. What evidence should you gather?<\/li>\n\n\n<li>Why might the clock in a VM drift even though its host is synchronized?<\/li>\n\n\n<li>Name two applications where you would notice a time error.<\/li>\n\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Questions and answers<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">Quick-check answers<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li><strong>What does ^* indicate in chronyc sources?<\/strong><br><strong>Answer<\/strong> \u2014 ^ means an NTP server source and * marks the selected one.<\/li>\n\n\n<li><strong>Does changing the display timezone alter NTP synchronization?<\/strong><br><strong>Answer<\/strong> \u2014 No. It changes how local time is displayed.<\/li>\n\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Assessment answer key<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n\n<li><strong>Tracking reports an unsynchronized state. What evidence should you gather?<\/strong><br><strong>Answer<\/strong> \u2014 Check the daemon status, approved sources, source selection and reachability, route or DNS if relevant, and journal.<\/li>\n\n\n<li><strong>Why might the clock in a VM drift even though its host is synchronized?<\/strong><br><strong>Answer<\/strong> \u2014 The guest has its own clock behavior and scheduling. It can require its own synchronization policy or managed guest integration.<\/li>\n\n\n<li><strong>Name two applications where you would notice a time error.<\/strong><br><strong>Answer<\/strong> \u2014 Examples include TLS certificate validation and log correlation across machines.<\/li>\n\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\">Source articles on this site<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li><a href=\"https:\/\/bangla.sitestree.com\/?p=67596\">NTP related commands\/Linux #DevOps #RHCSA<\/a><\/li>\n\n\n<li><a href=\"https:\/\/bangla.sitestree.com\/?p=14034\">NTP related commands\/Linux<\/a><\/li>\n\n\n<li><a href=\"https:\/\/bangla.sitestree.com\/?p=78439\">Basic Commands for Networking in Linux<\/a><\/li>\n\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Technical references<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n\n<li><a href=\"https:\/\/docs.redhat.com\/en\/documentation\/red_hat_enterprise_linux\/9\/html-single\/configuring_basic_system_settings\/index\">Red Hat guide to system configuration and chrony<\/a><\/li>\n\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Continue the course<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Previous lesson 06 \u2014 DHCP Leases and a Kea Lab. Next lesson 08 \u2014 Apache Virtual Hosts and HTTPS.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/bangla.sitestree.com\/?name=linux-course-index\">Linux course index<\/a> \u00b7 <a href=\"https:\/\/bangla.sitestree.com\/?cat=1992\">Linux Advanced category<\/a> \u00b7 Lesson 7 of 9<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Distinguish clock display from synchronization and show whether chrony selected a source.<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":true,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1992],"tags":[],"class_list":["post-79092","post","type-post","status-publish","format-standard","hentry","category-linux-advanced","item-wrap"],"jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":79102,"url":"http:\/\/bangla.sitestree.com\/?p=79102","url_meta":{"origin":79092,"position":0},"title":"Linux Administration Course \u2014 Start Here and Lesson Index","author":"Sayed","date":"November 17, 2026","format":false,"excerpt":"A 33-lesson Linux course from shell fundamentals to server administration, performance, and a recovery capstone.","rel":"","context":"In &quot;Linux Basics&quot;","block_context":{"text":"Linux Basics","link":"http:\/\/bangla.sitestree.com\/?cat=1990"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":79093,"url":"http:\/\/bangla.sitestree.com\/?p=79093","url_meta":{"origin":79092,"position":1},"title":"Linux Advanced 08 \u2014 Apache Virtual Hosts and HTTPS","author":"Sayed","date":"November 17, 2026","format":false,"excerpt":"Test Apache name-based routing locally and verify HTTPS with certificate and renewal checks.","rel":"","context":"In &quot;Linux Advanced&quot;","block_context":{"text":"Linux Advanced","link":"http:\/\/bangla.sitestree.com\/?cat=1992"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":79091,"url":"http:\/\/bangla.sitestree.com\/?p=79091","url_meta":{"origin":79092,"position":2},"title":"Linux Advanced 06 \u2014 DHCP Leases and a Kea Lab","author":"Sayed","date":"November 17, 2026","format":false,"excerpt":"Validate a Kea DHCPv4 pool and verify a lease issued to a VM on an isolated segment.","rel":"","context":"In &quot;Linux Advanced&quot;","block_context":{"text":"Linux Advanced","link":"http:\/\/bangla.sitestree.com\/?cat=1992"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":79090,"url":"http:\/\/bangla.sitestree.com\/?p=79090","url_meta":{"origin":79092,"position":3},"title":"Linux Advanced 05 \u2014 Authoritative DNS with BIND","author":"Sayed","date":"November 17, 2026","format":false,"excerpt":"Build an authoritative forward zone and distinguish an authoritative answer, NXDOMAIN, and no response.","rel":"","context":"In &quot;Linux Advanced&quot;","block_context":{"text":"Linux Advanced","link":"http:\/\/bangla.sitestree.com\/?cat=1992"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":79087,"url":"http:\/\/bangla.sitestree.com\/?p=79087","url_meta":{"origin":79092,"position":4},"title":"Linux Advanced 02 \u2014 NFS and On-Demand Mounting with AutoFS","author":"Sayed","date":"November 17, 2026","format":false,"excerpt":"Create an indirect AutoFS map and distinguish a running automounter from a successful NFS mount.","rel":"","context":"In &quot;Linux Advanced&quot;","block_context":{"text":"Linux Advanced","link":"http:\/\/bangla.sitestree.com\/?cat=1992"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":79089,"url":"http:\/\/bangla.sitestree.com\/?p=79089","url_meta":{"origin":79092,"position":5},"title":"Linux Advanced 04 \u2014 Firewall Zones and Runtime Rules","author":"Sayed","date":"November 17, 2026","format":false,"excerpt":"Identify the active zone and compare a timed runtime firewall rule with permanent policy.","rel":"","context":"In &quot;Linux Advanced&quot;","block_context":{"text":"Linux Advanced","link":"http:\/\/bangla.sitestree.com\/?cat=1992"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/79092","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=79092"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/79092\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=79092"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=79092"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=79092"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}