{"id":1110,"date":"2019-10-23T18:41:27","date_gmt":"2019-10-23T21:41:27","guid":{"rendered":"http:\/\/blog.abratel.com.br\/?p=1110"},"modified":"2019-10-23T18:52:41","modified_gmt":"2019-10-23T21:52:41","slug":"problemas-em-servidores-linux-com-o-fim-do-horario-de-verao-ntp-brasil","status":"publish","type":"post","link":"https:\/\/blog.abratel.com.br\/?p=1110","title":{"rendered":"Problemas em servidores Linux com o fim do hor\u00e1rio de ver\u00e3o NTP Brasil"},"content":{"rendered":"<p>Como atualizar o hor\u00e1rio de ver\u00e3o em servidores Linux. Atualizando hor\u00e1rio de ver\u00e3o no CentOS Atualizando hor\u00e1rio de ver\u00e3o no RedHat Atualizando hor\u00e1rio de ver\u00e3o no Debian Atualizando hor\u00e1rio de ver\u00e3o no UbuntuEstados que n\u00e3o precisar\u00e3o mais ajustar os rel\u00f3gios para o hor\u00e1rio de ver\u00e3o.<br \/>\nFam\u00edlia: Debian\/Ubuntu<\/p>\n<p>Verificando se o hor\u00e1rio de ver\u00e3o est\u00e1 com data para mudar.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# zdump -v Brazil\/East | grep 2019\r\n\r\nBrazil\/East  Sun Feb 17 01:59:59 2019 UT = Sat Feb 16 23:59:59 2019 -02 isdst=1 gmtoff=-7200\r\nBrazil\/East  Sun Feb 17 02:00:00 2019 UT = Sat Feb 16 23:00:00 2019 -03 isdst=0 gmtoff=-10800\r\nBrazil\/East  Sun Nov  3 02:59:59 2019 UT = Sat Nov  2 23:59:59 2019 -03 isdst=0 gmtoff=-10800\r\nBrazil\/East  Sun Nov  3 03:00:00 2019 UT = Sun Nov  3 01:00:00 2019 -02 isdst=1 gmtoff=-7200\r\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# zdump -v Brazil\/East | grep 2019\r\n \r\nBrazil\/East  Sun Feb 17 01:59:59 2019 UT = Sat Feb 16 23:59:59 2019 -02 isdst=1 gmtoff=-7200\r\nBrazil\/East  Sun Feb 17 02:00:00 2019 UT = Sat Feb 16 23:00:00 2019 -03 isdst=0 gmtoff=-10800\r\nBrazil\/East  Sun Nov  3 02:59:59 2019 UT = Sat Nov  2 23:59:59 2019 -03 isdst=0 gmtoff=-10800\r\nBrazil\/East  Sun Nov  3 03:00:00 2019 UT = Sun Nov  3 01:00:00 2019 -02 isdst=1 gmtoff=-7200\r\n <\/pre>\n<p>Agora iremos atualizar o pacote tzdata:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\napt-get update\r\napt-get --only-upgrade install tzdata\r\n\r\napt-get update\r\napt-get --only-upgrade install tzdata\r\n \r\n<\/pre>\n<p>Vamos verificar novamente se o hor\u00e1rio de ver\u00e3o permanece com data para altera\u00e7\u00e3o:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# zdump -v Brazil\/East | grep 2019\r\nBrazil\/East  Sun Feb 17 01:59:59 2019 UT = Sat Feb 16 23:59:59 2019 -02 isdst=1 gmtoff=-7200\r\nBrazil\/East  Sun Feb 17 02:00:00 2019 UT = Sat Feb 16 23:00:00 2019 -03 isdst=0 gmtoff=-10800\r\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# zdump -v Brazil\/East | grep 2019\r\nBrazil\/East  Sun Feb 17 01:59:59 2019 UT = Sat Feb 16 23:59:59 2019 -02 isdst=1 gmtoff=-7200\r\nBrazil\/East  Sun Feb 17 02:00:00 2019 UT = Sat Feb 16 23:00:00 2019 -03 isdst=0 gmtoff=-10800\r\n<\/pre>\n<p>Fam\u00edlia: CentOS, Redhat e Fedora<\/p>\n<p>Verificando se o hor\u00e1rio de ver\u00e3o est\u00e1 com data para mudar.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# zdump -v Brazil\/East | grep 2019\r\nzdump: warning: zone &quot;Brazil\/East&quot; abbreviation &quot;-03&quot; lacks alphabetic at start\r\nBrazil\/East  Sun Feb 17 01:59:59 2019 UTC = Sat Feb 16 23:59:59 2019 -02 isdst=1 gmtoff=-7200\r\nBrazil\/East  Sun Feb 17 02:00:00 2019 UTC = Sat Feb 16 23:00:00 2019 -03 isdst=0 gmtoff=-10800\r\nBrazil\/East  Sun Nov  3 02:59:59 2019 UTC = Sat Nov  2 23:59:59 2019 -03 isdst=0 gmtoff=-10800\r\nBrazil\/East  Sun Nov  3 03:00:00 2019 UTC = Sun Nov  3 01:00:00 2019 -02 isdst=1 gmtoff=-7200\r\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# zdump -v Brazil\/East | grep 2019\r\nzdump: warning: zone &quot;Brazil\/East&quot; abbreviation &quot;-03&quot; lacks alphabetic at start\r\nBrazil\/East  Sun Feb 17 01:59:59 2019 UTC = Sat Feb 16 23:59:59 2019 -02 isdst=1 gmtoff=-7200\r\nBrazil\/East  Sun Feb 17 02:00:00 2019 UTC = Sat Feb 16 23:00:00 2019 -03 isdst=0 gmtoff=-10800\r\nBrazil\/East  Sun Nov  3 02:59:59 2019 UTC = Sat Nov  2 23:59:59 2019 -03 isdst=0 gmtoff=-10800\r\nBrazil\/East  Sun Nov  3 03:00:00 2019 UTC = Sun Nov  3 01:00:00 2019 -02 isdst=1 gmtoff=-7200\r\n <\/pre>\n<p>Agora iremos atualizar o pacote tzdata.<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# yum update tzdata -y\r\n\r\n# yum update tzdata -y\r\n<\/pre>\n<p>Agora vamos verificar novamente se o hor\u00e1rio de ver\u00e3o permanece com data para altera\u00e7\u00e3o:<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n# zdump -v Brazil\/East | grep 2019\r\nzdump: warning: zone &quot;Brazil\/East&quot; abbreviation &quot;-03&quot; lacks alphabetic at start\r\nBrazil\/East Sun Feb 17 01:59:59 2019 UTC = Sat Feb 16 23:59:59 2019 -02 isdst=1 gmtoff=-7200\r\nBrazil\/East Sun Feb 17 02:00:00 2019 UTC = Sat Feb 16 23:00:00 2019 -03 isdst=0 gmtoff=-10800\r\n<\/pre>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\"> \r\n# zdump -v Brazil\/East | grep 2019\r\nzdump: warning: zone &quot;Brazil\/East&quot; abbreviation &quot;-03&quot; lacks alphabetic at start\r\nBrazil\/East Sun Feb 17 01:59:59 2019 UTC = Sat Feb 16 23:59:59 2019 -02 isdst=1 gmtoff=-7200\r\nBrazil\/East Sun Feb 17 02:00:00 2019 UTC = Sat Feb 16 23:00:00 2019 -03 isdst=0 gmtoff=-10800\r\n <\/pre>\n<p>Eu recomendo utilizarem o Ansible ou outro gerenciador de configura\u00e7\u00e3o para atualizar o pacote tzdata de todos os hosts, assim n\u00e3o precisar\u00e1 logar em cada um dos servidores para atualizar tzadata.<\/p>\n<p>Creditos: https:\/\/www.linuxnaweb.com<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Como atualizar o hor\u00e1rio de ver\u00e3o em servidores Linux. Atualizando hor\u00e1rio de ver\u00e3o no CentOS Atualizando hor\u00e1rio de ver\u00e3o no RedHat Atualizando hor\u00e1rio de ver\u00e3o no Debian Atualizando hor\u00e1rio de ver\u00e3o no UbuntuEstados que n\u00e3o precisar\u00e3o mais ajustar os rel\u00f3gios para o hor\u00e1rio de ver\u00e3o&#8230;.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[2],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1110"}],"collection":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1110"}],"version-history":[{"count":2,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1110\/revisions"}],"predecessor-version":[{"id":1112,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=\/wp\/v2\/posts\/1110\/revisions\/1112"}],"wp:attachment":[{"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1110"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1110"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.abratel.com.br\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1110"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}