Notes on the Logical Domain Time
Notes on the Logical Domain Time
In a logical domain configuration, if the PPAR is restarted after being kept active for a long time, the Oracle Solaris time may shift. (RTIF2-170224-036)
For details on how to check for a logical domain configuration, see [How to check whether logical domain configuration/factory-default configuration].
To avoid this problem, be sure to perform one of the following procedures.
For details on how to check for a logical domain configuration, see [How to check whether logical domain configuration/factory-default configuration].
To avoid this problem, be sure to perform one of the following procedures.
[Workaround 1] (Recommended)
Save the logical domain configuration information before stopping or restarting the PPAR.
Example: Saving logical domain configuration information under the name of "config_A"
Save the logical domain configuration information before stopping or restarting the PPAR.
Example: Saving logical domain configuration information under the name of "config_A"
primary# ldm list-domain -l Omitted primary# ldm list-spconfig Omitted primary# ldm remove-spconfig config_A primary# ldm add-spconfig config_A |
[Workaround 2]
If the logical domain configuration information was not saved before the PPAR was stopped, perform the following procedure.
If the logical domain configuration information was not saved before the PPAR was stopped, perform the following procedure.
- Execute the showdateinfo(8) command to check the times of the control domain and guest domain.- For XCP 3050 or later
Check the times of the control domain and guest domain.
If the times are correct, the subsequent steps are unnecessary.
If the times are not correct, go to step 2.- For XCP 3040 or earlier
Go to step 2 because it is not possible to check the times with the showdateinfo(8) command.
Example: Physical partition is PPAR#0
XSCF> showdateinfo -p 0 PPAR-ID : 0 config_name : 10guest_config XSCF information: ----------------- XSCF Date : Aug 03 19:56:16 JST 2017 Logical domains information: ---------------------------- primary Date : Aug 03 19:56:16 JST 2017 guest 0 Date : Aug 03 19:56:16 JST 2017 guest 1 Date : Aug 03 19:56:16 JST 2017 guest 2 Date : Aug 03 19:56:16 JST 2017 XSCF> |
Note - The times of the control domain and the guest domain are displayed by using the XSCF time zone. |
- Execute the setpparmode(8) command to disable startup of guest domains.
Example: Physical partition is PPAR#0
XSCF> setpparmode -p 0 -m guestboot=off |
- Execute the poweron(8) command to power on the target physical partitions.
XSCF> poweron -p 0 -y |
- Set the correct time for guest domains.
Perform the following procedure on every guest domain to set the time.a. Check the CONS value of the guest domain.
primary# ldm list-domain NAME STATE FLAGS CONS VCPU MEMORY UTIL NORM UPTIME primary active -n-cv- SP 8 3968M 0.2% 0.1% 18h 37m guest bound ------ 5000 8 2G |
- b. Disable the autoboot function of the guest domain.
primary# ldm set-variable auto-boot?=false guest |
- c. Start the guest domain.
primary# ldm start-domain guest |
- d. Open the guest domain console.
primary# telnet localhost 5000 : {0} ok |
- e. Execute the boot -s command to start Oracle Solaris in single user mode.
{0} ok boot -s |
- f. Execute the date command of Oracle Solaris to set the guest domain time.
Example: Setting for 12:30:00 on March 25, 2017
guest# date 0325123017.00 |
- g. Switch to multi-user mode.
guest# exit |
- h. If the guest domain is an NTP client, execute the ntpq -np command, and confirm synchronization with the NTP server.
The asterisk ("*") at the beginning of a line below indicates that the NTP server in the "remote" column is synchronized with the guest domain.
guest# while [ 1 ]; do ntpq -np; sleep 60; done remote refid st t when poll reach delay offset jitter ============================================================================== *203.0.113.156 203.0.113.70 4 u 46 64 3 0.458 0.754 7.243 remote refid st t when poll reach delay offset jitter ============================================================================== *203.0.113.156 203.0.113.70 4 u 39 64 7 0.478 1.487 5.664 remote refid st t when poll reach delay offset jitter ============================================================================== *203.0.113.156 203.0.113.70 4 u 35 64 17 0.450 2.164 5.077 ^C guest# |
i. If necessary, re-enable the autoboot function of the guest domain.
primary# ldm set-variable auto-boot?=true guest |
- If necessary, execute the setpparmode(8) command to re-enable startup of guest domains.
Example: Physical partition is PPAR#0
XSCF> setpparmode -p 0 -m guestboot=on |
- For a logical domain configuration, save logical domain configuration information.
For details on how to check for a logical domain configuration, see [How to check whether logical domain configuration/factory-default configuration].
Example: Saving logical domain configuration information under the name of "config_A"
primary# ldm list-domain -l Omitted primary# ldm list-spconfig Omitted primary# ldm remove-spconfig config_A primary# ldm add-spconfig config_A |
[How to check whether logical domain configuration/factory-default configuration]
You can check whether the configuration is a logical domain configuration by using the showdomainconfig command.
- Logical domain configuration
If a value other than factory-default is set below, as indicated by underline, it is a logical domain configuration.
XSCF> showdomainconfig -p 0 PPAR-ID :0 Booting config (Current) :config_A (Next) :config_A ----------------------------------------------------------------------------- Index :1 config_name :factory-default domains :1 date_created:- ----------------------------------------------------------------------------- Index :2 config_name :config_A domains :1 date_created:'2014-03-05 17:33:17' |
- factory-default configuration
If factory-default is set below, as indicated by underline, it is not a logical domain configuration but in the factory-default configuration.
XSCF> showdomainconfig -p 0 PPAR-ID :0 Booting config (Current) :factory-default (Next) :factory-default ----------------------------------------------------------------------------- Index :1 config_name :factory-default domains :1 date_created:- |
< Previous Page | Next Page >