Unix/Linux Go Back    


Solaris The Solaris Operating System, usually known simply as Solaris, is a Unix-based operating system introduced by Sun Microsystems. The Solaris OS is now owned by Oracle.

Help required with Solaris LDoms

Solaris


Reply    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 08-21-2017   -   Original Discussion by apmcd47
apmcd47's Unix or Linux Image
apmcd47 apmcd47 is offline
Registered User
 
Join Date: Feb 2011
Last Activity: 16 December 2017, 4:17 AM EST
Posts: 285
Thanks: 13
Thanked 76 Times in 73 Posts
Help required with Solaris LDoms

System: SPARC S7-2 Server; 2x8-core CPUs; 128Gb RAM; 2x600Gb HDD.

I am trying to figure out how to run these is multiple Virtual Machines (LDoms). Unfortunately I cannot find a tutorial so am using the Oracle VM Server for SPARC 3.4 Administration Guide; which is frustrating because it assumes a higher level of knowledge than I possess.

So far I have managed to create two client LDoms and installed Solaris 10 on one and Solaris 11 on the other. I was unable to network them; that is my next challenge.

I wish to be able to make snapshots of the LDoms as I go so that I can fall back if I make a mistake; also to be able to duplicate a usable LDom rather than have to start from the beginning each time I want a new virtual system. With this in mind I have used:

Code:
ldm list-constraints -x domain > XML_file

to make the configuration file, and I understand that one of

Code:
ldm add-domain -i XML_file
ldm set-domain -i XML_file

is required to restore it. The admin guide (mentioned above) does not state whether you should use

Code:
ldm remove-domain domain

before restoring the domain.

Can anyone help, either by giving me advice, or by directing me to a proper tutorial?

I also have physical Solaris 10 systems that, if I could, I would virtualise using the ldmp2v utility and run on one of my new systems while I sorted out a newer configuration on the other. I have managed to run it in Collection Phase, but need help in the Preparation and Conversion phases.

I'll be grateful for any help,

Andrew
Sponsored Links
    #2  
Old Unix and Linux 09-05-2017   -   Original Discussion by apmcd47
garydeena's Unix or Linux Image
garydeena garydeena is offline
Registered User
 
Join Date: Mar 2007
Last Activity: 15 October 2017, 8:34 PM EDT
Posts: 16
Thanks: 0
Thanked 3 Times in 3 Posts
Hi. I lost the mother board on my Sparc server running Solaris 10 and lost the SP.
the below restored everything. Very easy as long as you have backups.

ldm list-spconfig
factory-default - should be current. ( next startup )

Will not restore primary if spconfig and ldom-db.xml differ

mv /var/opt/ldom-db.xml /var/opt/ldom-db.xml-orig

reboot

ldm init-system -r -i primary-ldomname.xml

ldm add-domain -i ldomname.xml

bind ldomname
ldm start-domain ldomname

That's it. Then ldm add-spconfig latest
Sponsored Links
    #3  
Old Unix and Linux 09-05-2017   -   Original Discussion by apmcd47
apmcd47's Unix or Linux Image
apmcd47 apmcd47 is offline
Registered User
 
Join Date: Feb 2011
Last Activity: 16 December 2017, 4:17 AM EST
Posts: 285
Thanks: 13
Thanked 76 Times in 73 Posts
Thanks for this. So this is how you restored a working client domain onto a brand-new hardware after the old one croaked?

I don't appear to have an /var/opt/ldom-db.xml. Is it possibly somewhere else on a Solaris 11 system?

Andrew
    #4  
Old Unix and Linux 09-05-2017   -   Original Discussion by apmcd47
garydeena's Unix or Linux Image
garydeena garydeena is offline
Registered User
 
Join Date: Mar 2007
Last Activity: 15 October 2017, 8:34 PM EDT
Posts: 16
Thanks: 0
Thanked 3 Times in 3 Posts
Hi. Yep Solaris 11 is different. That was just a slight gotcha I noticed for solaris 10. But in answer to your question. Try restoring the guest domain before deleting it, and see what happens. Ldm wont allow you to duplicate existing configs. So a simple delete and add should restore you to where you want.
Sponsored Links
    #5  
Old Unix and Linux 09-11-2017   -   Original Discussion by apmcd47
os2mac's Unix or Linux Image
os2mac os2mac is offline
Registered User
 
Join Date: Oct 2012
Last Activity: 13 December 2017, 6:19 PM EST
Location: Anchorage, AK
Posts: 248
Thanks: 22
Thanked 25 Times in 25 Posts
it should be noted that the virtual disk service, virtual switch configurations and virtual console configs are in the LDM config but not part of an individual LDOM export.

you'll have to do ldm list -l >file.txt to get that.
Sponsored Links
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Install LDoms in T2000 running Solaris 11.2 MuziKizuM Solaris 0 08-20-2015 02:16 PM
Booting Solaris LDOMS Control Domains aeroforce Solaris 6 08-02-2013 05:56 PM
Migrating Solaris 8, 9 to Guest Domains (LDOMs) bobby320 Solaris 1 12-10-2011 05:05 PM
Ldoms on T5220 with existing solaris 10 OS fugitive Solaris 1 06-24-2009 02:37 AM



All times are GMT -4. The time now is 03:12 AM.