Changing T4-4 Ldom configuration into small Solaris 11 control domain/large Solaris 10 general purpose domain.

I have a T4-4 running LDOMs 2.2, the control domain is running Solaris 11 SRU 8.5, the other domain Solaris 10 update 10. I want to configure it so that the Solaris 10 LDOM has the lion’s share of the resource.

Firstly, stop the Solaris 10 ldom and unbind it

root@sscb03-app1:~# ldm stop s10u10-EIS-18JUL12-1
root@sscb03-app1:~# ldm unbind s10u10-EIS-18JUL12-1
root@sscb03-app1:~# ldm ls
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- UART 128 523776M 1.1% 1d 4h 43m
s10u10-EIS-18JUL12-1 inactive ------ 128 512G

Create a backup spconfig in case it all goes wrong!

root@sscb03-app1:~# ldm add-config preconfig

Remove the resources from the Solaris 10 LDOM first so we have a clear setup to allow us to change the primary ldom.

root@sscb03-app1:~# ldm set-memory 0 s10u10-EIS-18JUL12-1
Warning: Resulting memory size is zero.
root@sscb03-app1:~# ldm set-core cid= s10u10-EIS-18JUL12-1
Warning: setting required number of cores to zero

Reconfigure the primary to 1 core/8GB

root@sscb03-app1:~# ldm set-domain max-cores=unlimited primary
------------------------------------------------------------------------------
Notice: The primary domain is in the process of a delayed reconfiguration.
Any changes made to the primary domain will only take effect after it reboots.
------------------------------------------------------------------------------
root@sscb03-app1:~# ldm set-domain max-cores=1 primary
------------------------------------------------------------------------------
Notice: The primary domain is in the process of a delayed reconfiguration.
Any changes made to the primary domain will only take effect after it reboots.
------------------------------------------------------------------------------
------------------------------------------------------------------------------
Notice: The primary domain is in the process of a delayed reconfiguration.
Any changes made to the primary domain will only take effect after it reboots.
------------------------------------------------------------------------------
root@sscb03-app1:~# ldm set-memory mblock=512M:7680M primary
------------------------------------------------------------------------------
Notice: The primary domain is in the process of a delayed reconfiguration.
Any changes made to the primary domain will only take effect after it reboots.
------------------------------------------------------------------------------

Reboot now – once the reboot has completed we can make changes to the Solaris 10 ldom

After reboot our primary domain should look very small

root@sscb03-app1:~# ldm ls
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- UART 8 7680M 11% 5m
s10u10-EIS-18JUL12-1 inactive ------

Add resources to our Solaris 10 domain, check they’re there, and bind and start

root@sscb03-app1:~# ldm set-domain max-cores=31 s10u10-EIS-18JUL12-1
root@sscb03-app1:~# ldm set-core cid=1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 s10u10-EIS-18JUL12-1
root@sscb03-app1:~# ldm set-memory mblock=8G:504G,512G:512G s10u10-EIS-18JUL12-1
root@sscb03-app1:~# ldm ls
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- UART 8 7680M 11% 6m
s10u10-EIS-18JUL12-1 inactive ------ 248 1016G
root@sscb03-app1:~# ldm bind s10u10-EIS-18JUL12-1
root@sscb03-app1:~# ldm start s10u10-EIS-18JUL12-1
LDom s10u10-EIS-18JUL12-1 started


Login to the Solaris 10 ldom, check all ok, once you’re happy,create a new spconfig with our new ldom layout, and delete our ‘rollback’ one

root@sscb03-app1:~# ldm add-config layout0
root@sscb03-app1:~# ldm remove-config preconfig

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s