Logical Domains 1.3 Administration Guide

Factory Default Configuration and Disabling Logical Domains

The initial configuration where the platform appears as a single system hosting only one operating system is called the factory default configuration. If you want to disable logical domains, you probably also want to restore this configuration so that the system regains access to all resources (CPUs, memory, I/O), which might have been assigned to other domains.

This section describes how to remove all guest domains, remove all Logical Domains configurations, and revert the configuration to the factory default.

ProcedureRemove All Guest Logical Domains

  1. List all the logical domain configurations that are stored on the service processor.


    primary# ldm list-config
    
  2. Remove all configurations (config-name) previously saved to the service processor (SP) except for the factory-default configuration.

    Use the following command for each such configuration.


    primary# ldm rm-config config-name
    

    After you remove all the configurations previously saved to the SP, the factory-default domain would be the next one to use when the control domain (primary) is rebooted.

  3. Stop all domains by using the -a option.


    primary# ldm stop-domain -a
    
  4. Unbind all domains except for the primary domain.


    primary# ldm unbind-domain ldom
    

    Note –

    You might not be able to unbind an I/O domain in a split-PCI configuration if it is providing services required by the control domain. In this situation, skip this step.


ProcedureRestore the Factory Default Configuration

  1. Select the factory default configuration.


    primary# ldm set-config factory-default
    
  2. Stop the control domain.


    primary# shutdown -i1 -g0 -y
    
  3. Powercycle the system so that the factory-default configuration is loaded.


    sc> poweroff
    sc> poweron
    

ProcedureDisable the Logical Domains Manager

  1. Disable the Logical Domains Manager from the control domain.


    primary# svcadm disable ldmd
    

    Note –

    Disabling the Logical Domains Manager does not stop any running domains, but does disable the ability to create a new domains, change the configuration of existing domains, or monitor the state of the domains.



    Caution – Caution –

    If you disable the Logical Domains Manager, this disables some services, such as error reporting or power management. In the case of error reporting, if you are in the factory-default configuration, you can reboot the sole domain to restore error reporting. However, this is not the case with power management. In addition, some system management or monitoring tools rely on the Logical Domains Manager.


ProcedureRemoving the Logical Domains Manager

After restoring the factory default configuration and disabling the Logical Domains Manager, you can remove the Logical Domains Manager software.

  1. Remove the Logical Domains Manager software.


    primary# pkgrm SUNWldm SUNWldmp2v
    

    Note –

    If you remove the Logical Domains Manager before restoring the factory default configuration, you can restore the factory default configuration from the service processor as shown in the following procedure.


ProcedureRestore the Factory Default Configuration From the Service Processor

If you remove the Logical Domains Manager before restoring the factory default configuration, you can restore the factory default configuration from the service processor.

  1. Restore the factory default configuration from the service processor.


    -> set /HOST/bootmode config=factory-default
    
  2. Powercycle the system to load the factory default configuration.