Configure Current System Timezone

Procedures for checking and changing the timezone on the system.

Start with the XC system booted.
Changing the timezone of a system can be done with a few configuration changes and then rebooting components.

Check current timezone

  1. Check timezone on SMW.
    smw# date
  2. Check timezone on cabinet and blade controllers.
    smw# xtrsh -l root -s date
  3. Check timezone on boot node.
    smw# ssh boot date
  4. Check timezone on SDB node. This command works from the SMW if the SDB node is a tier1 node with an Ethernet connection to the SMW.
    smw# ssh sdb date
  5. Check timezone on all service nodes.
    smw# ssh sdb pcmd -r -n ALL_SERVICE_NOT_ME "date"
  6. Check timezone on all compute nodes.
    smw# ssh sdb pcmd -r -n ALL_COMPUTE "date"

Change SMW local timezone

  1. Execute this command to change the default timezone. The default timezone on the SMW is "America/Chicago".
    smw# yast2 timezone

    The change on the SMW will be immediate, but users will need to logout and then login again to get the new environment.

    This does not change the timezone for the CLE nodes or the cabinet and blade controllers. See below to make those changes.

Change timezone in global config set

  1. Set cray_time.settings.service.data.timezone to be the desired timezone. A list of possible timezones is available on the SMW in /usr/share/zoneinfo/zone1970.tab.
    smw# cfgset update -s cray_time -m interactive global
  2. Validate the config set.
    smw# cfgset validate global

Change timezone in CLE config set

If the CLE config set has cray_time.inherit set to true, then the timezone and other time settings from the global config set will be inherited by the CLE config set.

If the CLE config set has cray_time.inherit set to false, then use the following command to change the setting.

  1. Set cray_time.settings.service.data.timezone to be the desired timezone. A list of possible timezones is available on the SMW in /usr/share/zoneinfo/zone1970.tab.
    smw# cfgset update -s cray_time -m interactive p0
  2. Validate the config set.
    smw# cfgset validate p0

Reboot for new timezone

Follow these steps to set a new timezone for all components in the SMW and CLE system after the global and CLE config sets and SMW yast2 have been updated with the new setting.

  1. Reboot SMW.
    1. Shutdown CLE and reboot the SMW.
      crayadm@smw> xtbootsys -s last -a auto.hostname.stop
      crayadm@adm> su - root
      smw# reboot
      
    2. Check that the SMW has the desired timezone setting once the SMW reboots.
      smw# date
  2. Power down the system.
    smw# xtcli power down s0
  3. Reboot the cabinet controllers
    smw# xtccreboot -c all
    xtccreboot: reboot sent to specified CCs
    smw# sleep 120
    smw# xtalive -l cc
    
  4. Power up the system.
    smw# xtcli power up s0
  5. Boot CLE nodes for new timezone.
    crayadm@smw> xtbootsys -a auto.rhine
  6. Check current timezone.
    1. Check timezone on SMW.
      smw# date
    2. Check timezone on cabinet and blade controllers.
      smw# xtrsh -l root -s date
    3. Check timezone on boot node.
      smw# ssh boot date
    4. Check timezone on SDB node. This command works from the SMW if the SDB node is a tier1 node with an Ethernet connection to the SMW.
      smw# ssh sdb date
    5. Check timezone on all service nodes.
      smw# ssh sdb pcmd -r -n ALL_SERVICE_NOT_ME "date"
    6. Check timezone on all compute nodes.
      smw# ssh sdb pcmd -r -n ALL_COMPUTE "date"