If you installed your own /etc/inet/ntp.conf file before you installed Sun Cluster software, you do not need to perform this procedure. Determine your next step:
Perform this task to create or modify the NTP configuration file after you perform any of the following tasks:
Install Sun Cluster software
Add a node to an existing cluster
Change the private hostname of a node in the cluster
If you added 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.
The primary requirement when you configure NTP, or any time synchronization facility within the cluster, is that all cluster nodes must be synchronized to the same time. Consider accuracy of time on individual nodes to be of secondary importance to the synchronization of time among nodes. You are free to configure NTP as best meets your individual needs if this basic requirement for synchronization is met.
See the Sun Cluster Concepts Guide for Solaris OS for further information about cluster time. See the /etc/inet/ntp.cluster template file for additional guidelines on how to configure NTP for a Sun Cluster configuration.
Become superuser on a cluster node.
If you have your own /etc/inet/ntp.conf file, copy your file to each node of the cluster.
If you do not have your own /etc/inet/ntp.conf file to install, use the /etc/inet/ntp.conf.cluster file as your NTP configuration file.
Do not rename the ntp.conf.cluster file as ntp.conf.
If the /etc/inet/ntp.conf.cluster file does not exist on the node, you might have an /etc/inet/ntp.conf file from an earlier installation of Sun Cluster software. Sun Cluster software creates the /etc/inet/ntp.conf.cluster file as the NTP configuration file if an /etc/inet/ntp.conf file is not already present on the node. If so, perform the following edits instead on that ntp.conf file.
Use your preferred text editor to open the NTP configuration file on one node of the cluster for editing.
Ensure that an entry exists for the private hostname of each cluster node.
If you changed any node's private hostname, ensure that the NTP configuration file contains the new private hostname.
If necessary, make other modifications to meet your NTP requirements.
Copy the NTP configuration file to all nodes in the cluster.
The contents of the NTP configuration file must be identical on all cluster nodes.
Stop the NTP daemon on each node.
Wait for the command to complete successfully on each node before you proceed to Step 5.
SPARC: For the Solaris 9 OS, use the following command:
phys-schost# /etc/init.d/xntpd stop |
For the Solaris 10 OS, use the following command:
phys-schost# svcadm disable ntp |
Restart the NTP daemon on each node.
If you use the ntp.conf.cluster file, run the following command:
phys-schost# /etc/init.d/xntpd.cluster start |
The xntpd.cluster startup script first looks for the /etc/inet/ntp.conf file.
If the ntp.conf file exists, the script exits immediately without starting the NTP daemon.
If the ntp.conf file does not exist but the ntp.conf.cluster file does exist, the script starts the NTP daemon. In this case, the script uses the ntp.conf.cluster file as the NTP configuration file.
If you use the ntp.conf file, run one of the following commands:
SPARC: For the Solaris 9 OS, use the following command:
phys-schost# /etc/init.d/xntpd start |
For the Solaris 10 OS, use the following command:
phys-schost# svcadm enable ntp |
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.
If you intend to use Solaris IP Filter with failover data services, configure Solaris IP Filter. Go to How to Configure Solaris IP Filter.
To install a volume manager, go to Chapter 4, Configuring Solaris Volume Manager Software and Chapter 5, Installing and Configuring VERITAS Volume Manager to install volume management software.
If you added a new node to a cluster that uses VxVM, you must do one of the following tasks:
Install VxVM on that node.
Modify that node's /etc/name_to_major file to support coexistence with VxVM.
Follow procedures in How to Install VERITAS Volume Manager Software to perform one of these required tasks.
To create cluster file systems, go to How to Create Cluster File Systems.
To create non-global zones on a node, go to How to Create a Non-Global Zone on a Cluster Node.
SPARC: To configure Sun Management Center to monitor the cluster, go to SPARC: Installing the Sun Cluster Module for Sun Management Center.
Install third-party applications, register resource types, set up resource groups, and configure data services. See the documentation that is supplied with the application software and the Sun Cluster Data Services Planning and Administration Guide for Solaris OS.
Before you put the cluster into production, make a baseline recording of the cluster configuration for future diagnostic purposes. Go to How to Record Diagnostic Data of the Cluster Configuration.