Sun Cluster System Administration Guide for Solaris OS

ProcedureHow to Reset the Time of Day in a Cluster

Sun Cluster uses the Network Time Protocol (NTP) to maintain time synchronization between cluster nodes. Adjustments in the cluster occur automatically as needed when nodes synchronize their time. See the Sun Cluster Concepts Guide for Solaris OS and the Network Time Protocol User's Guide for more information.

Caution – Caution –

When using NTP, do not attempt to adjust the cluster time while the cluster is up and running. This includes using the date(1), rdate(1M), xntpd(1M), or svcadm(1M) commands interactively or within cron(1M) scripts.

  1. Become superuser on any node in the cluster.

  2. Shut down the cluster.

    # scshutdown -g0 -y
  3. Verify that the node is showing the ok prompt or the Select (b)oot or (i)nterpreter prompt on the Current Boot Parameters screen.

  4. Boot the node in non-cluster mode by using the boot(1M) or the b command with the -x option.

    • SPARC:

      ok boot -x
    • x86:

                            <<< Current Boot Parameters >>>
      Boot path: /pci@0,0/pci8086,2545@3/pci8086,1460@1d/pci8086,341a@7,1/
      Boot args:
      Type    b [file-name] [boot-flags] <ENTER>  to boot with options
      or      i <ENTER>                           to enter boot interpreter
      or      <ENTER>                             to boot with defaults
                        <<< timeout in 5 seconds >>>
      Select (b)oot or (i)nterpreter: b -x
  5. On a single node, set the time of day by running the date command.

    # date HHMM.SS
  6. On the other machines, synchronize the time to that node by running the rdate(1M) command.

    # rdate hostname
  7. Boot each node to restart the cluster.

    # reboot
  8. Verify that the change took place on all cluster nodes.

    On each node, run the date command.

    # date