6.5.3 Restoring the logical domain configuration information and OpenBoot PROM environment variables
6.5.3 Restoring the logical domain configuration information and OpenBoot PROM environment variables
Reflect the setting of the XML file saved in "5.6.3 Saving the logical domain configuration information and OpenBoot PROM environment variables," and execute the shutdown command and restart the control domain.
The following shows the procedure for restoring the saved configuration information of the logical domains.
- Confirm that the current logical domain configuration is factory-default.
primary# ldm list-config | grep "factory-default" factory-default [current] |
- If [current] does not appear beside "factory-default," the current logical domain configuration is not factory-default. In such a case, follow the procedure below to change the current logical domain configuration to factory-default.a. Execute the ldm set-spconfig command with "factory-default" specified.
primary# ldm set-spconfig factory-default |
- b. Execute the poweroff command of the XSCF firmware and turn off the power to the physical partition.
XSCF> poweroff -p ppar_id |
- The OpenBoot PROM environment variables are initialized. So, reset it to the original values. a. To stop in the OpenBoot PROM state, confirm "auto-boot?" out of the OpenBoot PROM environment variables.
If the value is "true", change it to "false".
XSCF> setpparparam -p 0 -s bootscript "setenv auto-boot? false" PPAR-ID of PPARs that will be affected:0 OpenBoot PROM variable bootscript will be changed. Continue? [y|n] :y |
- b. If you change the setting, confirm the OpenBoot PROM environment variables.
XSCF> showpparparam -p 0 use-nvramrc :- security-mode :- bootscript : setenv auto-boot? false |
- c. Execute the poweron command to restart the physical partition.
XSCF> poweron -p 0 |
- d. Execute the showdomainstatus command to check the status of the control domain.
Confirm that the status of the control domain is displayed as "OpenBoot Running" indicating that it is in the OpenBoot PROM state.
XSCF> showdomainstatus -p 0 Logical Domain Name Status primary OpenBoot Running |
- e. Execute the console command to switch to the control domain console.
XSCF> console -p 0 -y Console contents may be logged. Connect to PPAR-ID 0?[y|n] :y |
- f. Restore the OpenBoot PROM environment variables based on the record saved in "5.6.3 Saving the logical domain configuration information and OpenBoot PROM environment variables."
The following example restores the boot-device to "/pci@8000/pci@4/pci@0/pci@0/scsi@0/disk@p0,0".
{0} ok setenv boot-device /pci@8000/pci@4/pci@0/pci@0/scsi@0/disk@p0,0 boot-device = /pci@8000/pci@4/pci@0/pci@0/scsi@0/disk@p0,0 {0} ok printenv boot-device boot-device = /pci@8000/pci@4/pci@0/pci@0/scsi@0/disk@p0,0 |
The following example restores "auto-boot?" to "true."
{0} ok setenv auto-boot? true auto-boot? = true {0} ok printenv auto-boot? auto-boot? = true |
- Boot Oracle Solaris.
{0} ok boot |
- On Oracle Solaris super user prompt, confirm that the system started with factory-default.
primary# ldm ls-spconfig factory-default [current] |
- Execute the ldm init-system command to reflect the setting in the saved XML file.
This is an example of restoring configuration information saved in /ldm-set1.xml.
primary# ldm init-system -i /ldm-set1.xml Initiating a delayed reconfiguration operation on the primary domain. All configuration changes for other domains are disabled until the primary domain reboots, at which time the new configuration for the primary domain will also take effect. |
- Execute the shutdown command, and restart the control domain.
primary# shutdown -y -g0 -i6 |
- Bind resources to a physical domain other than the control domain, and start the domain.
In the following example, the user binds resources to ldom1 and starts it.
primary# ldm bind ldom1 primary# ldm start ldom1 |
Note - If the virtual function (VF) is lent to the logical domains by using the SR-IOV function, the configuration of the virtual function may not be restored. Execute the ldm command to manually restore the virtual function that is not restored. |
The following is an example.
primary# ldm create-vf /SYS/PCI1/IOVNET.PF0 primary# ldm add-io /SYS/PCI1/IOVNET.PF0.VF0 ldom1 |
- Execute the ldm add-spconfig command to save the configuration information of the logical domains.
To save configuration information under the same name, execute rm-config to delete it once and then save it.
< Previous Page | Next Page >