{"id":15026,"date":"2023-09-11T07:20:50","date_gmt":"2023-09-10T22:20:50","guid":{"rendered":"https:\/\/lab4ict.com\/system\/?p=15026"},"modified":"2024-02-06T07:19:08","modified_gmt":"2024-02-05T22:19:08","slug":"linux%e3%81%a7%e6%99%82%e5%88%bb%e5%90%8c%e6%9c%9f%e3%81%ae%e7%8a%b6%e6%b3%81%e3%82%92%e7%a2%ba%e8%aa%8d%e3%81%99%e3%82%8b%ef%bc%81%ef%bc%88chrony%ef%bc%89","status":"publish","type":"post","link":"https:\/\/lab4ict.com\/system\/archives\/15026","title":{"rendered":"Linux\u3067\u6642\u523b\u540c\u671f\u306e\u72b6\u6cc1\u3092\u78ba\u8a8d\u3059\u308b\uff01\uff08Chrony\uff09"},"content":{"rendered":"<p>Linux\u3067\u3001Chrony\u3092\u4f7f\u7528\u3057\u3066\u6642\u523b\u540c\u671f\u3092\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u3001\u6642\u523b\u540c\u671f\u306e\u72b6\u6cc1\u3092\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<br \/>\n<!--more--><\/p>\n<h2>\u52d5\u4f5c\u78ba\u8a8d\u3092\u3057\u305f\u74b0\u5883\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u52d5\u4f5c\u78ba\u8a8d\u3092\u3057\u305f\u74b0\u5883\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u6642\u523b\u540c\u671f\u5148\uff08pool\uff09\u30011\u79d2\u4ee5\u4e0a3\u56de\u6642\u523b\u304c\u305a\u308c\u3066\u3044\u305f\u3089\u30b9\u30c6\u30c3\u30d7\u30e2\u30fc\u30c9\u3067\u6642\u523b\u5408\u308f\u305b\u3092\u3059\u308b\u3053\u3068\uff08makestep\uff09\u3001\u30cf\u30fc\u30c9\u30a6\u30a7\u30a2\u30af\u30ed\u30c3\u30af\u3092\u4fee\u6b63\u3059\u308b\u3053\u3068\uff08rtcsync\uff09\u304c\u5206\u304b\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ hostnamectl\r\n Static hostname: vmsrhe21.loc.lab4ict.com\r\n Pretty hostname: vmsrhe21\r\n       Icon name: computer-vm\r\n         Chassis: vm\r\n      Machine ID: 5c838efd866b4fc7a6a61477a04ae987\r\n         Boot ID: 2f9f915016c4493a9b2f941de3d7c34a\r\n  Virtualization: oracle\r\nOperating System: Red Hat Enterprise Linux 9.2 (Plow)     \r\n     CPE OS Name: cpe:\/o:redhat:enterprise_linux:9::baseos\r\n          Kernel: Linux 5.14.0-284.11.1.el9_2.x86_64\r\n    Architecture: x86-64\r\n Hardware Vendor: innotek GmbH\r\n  Hardware Model: VirtualBox\r\nFirmware Version: VirtualBox\r\n<\/pre>\n<h2>\u6642\u523b\u540c\u671f\u306e\u72b6\u6cc1\u3092\u78ba\u8a8d\u3059\u308b\uff01\uff08chronyc\uff09<\/h2>\n<p>chronyc\u30b3\u30de\u30f3\u30c9\u3067\u6642\u523b\u540c\u671f\u306e\u72b6\u6cc1\u3092\u78ba\u8a8d\u3057\u307e\u3059\u3002\u300c^*\u300d\u306e\u5370\u304c\u3064\u3044\u3066\u3044\u308b\u30b5\u30fc\u30d0\u304c\u3001\u6642\u523b\u540c\u671f\u4e2d\u306eNTP\u30b5\u30fc\u30d0\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ chronyc sources\r\nMS Name\/IP address         Stratum Poll Reach LastRx Last sample               \r\n===============================================================================\r\n^+ sv1.localdomain1.com          2   6   377    20  -1776us&#x5B;-1776us] +\/-   46ms\r\n^+ s97.GchibaFL4.vectant.ne&gt;     2   6   377    28  +4109us&#x5B;+5303us] +\/-   25ms\r\n^+ v160-16-113-133.ntp.tky2&gt;     3   6   377    32  +5083us&#x5B;+5083us] +\/-   21ms\r\n^* ipv4.ntp3.rbauman.com         2   6   377    39  +2073us&#x5B;+3267us] +\/-   19ms\r\n<\/pre>\n<h2>\u6642\u523b\u540c\u671f\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3059\u308b\uff01<\/h2>\n<p>\u6642\u523b\u540c\u671f\u306e\u8a2d\u5b9a\u3092\u78ba\u8a8d\u3057\u3066\u307f\u307e\u3059\u3002<\/p>\n<pre class=\"brush: plain; highlight: [1]; title: ; notranslate\" title=\"\">\r\n$ cat \/etc\/chrony.conf\r\n# Use public servers from the pool.ntp.org project.\r\n# Please consider joining the pool (https:\/\/www.pool.ntp.org\/join.html).\r\npool 2.rhel.pool.ntp.org iburst\r\n\r\n# Use NTP servers from DHCP.\r\nsourcedir \/run\/chrony-dhcp\r\n\r\n# Record the rate at which the system clock gains\/losses time.\r\ndriftfile \/var\/lib\/chrony\/drift\r\n\r\n# Allow the system clock to be stepped in the first three updates\r\n# if its offset is larger than 1 second.\r\nmakestep 1.0 3\r\n\r\n# Enable kernel synchronization of the real-time clock (RTC).\r\nrtcsync\r\n\r\n# Enable hardware timestamping on all interfaces that support it.\r\n#hwtimestamp *\r\n\r\n# Increase the minimum number of selectable sources required to adjust\r\n# the system clock.\r\n#minsources 2\r\n\r\n# Allow NTP client access from local network.\r\n#allow 192.168.0.0\/16\r\n\r\n# Serve time even if not synchronized to a time source.\r\n#local stratum 10\r\n\r\n# Require authentication (nts or key option) for all NTP sources.\r\n#authselectmode require\r\n\r\n# Specify file containing keys for NTP authentication.\r\nkeyfile \/etc\/chrony.keys\r\n\r\n# Save NTS keys and cookies.\r\nntsdumpdir \/var\/lib\/chrony\r\n\r\n# Insert\/delete leap seconds by slewing instead of stepping.\r\n#leapsecmode slew\r\n\r\n# Get TAI-UTC offset and leap seconds from the system tz database.\r\nleapsectz right\/UTC\r\n\r\n# Specify directory for log files.\r\nlogdir \/var\/log\/chrony\r\n\r\n# Select which information is logged.\r\n#log measurements statistics tracking\r\n<\/pre>\n<h2>\u304a\u308f\u308a\u306b<\/h2>\n<p>Chrony\u3067\u6642\u523b\u5408\u308f\u305b\u3092\u884c\u3063\u3066\u3044\u308b\u5834\u5408\u306e\u78ba\u8a8d\u65b9\u6cd5\u3092\u307e\u3068\u3081\u307e\u3057\u305f\u3002<\/p>\n<h2>\u95a2\u9023\u8a18\u4e8b<\/h2>\n<div class=\"sc_getpost\"><a class=\"clearfix\" href=\"https:\/\/lab4ict.com\/system\/archives\/13597\" ><div class=\"sc_getpost_thumb post-box-thumbnail__wrap\"><img decoding=\"async\" src=\"data:image\/gif;base64,R0lGODdhAQABAPAAAN3d3QAAACwAAAAAAQABAAACAkQBADs=\" width=\"150\" height=\"150\" alt=\"\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01\" loading=\"lazy\" data-src=\"https:\/\/lab4ict.com\/system\/wp-content\/uploads\/2021\/02\/fi_linux_01-150x150.png\" class=\"lazyload\"><\/div><div class=\"title\">\u3010\u8a18\u4e8b\u4e00\u89a7\u3011Linux\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u3053\u306a\u3059\uff01<\/div><div class=\"substr\">Linux\u306e\u30cd\u30c3\u30c8\u30ef\u30fc\u30af\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u3053\u306a\u3059\u305f\u3081\u306e\u8a18\u4e8b\u4e00\u89a7\u3092\u63b2\u8f09\u3057\u307e\u3059\u3002...<\/div><\/a><\/div>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Linux\u3067\u3001Chrony\u3092\u4f7f\u7528\u3057\u3066\u6642\u523b\u540c\u671f\u3092\u3057\u3066\u3044\u308b\u5834\u5408\u306b\u3001\u6642\u523b\u540c\u671f\u306e\u72b6\u6cc1\u3092\u78ba\u8a8d\u3059\u308b\u65b9\u6cd5\u3067\u3059\u3002<\/p>\n","protected":false},"author":1,"featured_media":5527,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[874],"tags":[1155,1154,282,25,309,978],"class_list":["post-15026","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-network-linux","tag-chrony","tag-chronyc","tag-linux","tag-25","tag-309","tag-978"],"_links":{"self":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/15026","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/comments?post=15026"}],"version-history":[{"count":6,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/15026\/revisions"}],"predecessor-version":[{"id":15899,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/posts\/15026\/revisions\/15899"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media\/5527"}],"wp:attachment":[{"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/media?parent=15026"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/categories?post=15026"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lab4ict.com\/system\/wp-json\/wp\/v2\/tags?post=15026"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}