Changing the Time Zone Settings
This section provides information about changing the time zones on Recovery Appliance after the initial configuration and deployment. You must modify the following components when changing the time zone settings:
-
Storage servers
-
Compute servers
-
Sun Datacenter InfiniBand Switch 36 switches
-
Cisco switch
Note: Before changing the time zone settings, you must stop the cell services on the storage servers and the Oracle Clusterware Services.
The following tasks describe how to change the time zone settings on the components:
Changing the Time Zone Settings on the Storage Servers
Complete the setting changes to all storage servers before changing the settings on the compute servers.
To change the time zone setting on a storage server:
-
Log in as the
rootuser on the storage server. -
Stop the processes on the cells:
# cellcli -e alter cell shutdown services all -
Run the
ipconfscript:# /opt/oracle.cellos/ipconf -
Proceed through the script prompts until you see the time zone prompts. Do not change any other settings.
The following example changes the time zone from McMurdo, Antarctica, to New York City, USA. The number for the United States is 230.
The current timezone: Antarctica/McMurdo Do you want to change it (y/n) [n]: y Setting up local time... 1) Andorra 2) United Arab Emirates 3) Afghanistan . . . 15) Aruba 16) Aaland Islands Select country by number, [n]ext, [l]ast: 230 Selected country: United States (US). Now choose a zone 1) America/New_York 2) America/Detroit 3) America/Kentucky/Louisville . . . 15) America/North_Dakota/New_Salem 16) America/Denver Select zone by number, [n]ext: 1 Selected timezone: America/New_York Is this correct (y/n) [y]: -
Proceed through the remaining prompts, but do not change any other values.
-
Ensure that the time zone changes appear in the following files. Examples of the changes are shown for the files.
-
/opt/oracle.cellos/cell.conf$VAR1 = { 'Hostname' => 'xdserver.us.example.com', 'Ntp servers' => [ '10.141.138.1' ], 'Timezone' => 'America/New_York', -
/etc/sysconfig/clockZONE="America/New_York" UTC=false ARC=false #ZONE="Antarctica/McMurdo" #ZONE="America/New_York" #ZONE="America/Los_Angeles"The uncommented value (not preceded by #) is the current setting.
-
/etc/localtimeUse the
strings /etc/localtimecommand to see the printable characters in the file. The last line includes the time zone setting.EST5EDT,M3.2.0,M11.1.0
-
-
Restart the server.
-
Use the
datecommand to see the current time zone. The following is an example of the output from the command:# date Thu Jun 12 16:43:47 EDT 2014 -
Review the
$ADR_BASE/diag/asm/cell/host_name/alert.logfile. Verify that the time that you restarted the processes matches the current and correct time.
Change Time Zone Settings on the Compute Servers
To change the time zone setting on a compute server:
-
Log in as the
rootuser on the compute server. -
Shut down Oracle Clusterware Services:
# GI/bin/crsctl stop crs -
Copy the
clockfile from one of the storage servers:# scp root@storage_cell:/etc/sysconfig/clock /etc/sysconfig/clock -
Disable Cluster Ready Services (CRS):
# GI/bin/crsctl disable crsThis step prevents Cluster Ready Services (CRS) from restarting automatically when you restart the server.
-
Restart the compute server.
-
Use the
datecommand verify the change for the time zone. -
Enable CRS:
# GI/bin/crsctl enable crsThis step restores CRS to its previous configuration setting.
-
Start CRS:
# GI/bin/crsctl start crs
Change the Time Zone Settings on the InfiniBand Switches
The following procedure describes how to change the time zone setting on a Sun Datacenter InfiniBand Switch 36:
-
Connect to the switch using SSH, and log in as the
rootuser. -
Log in to Oracle ILOM using the web address:
http://switch_alias -
Select the Configuration tab.
-
Select the Clock tab.
-
Ensure the Synchronize Time Using NTP field is enabled.
-
Enter the correct IP address for the servers.
-
Click Save.
Change the Time Zone Settings on the Cisco Switch
To change the time zone setting on the Cisco switch:
-
Use Telnet to connect to the Cisco switch as the
rootuser. -
Use the
enablecommand to enter privileged mode. -
Use the
configure terminalcommand to begin configuration. -
Set the clock using the following command:
clock timezone zone hours_offset [minutes_offset]In the preceding command,
zoneis the name of the time zone to be displayed when standard time is in effect,hours_offsetis the hours offset from UTC, andminutes_offsetare the minutes offset from UTC. The default time zone is UTC.To set summer time (daylight savings time), use the following command:
clock summer-time zone recurring [week day month hh:mm week day month \ hh:mm [offset]]In the preceding command,
weekis the week of the month, between 1 to 5,dayis the day of the week, such as Sunday or Monday,monthis the month, such as January or June,hh:mmis the time in 24-hour format, and offset is the number of minutes to add during summer time. The default forhh:mmis 60. Summer time is disabled by default.The following is an example of setting the time zone to US Eastern time with summer time enabled:
$ telnet raeth-ip Connected to raeth-ip Escape Character is 'CTRL+]' User Access Verification Password: password raeth-ip> enable Password: password raeth-ip# configure terminal Enter configuration commands, one per line. End with CNTL/Z. raeth-ip(config)# clock timezone EST -5 raeth-ip(config)# clock summer-time EDT recurring raeth-ip(config)# end raeth-ip# write memory Building configuration... Compressed configuration from 6421 bytes to 2041 bytes[OK] raeth-ip# show clock 12:03:43.516 EDT Wed May 12 2012