Go to main content

Administering an Oracle® Solaris Cluster 4.4 Configuration

Exit Print View

Updated: November 2019

How to Reset the Time of Day in a Cluster

Oracle Solaris Cluster software uses the NTP to maintain time synchronization between cluster nodes. Adjustments in the global cluster occur automatically as needed when nodes synchronize their time. For more information, see the Concepts for Oracle Solaris Cluster 4.4 and the Network Time Protocol's User's Guide at http://download.oracle.com/docs/cd/E19065-01/servers.10k/.


Caution  -  When using NTP, do not attempt to adjust the cluster time while the cluster is up and running. Do not adjust the time by using the date, rdate, or svcadm commands interactively or within the cron scripts. For more information, see the date(1), rdate(8), svcadm(8), or cron(8) man pages. The ntpd(8) man page is delivered in the service/network/ntp package.

The phys-schost# prompt reflects a global-cluster prompt. Perform this procedure on a global cluster.

This procedure provides the long forms of the Oracle Solaris Cluster commands. Most commands also have short forms. Except for the long and short forms of the command names, the commands are identical.

  1. Assume the root role on any node in the global cluster.
  2. Shut down the global cluster.
    phys-schost# cluster shutdown -g0 -y
  3. Verify that the node is showing the ok prompt on a SPARC based system or the Press any key to continue message on the GRUB menu on an x86 based system.
  4. Boot the node in noncluster mode.
    • On SPARC based systems, run the following command.

      ok boot -x
    • On x86 based systems, run the following commands.

      # shutdown -g -y -i0
      Press any key to continue
    1. In the GRUB menu, use the arrow keys to select the appropriate Oracle Solaris entry and type e to edit its commands.

      The GRUB menu appears.

      For more information about GRUB based booting, see About Run Level Booting in Booting and Shutting Down Oracle Solaris 11.4 Systems.

    2. In the boot parameters screen, use the arrow keys to select the kernel entry and type e to edit the entry.

      The GRUB boot parameters screen appears.

    3. Add -x to the command to specify system boot into noncluster mode.
      [ Minimal BASH-like line editing is supported. For the first word, TAB
      lists possible command completions. Anywhere else TAB lists the possible
      completions of a device/filename. ESC at any time exits. ]
      grub edit> kernel$ /platform/i86pc/kernel/$ISADIR/unix _B $ZFS-BOOTFS -x
    4. Press the Enter key to accept the change and return to the boot parameters screen.

      The screen displays the edited command.

    5. Type b to boot the node into noncluster mode.

      Note -  This change to the kernel boot parameter command does not persist over the system boot. The next time you reboot the node, it will boot into cluster mode. To boot into noncluster mode instead, perform these steps again to add the -x option to the kernel boot parameter command.
  5. On a single node, set the time of day by running the date command.
    phys-schost# date HHMM.SS
  6. On the other machines, synchronize the time to that node by running the rdate(8) command.
    phys-schost# rdate hostname
  7. Boot each node to restart the cluster.
    phys-schost# reboot
  8. Verify that the change occurred on all cluster nodes.

    On each node, run the date command.

    phys-schost# date