Tags:
create new tag
,
view all tags
---+ 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: <pre> [root@spgrid Brazil]# more /etc/ntp/ntpservers clock.redhat.com clock2.redhat.com </pre> Logo para que ela entenda o horário de verão criamos o arquivo verao.zic: <pre> [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 </pre> 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: <pre> [root@spgrid Brazil]# zic verao2006.zic </pre> Vamos ver se realmente houve mudanća: <pre> [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 </pre> E é so copiar no /etc/localtime <pre> [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 </pre> No caso ele adiantou uma hora do horário que ele pegou dos servidores. Precisamos copiar o /etc/localtime para o das maquinas. <pre> [root@spgrid ~]# cp /etc/localtime /raid0/ [root@spgrid ~]#clcmd cp /raid0/localtime /etc/localtime </pre> e na spraid, spdc00 tamb'em
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r2 - 2007-10-15
-
MarcoAndreFerreiraDias
Home
Site map
Main web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback