{"id":85,"date":"2009-06-10T11:09:17","date_gmt":"2009-06-10T14:09:17","guid":{"rendered":"http:\/\/www.eriberto.pro.br\/blog\/?p=85"},"modified":"2011-10-10T17:55:25","modified_gmt":"2011-10-10T20:55:25","slug":"ntpdate-no-xen","status":"publish","type":"post","link":"https:\/\/eriberto.pro.br\/blog\/2009\/06\/10\/ntpdate-no-xen\/","title":{"rendered":"ntpdate no Xen"},"content":{"rendered":"<p>Hoje percebi que as minhas m\u00e1quinas virtuais Xen estavam com os seus rel\u00f3gios desatualizados. Assim sendo, agendei uma tarefa, via cron, para rodar um ntpdate a cada dia, para ajustar a hora. Em um teste manual, percebi que, no fim, a hora n\u00e3o era ajustada. Depois de uma r\u00e1pida busca na Internet, cheguei ao site:<\/p>\n<p><a href=\"http:\/\/www.kaotonik.net\/en\/home\/thk\/ntpdate-on-linux-xen-virtual-server\"><strong><span style=\"color: #ff0000;\">http:\/\/www.kaotonik.net\/en\/home\/thk\/ntpdate-on-linux-xen-virtual-server<\/span><\/strong><\/a><\/p>\n<p>Neste site, a informa\u00e7\u00e3o mais importante era alterar uma vari\u00e1vel de kernel com o comando:<\/p>\n<p><strong><em><span style=\"color: #ff0000;\"># echo 1 &gt; \/proc\/sys\/xen\/independent_wallclock<\/span><\/em><\/strong><\/p>\n<p>Funcionou! Depois, por dedu\u00e7\u00e3o, para tornar a vari\u00e1vel permanente, alterei o arquivo <strong><em><span style=\"color: #ff0000;\">\/etc\/sysctl.conf<\/span><\/em><\/strong> e acresci a linha:<\/p>\n<p><strong><em><span style=\"color: #ff0000;\">xen.independent_wallclock=1<\/span><\/em><\/strong><\/p>\n<p>Para n\u00e3o ter que reinicializar a m\u00e1quina, utilizei o comando:<\/p>\n<p><strong><em><span style=\"color: #ff0000;\"># \/etc\/init.d\/procps start<\/span><\/em><\/strong><\/p>\n<p>Feito! Nunca mais as m\u00e1quinas Xen se negar\u00e3o a acertar a hora via ntpdate.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Hoje percebi que as minhas m\u00e1quinas virtuais Xen estavam com os seus rel\u00f3gios desatualizados. Assim sendo, agendei uma tarefa, via cron, para rodar um ntpdate a cada dia, para ajustar a hora. Em um teste manual, percebi que, no fim, a hora n\u00e3o era ajustada. Depois de uma r\u00e1pida busca na Internet, cheguei ao site:&hellip;&nbsp;<a href=\"https:\/\/eriberto.pro.br\/blog\/2009\/06\/10\/ntpdate-no-xen\/\" rel=\"bookmark\">Continue a ler &raquo;<span class=\"screen-reader-text\">ntpdate no Xen<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"neve_meta_sidebar":"","neve_meta_container":"","neve_meta_enable_content_width":"","neve_meta_content_width":0,"neve_meta_title_alignment":"","neve_meta_author_avatar":"","neve_post_elements_order":"","neve_meta_disable_header":"","neve_meta_disable_footer":"","neve_meta_disable_title":"","footnotes":""},"categories":[16,12,3,11],"tags":[624,340,621,330,622,60,50],"class_list":["post-85","post","type-post","status-publish","format-standard","hentry","category-debian","category-kernel","category-linux","category-sistema-operacional","tag-debian","tag-lenny","tag-linux","tag-ntpdate","tag-rede","tag-redes","tag-xen"],"_links":{"self":[{"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/posts\/85","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/comments?post=85"}],"version-history":[{"count":0,"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/posts\/85\/revisions"}],"wp:attachment":[{"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/media?parent=85"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/categories?post=85"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/eriberto.pro.br\/blog\/wp-json\/wp\/v2\/tags?post=85"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}