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

The Geek Diary

CONCEPTS | BASICS | HOWTO

  • OS
    • Linux
    • CentOS/RHEL
    • Solaris
    • Oracle Linux
    • Linux Services
    • VCS
  • Database
    • oracle
    • oracle 12c
    • ASM
    • mysql
    • MariaDB
    • Data Guard
  • DevOps
    • Docker
    • Shell Scripting
  • Interview Questions
  • 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. LDOMs (OVM for SPARC) Command line reference [cheat sheet]
  2. How to assign CPU/Memory/MAU resources to Guest LDOMs [OVM for SPARC]
  3. How to reset LDOM configuration to factory default
  4. How to add/remove vdisk to/from Guest LDOMS online
  5. How to clone LDOMs using ZFS
  6. The Ultimate LDOMs troubleshooting guide
  7. LDOM live migration basics explained
  8. How to create an I/O domain
  9. Oracle VM Server for SPARC (Ldoms) : How to Change Primary/Control Domain’s UUID
  10. Solaris 11 : Increasing the size of a vdisk in LDom ( with backend device as ZFS volume )

You May Also Like

Primary Sidebar

Recent Posts

  • What are different Oracle Database Vault Roles
  • Unable to export realm protected table using data pump
  • Beginners Guide to Oracle Database Vault
  • How to Disable IPv6 on Ubuntu 18.04 Bionic Beaver Linux
  • Archives
  • Contact Us
  • Copyright

© 2021 · The Geek Diary