Changing the chrony/NTP Servers

You can change the configuration settings for the chrony implementation of the Network Time Protocol (NTP) servers after the initial setup. All servers and switches in Recovery Appliance must reference the same NPT servers, so that they are synchronized to the same time. This section explains how to set the Recovery Appliance servers and switches to the same chrony/NTP server addresses. Oracle recommends changing each server one at a time.

This section contains the following tasks:

Note:

  • You must restart Recovery Appliance after completing these tasks.

  • You can configure one or two CHRONY servers for use with Recovery Appliance.

Setting the NTP Server Address on the Compute Servers

To set the chrony/NTP server address on a compute server:

  1. Log in to a compute server as root.
  2. Stop the chrony/NTP services on the server:
    service chronyd stop
    
  3. Open /etc/chrony.conf in a text editor and enter the IP address of the new chrony/NTP server.
  4. Restart the chrony/NTP services on the compute server:
    service chronyd start
    
  5. Repeat this task for the second compute server.

Setting the CHRONY Server Address on the InfiniBand Switches

Note:

InfiniBand switches are used for X8 and earlier compute servers of the Recovery Appliances. X8M and X9M use different network fabric switches.

Do not manually edit the files on the InfiniBand switches.

To set the chrony/NTP server address on a Sun Datacenter InfiniBand Switch 36:

  1. Log in to the switch as the ilom-admin user.
  2. Set the date, time zone, and Network Time Protocol (NTP), using one of the following methods:
    • The Configuration page of the ILOM graphical interface.

    • The following CLI commands:

      set /SP/clock timezone=preferred_tz
      set /SP/clients/chrony/server/1 address=ntp_ip1
      set /SP/clients/chrony/server/2 address=ntp_ip2
      set /SP/clock usentpserver=enabled 
      

      In the preceding commands, preferred_tz is the preferred time zone, and ntp_ip1 and ntp_ip2 are the NTP server IP addresses. You must configure at least one NTP server; the second one is optional.

  3. Repeat this task for the other InfiniBand switches.

Set the NTP Server Address on the Cisco Ethernet Switch

To set the NTP server on the Cisco Ethernet switch:

  1. Open a connection to the Ethernet switch using SSH, and log in as admin. If SSH is not configured, then use Telnet.
  2. Change to enable mode.
    Switch> enable
    
  3. Review the current configuration:
    Switch# show running-config
    
  4. Erase the current chrony/NTP server configuration and any invalid NTP addresses. In the following example, the current IP addresses are 10.10.10.1 and 10.8.8.1.
    Switch# configure terminal
    Enter configuration commands,one per line. End with CNTL/Z.
    Switch(config)# no ntp server 10.10.10.1
    Switch(config)# no ntp server 10.8.8.1
    Switch(config)# end
    Switch# write memory
    Building configuration...
    Compressed configuration from 2603 bytes to 1158 bytes [OK ]
    
  5. Configure up to two NTP servers. The following example uses 10.7.7.1 and 10.9.9.1 as the new IP addresses:
    Switch# configure terminal
    Enter configuration commands,one per line. End with CNTL/Z.
    Switch(config)# ntp server 10.7.7.1 prefer
    Switch(config)# ntp server 10.9.9.1
    Switch(config)# end
    Switch# write memory
    Building configuration...
    Compressed configuration from 2603 bytes to 1158 bytes [OK ]
    
  6. Verify the changes:
    Switch# show running-config
    
    Building configuration...
    ...
    ntp server 192.168.10.10 prefer
    ...
    
  7. Save the configuration:
    Switch# copy running-config startup-config
    Destination filename [startup-config]? 
    Building configuration...
    Compressed configuration from 14343 bytes to 3986 bytes[OK]
    
  8. Exit from the session:
    Switch# exit

Setting the CHRONY Server on the Storage Servers

To set the chrony/NTP server on a storage server:

  1. Log in to the storage server as the root user.
  2. Follow steps 1 through 5 of My Oracle Support note 1188080.1, to take the server offline.
  3. Shut down the cell services and ocrvottargetd service:
    # cellcli -e alter cell shutdown services all
    # service ocrvottargetd stop
    
  4. Use the ipconf utility to change the NTP settings:
    # /usr/local/bin/ipconf
    
  5. Restart the server:
    # shutdown -r now
    
  6. Follow steps 7 through 9 of My Oracle Support note 1188080.1, to bring the server back online.

Restart Recovery Appliance

After changing the servers and switches, restart Recovery Appliance.