• 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 rename a LDOM (OVM for SPARC)

by admin

In some rare situations you may get a request to change the name of the LDOM. This can be done in 2 ways.
1. Using live migration (can be done online)
2. By editing XML constraints file (requires downtime)

Using live migration feature (online)

In this case we migrate the guest LDOM to another machine and then again migrate it to the original machine with the new name.

source-machine # ldm migrate oldname destination-machine
destination-machine # ldm migrate oldname machineA:newname

For more info on live migration refer the post : LDOM live migration basics explained

Editing the constraints (reboot required)

Another way of changing the LDOM name is to edit the constraints XML file. For this save the guest domain config into an XML file

# ldm list-constraints -x oldname >/tmp/oldname.xml

Shutdown and un-bind the Guest LDOM :

# ldm stop oldname
# ldm unbind oldname

Copy the XML file as the new LDOM XML file and edit file to replace the oldname to newname :

# cp /tmp/oldname.xml /tmp/newname.xml
# vi /tmp/newname.xml
Content xsi:type="ovf:VirtualSystem_Type" ovf:id="oldname"

Destroy the old Guest LDOM :

# ldm destroy oldname

Create the new Guest LDOM using the edited XML file :

# ldm add-domain -i tmp/newname.xml

Bind and start the new guest domain :

# ldm bind newname
# ldm start newname

Verify the new name of Guest LDOM :

# ldm list
NAME     STATE  FLAGS CONS VCPU MEMORY UTIL UPTIME 
primary  active -n-cv  SP   8    4G    0.3% 8h 46m 
newname  active -n--- 5000  8    2G     48% 1h 52m

Filed Under: LDOMs

Some more articles you might also be interested in …

  1. How to create an I/O domain
  2. OVM for SPARC (LDOMs) : Troubleshooting console issues
  3. LDOM live migration basics explained
  4. How to assign CPU/Memory/MAU resources to Guest LDOMs [OVM for SPARC]
  5. Solaris 11 : Increasing the size of a vdisk in LDom ( with backend device as ZFS volume )
  6. Oracle VM Server for SPARC (Ldoms) : How to Change Primary/Control Domain’s UUID
  7. How to reset LDOM configuration to factory default
  8. How to save LDOM configuration and restore from xml file
  9. The Ultimate LDOMs troubleshooting guide
  10. How to Collect a Forced Crash Dump of a Hanging Solaris Guest LDom

You May Also Like

Primary Sidebar

Recent Posts

  • powertop Command Examples in Linux
  • powertop: command not found
  • powerstat: command not found
  • powerstat Command Examples in Linux

© 2023 · The Geek Diary

  • Archives
  • Contact Us
  • Copyright