Skip to main content
  1. Home >
  2. Products >
  3. Computing Products >
  4. Servers >
  5. Fujitsu SPARC servers >
  6. Downloads >
  7. User Manuals >
  8. Fujitsu SPARC M12-1 Service Manual >
  9. 6.5.2 Restoring Logical Domain Configuration Information and OpenBoot PROM Environment Variables

6.5.2 Restoring Logical Domain Configuration Information and OpenBoot PROM Environment Variables


6.5.2 Restoring Logical Domain Configuration Information and OpenBoot PROM Environment Variables
Reflect the setting of the XML file saved in "5.6.2 Saving Logical Domain Configuration Information and OpenBoot PROM Environment Variables," execute the shutdown command, and restart the control domain.
The following shows the procedure for restoring the saved logical domain configuration information.
  1. Confirm that the current logical domain configuration is factory-default.
primary# ldm list-config | grep "factory-default"
factory-default [current]
  1. 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
  1. b. Execute the poweroff command of the XSCF firmware and turn off the power to the physical partition.
XSCF> poweroff -p ppar_id
  1. 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
  1. 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
  1. c. Execute the poweron command to restart the physical partition.
XSCF> poweron -p 0
  1. 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
  1. 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
  1. f. Restore the OpenBoot PROM environment variables based on the record saved in "5.6.2 Saving Logical Domain Configuration Information and OpenBoot PROM Environment Variables."
    The following example restores the boot-device to "/pci@8100/pci@4/pci@0/pci@0/scsi@0/disk@p0,0".
{0} ok setenv boot-device /pci@8100/pci@4/pci@0/pci@0/scsi@0/disk@p0,0
boot-device = /pci@8100/pci@4/pci@0/pci@0/scsi@0/disk@p0,0
{0} ok printenv boot-device
boot-device = /pci@8100/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
  1. Boot Oracle Solaris.
{0} ok boot
  1. On Oracle Solaris super user prompt, confirm that the system started with factory-default.
primary# ldm ls-spconfig
factory-default [current]
  1. 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.
  1. Execute the shutdown command, and restart the control domain.
primary# shutdown -y -g0 -i6
  1. 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 was 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
  1. Execute the ldm add-spconfig command to save the logical domain configuration information.
    To save configuration information under the same name, execute rm-config to delete it once, and then save it.