Horário de Verão 2006 na SPgrid.

Description

A spgrid é a servidora ntp do cluster. Ela por sua vez sincroniza seu horário com os seguinte servidores:
[root@spgrid Brazil]# more /etc/ntp/ntpservers
clock.redhat.com
clock2.redhat.com

Logo para que ela entenda o horário de verão criamos o arquivo verao.zic:

[root@spgrid zoneinfo]# cd /usr/share/zoneinfo/Brazil/
[root@spgrid Brazil]# ls
Acre  DeNoronha  East  verao2006.zic  West
[root@spgrid Brazil]# more verao2006.zic
Rule Brazil 2006 only - Nov 05 00:00 1 S
Rule Brazil 2007 only - Feb 25 00:00 0 -

Zone Brazil/East -3:00 Brazil BR%sT
O horário comeca em 05/nov de 2006 e termina em 25/fev de 2007. A última linha indica qual arquivo vai ser modificado ( no caso o Brazil/East). Feito isso modificamos o arquivo East:
[root@spgrid Brazil]# zic verao2006.zic
Vamos ver se realmente houve mudanća:
[root@spgrid Brazil]# zdump -v Brazil/East |grep 200[67]
Brazil/East  Sun Nov  5 02:59:59 2006 UTC = Sat Nov  4 23:59:59 2006 BRT isdst=0 gmtoff=-10800
Brazil/East  Sun Nov  5 03:00:00 2006 UTC = Sun Nov  5 01:00:00 2006 BRST isdst=1 gmtoff=-7200
Brazil/East  Sun Feb 25 01:59:59 2007 UTC = Sat Feb 24 23:59:59 2007 BRST isdst=1 gmtoff=-7200
Brazil/East  Sun Feb 25 02:00:00 2007 UTC = Sat Feb 24 23:00:00 2007 BRT isdst=0 gmtoff=-10800
E é so copiar no /etc/localtime
[root@spgrid Brazil]# cp East /etc/localtime
[root@spgrid Brazil]# /etc/init.d/ntpd restart
Shutting down ntpd:                                        [  OK  ]
ntpd: Synchronizing with time server:                      [  OK  ]
Starting ntpd:                                             [  OK  ]
[root@spgrid Brazil]# date
Thu Feb 22 11:26:00 BRST 2007
No caso ele adiantou uma hora do horário que ele pegou dos servidores. Precisamos copiar o /etc/localtime para o das maquinas.
[root@spgrid ~]# cp /etc/localtime /raid0/
[root@spgrid ~]#clcmd cp /raid0/localtime /etc/localtime

e na spraid, spdc00 tamb'em

Topic revision: r2 - 2007-10-15 - MarcoAndreFerreiraDias
 

This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2023 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback

antalya escort bursa escort eskisehir escort istanbul escort izmir escort