HP OpenVMS Systems Documentation |
OpenVMS System Manager's Manual
6.7.3.2 Using Predefined FormatsTable 6-3 lists all predefined date format logical names, their formats, and examples of the output generated using those formats. The mnemonics used to specify the formats are listed in Table 6-2.
Table 6-4 lists all predefined time format logical names, their formats, and examples of the output generated using those formats.
6.7.4 User Definitions of Language, and Date and Time FormatsA user can specify a choice of language by defining the SYS$LANGUAGE logical. For example:
A user can also specify a date and time format by defining the LIB$DT_FORMAT logical. For example:
6.8 Saving Your CustomizationOnce you have installed and customized your system, Compaq recommends that you back up your system disk. To do so, follow the instructions in Section 11.17. On VAX systems, back up the console volume (if applicable). If your computer has a console storage device, make a backup copy of your console volume in case your original becomes corrupted. The operating system provides a command procedure called CONSCOPY.COM (in the SYS$UPDATE directory), which copies your console volume to a blank one.
The procedure for backing up the console volume varies for different
computers. For specific instructions on backing up the console volumes,
refer to the upgrade and installation supplement for your VAX computer.
You can manage system time for an OpenVMS Cluster system with SYSMAN CONFIGURATION commands. Table 6-5 summarizes these CONFIGURATION commands and their functions.
6.9.1 Modifying the System TimeUse the CONFIGURATION SET TIME command to modify system time for nodes in an OpenVMS Cluster system, as well as for individual nodes. You can specify time values in the following format:
You can also enter delta time values. Refer to the OpenVMS User's Manual for more information about time formats. In a cluster environment, SYSMAN sets the time on each node to the value you specify. However, if you do not specify a value, SYSMAN reads the clock on the node from which you are executing SYSMAN and assigns this value to all nodes in the cluster. In a remote cluster, SYSMAN reads the clock on the target node in the cluster and assigns that value to all nodes. Note that the time-of-year clock is optional for some processors; refer to your processor's hardware handbook for more information. SYSMAN tries to ensure that all processors in the cluster are set to the same time. Because of communication and processing delays, it is not possible to synchronize clocks exactly. However, the variation is typically less than a few hundredths of a second. If SYSMAN cannot set the time to within one-half second of the specified time, you receive a warning message that names the node that failed to respond quickly enough. As a result of slight inaccuracies in each processor clock, times on various members of a cluster tend to drift apart. The first two examples show how to synchronize system time in a cluster.
6.9.1.1 Resetting System Time After January 1The Time of Day Register (TODR), which the system uses to maintain system time, has a limit of approximately 15 months. Between January 1 and April 1, reset the system time; otherwise, the following problems might occur:
Because the TODR has an approximate limit of 15 months, the system maintains time by combining the TODR value with a base time recorded in the base system image (SYS$LOADABLE_IMAGES:SYS.EXE). The definition of base time is:
Because all TODRs ordinarily have the same base, multiple CPUs can boot off the same system disk, and you can use multiple system disks on one CPU; the system sets the time correctly. When a SET TIME command is issued (with or without specifying a time), OpenVMS performs the following actions:
In an OpenVMS Cluster system (or for a node that is not part of the cluster), when you set the time, the TODR and the base time in the system image are reset with the values for the new year. However, multiple systems might share the system image. This does not normally cause a problem except after the first day of a new year.
By December, each node has a very large offset stored in the TODR (from the base time of 1-JAN of that year). When the time advances to a new year, the system image still has the old year and the TODR values are still large. After January 1, if a SET TIME command is issued on any node (or any node is shut down using SHUTDOWN.COM), the following events occur:
After these three events occur, if a node that has a large TODR crashes and rejoins the cluster, its system time is initially in the next year (applying the large TODR to the new year). This system time is recorded as the system's boot time. When the node joins the cluster, its time is set to the correct value but the boot time remains one year in the future. Certain forms of the SHOW SYSTEM command compare current time to boot time; in this instance, SHOW SYSTEM displays incorrect values. If a system disk is used at different times by different, unclustered CPUs or if different system disks are used at different times on the same CPU, the system might incorrectly set the time to a year in the future or a year in the past, depending on how the CPU's TODR and the value recorded on the system disk become unsynchronized:
The following example uses SYSMAN commands to reset the time on all nodes in an OpenVMS Cluster system:
|