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:

  1. Log in as the root user on the storage server.
  2. Stop the processes on the cells:
    # cellcli -e alter cell shutdown services all
    
  3. Run the ipconf script:
    # /opt/oracle.cellos/ipconf
    
  4. 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]:
    
  5. Proceed through the remaining prompts, but do not change any other values.
  6. 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/clock

      ZONE="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/localtime

      Use the strings /etc/localtime command to see the printable characters in the file. The last line includes the time zone setting.

      EST5EDT,M3.2.0,M11.1.0
      
  7. Restart the server.
  8. Use the date command 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
    
  9. Review the $ADR_BASE/diag/asm/cell/host_name/alert.log file. 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:

  1. Log in as the root user on the compute server.
  2. Shut down Oracle Clusterware Services:
    # GI/bin/crsctl stop crs
    
  3. Copy the clock file from one of the storage servers:
    # scp root@storage_cell:/etc/sysconfig/clock /etc/sysconfig/clock
    
  4. Disable Cluster Ready Services (CRS):
    # GI/bin/crsctl disable crs
    

    This step prevents Cluster Ready Services (CRS) from restarting automatically when you restart the server.

  5. Restart the compute server.
  6. Use the date command verify the change for the time zone.
  7. Enable CRS:
    # GI/bin/crsctl enable crs
    

    This step restores CRS to its previous configuration setting.

  8. 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:

  1. Connect to the switch using SSH, and log in as the root user.
  2. Log in to Oracle ILOM using the web address:
    http://switch_alias
    
  3. Select the Configuration tab.
  4. Select the Clock tab.
  5. Ensure the Synchronize Time Using NTP field is enabled.
  6. Enter the correct IP address for the servers.
  7. Click Save.

Change the Time Zone Settings on the Cisco Switch

To change the time zone setting on the Cisco switch:

  1. Use Telnet to connect to the Cisco switch as the root user.
  2. Use the enable command to enter privileged mode.
  3. Use the configure terminal command to begin configuration.
  4. Set the clock using the following command:
    clock timezone zone hours_offset [minutes_offset]
    

    In the preceding command, zone is the name of the time zone to be displayed when standard time is in effect, hours_offset is the hours offset from UTC, and minutes_offset are 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, week is the week of the month, between 1 to 5, day is the day of the week, such as Sunday or Monday, month is the month, such as January or June, hh:mm is the time in 24-hour format, and offset is the number of minutes to add during summer time. The default for hh:mm is 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