Go to main content

Installing and Configuring an Oracle® Solaris Cluster 4.4 Environment

Exit Print View

Updated: September 2019
 
 

Configuring Network Time Protocol (NTP)

This section contains the following procedures:

How to Use Your Own /etc/inet/ntp.conf File


Note -  If you installed your own /etc/inet/ntp.conf file before you installed the Oracle Solaris Cluster software, you do not need to perform this procedure. Proceed to How to Validate the Cluster.
  1. Assume the root role on a cluster node.
  2. Add your /etc/inet/ntp.conf file to each node of the cluster.
  3. On each node, determine the state of the NTP service.
    phys-schost# svcs svc:/network/ntp:default
  4. Start the NTP daemon on each node.
    • If the NTP service is disabled, enable the service.
      phys-schost# svcadm enable svc:/network/ntp:default
    • If the NTP service is online, restart the service.
      phys-schost# svcadm restart svc:/network/ntp:default

Next Steps

Determine from the following list the next task to perform that applies to your cluster configuration. If you need to perform more than one task from this list, go to the first of those tasks in this list.

How to Install NTP After Adding a Node to a Single-Node Cluster

When you add a node to a single-node cluster, you must ensure that the NTP configuration file that you use is copied to the original cluster node as well as to the new node.

  1. Assume the root role on a cluster node.
  2. Copy the /etc/inet/ntp.conf and /etc/inet/ntp.conf.sc files from the added node to the original cluster node.

    These files were created on the added node when it was configured with the cluster.

  3. On the original cluster node, create a symbolic link named /etc/inet/ntp.conf.include that points to the /etc/inet/ntp.conf.sc file.
    phys-schost# ln -s /etc/inet/ntp.conf.sc /etc/inet/ntp.conf.include
  4. On each node, determine the state of the NTP service.
    phys-schost# svcs svc:/network/ntp:default
  5. Start the NTP daemon on each node.
    • If the NTP service is disabled, enable the service.
      phys-schost# svcadm enable svc:/network/ntp:default
    • If the NTP service is online, restart the service.
      phys-schost# svcadm restart svc:/network/ntp:default

Next Steps

Determine from the following list the next task to perform that applies to your cluster configuration. If you need to perform more than one task from this list, go to the first of those tasks in this list.

How to Update NTP After Changing a Private Hostname

  1. Assume the root role on a cluster node.
  2. On each node of the cluster, update the /etc/inet/ntp.conf.sc file with the changed private hostname.
  3. On each node, determine the state of the NTP service.
    phys-schost# svcs svc:/network/ntp:default
  4. Start the NTP daemon on each node.
    • If the NTP service is disabled, enable the service.
      phys-schost# svcadm enable svc:/network/ntp:default
    • If the NTP service is online, restart the service.
      phys-schost# svcadm restart svc:/network/ntp:default

Next Steps

Determine from the following list the next task to perform that applies to your cluster configuration. If you need to perform more than one task from this list, go to the first of those tasks in this list.