Skip to main content

10.13.2 Restoring the OpenBoot PROM Environment Variables


10.13.2 Restoring the OpenBoot PROM Environment Variables
This section describes the procedure for restoring the OpenBoot PROM environment variables.
- When restoring other than nvramrc
  1. Check the OpenBoot PROM environment variables saved in a text file.
  1. Execute the setenv command to restore the values and the printenv command to check the contents.
    If you are planning to restore logical domain information using a saved XML file, set auto-boot? to "false" and security-mode to "none" prior to issuing the next reboot.
  1. The following example restores local-mac-address? to "false."
{0} ok setenv local-mac-address? false
local-mac-address? = false
{0} ok printenv local-mac-address?
local-mac-address? = false
  1. The following example restores boot-device to "mydisk1 mydisk2 mydisk3 mynet."
{0} ok setenv boot-device mydisk1 mydisk2 mydisk3 mynet
boot-device = mydisk1 mydisk2 mydisk3 mynet
{0} ok printenv boot-device
boot-device = mydisk1 mydisk2 mydisk3 mynet
  1. The following example restores use-nvramrc? to "true."
{0} ok setenv use-nvramrc? true
use-nvramrc? = true
{0} ok printenv use-nvramrc?
use-nvramrc? = true
- When restoring nvramrc
  1. Check the OpenBoot PROM environment variables saved in a text file.
  1. Execute the nvedit command to set a value to nvramrc.
    The following example writes the contents checked in step 1 to nvramrc.
{0} ok nvedit
0: devalias mydisk1 /pci@8000/pci@4/pci@0/pci@0/scsi@0/disk@p3,0:a
1: devalias mydisk2 /pci@8100/pci@4/pci@0/pci@0/scsi@0/disk@p0,0:a
2: devalias mydisk3 /pci@8100/pci@4/pci@0/pci@0/scsi@0/disk@p1,0:a
3: devalias mynet /pci@8000/pci@4/pci@0/pci@9/network@0
4: h# 8 value video-mode
5:
  1. Press the [Ctrl] and [C] keys to exit from nvedit and return to the ok prompt.
  1. Execute the nvstore command to save the edit.
{0} ok nvstore
  1. Execute the printenv command to check if nvramrc has been correctly written.
{0} ok printenv nvramrc
nvramrc = devalias mydisk1 /pci@8000/pci@4/pci@0/pci@0/scsi@0/disk@p3,0:a
devalias mydisk2 /pci@8100/pci@4/pci@0/pci@0/scsi@0/disk@p0,0:a
devalias mydisk3 /pci@8100/pci@4/pci@0/pci@0/scsi@0/disk@p1,0:a
devalias mynet /pci@8000/pci@4/pci@0/pci@9/network@0
h# 8 value video-mode
  1. If the OpenBoot PROM environment variable auto-boot? is "true," execute the setenv command to set it to "false."
{0} ok setenv auto-boot? false
  1. Execute the reset-all command to restart OpenBoot PROM.
{0} ok reset-all
  1. Then, boot Oracle Solaris and restore logical domain information using an XML file.
    This allows the restoration of the OpenBoot PROM environment variables in all logical domains, except for security-password, in the physical partition including the control domain.
For details on restoring logical domain configuration information using an XML file, see "10.12 Saving/Restoring Logical Domain Configuration Information in an XML File."
For logical domains with security-mode set to command or full, ask the system administrator to set security-password.