• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer navigation

The Geek Diary

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • VCS
  • Interview Questions
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
  • DevOps
    • Docker
    • Shell Scripting
  • Big Data
    • Hadoop
    • Cloudera
    • Hortonworks HDP

How to reset LDOM configuration to factory default

by admin

The factory-default configuration is the configuration when you first time install the Oracle VM Server for SPARC software on to a fresh Solaris OS. To set the physical server to factory-default configuration :

1. Remove all the guest LDOMs
2. Remove all the saved LDOM configurations
3. Restore the factory default configuration
   a. from command line
   b. from service processor

Stop all the ldoms, unbind and delete them

First step is to stop all the domains, unbind them and remove them (except the primary domain)

primary# ldm stop-domain -a
primary# ldm unbind-domain ldom_name
primary# ldm remove-domain -a

Remove all the saved LDOM configurations

Now remove saved configurations if any. After you remove all the configurations the factory-default configuration becomes the default configuration on next boot. Next step to set it specifically to factory-default is not required but mentioned in case you want don’t want to delete all the configurations.

primary# ldm list-config 
factory-default
config1
config2 [current]
# ldm rm-config config1
# ldm rm-config config2

Restore the factory default configuration

Now this can be done either from command line or from the service processor console.
a. From command line

primary# ldm set-config factory-default
primary# shutdown -i1 -g0 -y

Power cycle the server to get the factory-default configuration

-> stop /SYS 
-> start /SYS

b. From service processor
Shutdown the primary domain and login to the iLOM of the server and set bootmode configuration to factory-default.

primary# shutdown -i1 -g0 -y
-> set /HOST/bootmode config=factory-default

do a power cycle to activate the factory-default configuration

-> stop /SYS 
-> start /SYS

Filed Under: LDOMs Tagged With: factory-default configuration, LDOMs, Oracle VM for SPARC, solaris

Some more articles you might also be interested in …

  1. LDOMs (OVM for SPARC) Command line reference [cheat sheet]
  2. VxVM tutorials : Replacing a failed disk under VxVM
  3. VxVM tutorials : Volume resize with vxassist and vxresize
  4. VxVM tutorials : Root disk Encapsulation and Mirroring
  5. VxVM tutorials : Comparing layered and non-layered volumes

You May Also Like

Primary Sidebar

Recent Posts

  • protonvpn-cli Command Examples in Linux
  • protonvpn-cli connect Command Examples
  • procs Command Examples in Linux
  • prlimit: command not found

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright