With the last release of the Logical Domains Manager 1.2 software, we can easyly create LDoms with the Logical Domains Configuration Assistant (click here for the oficial documentation from docs.sun.com), running the ldmconfig command.
Be careful, it only works with systems where no existing logical domains configurations are present. It means that you must run it just after installing the Logical Domains Manager 1.2 software.
Basically, the assistant will configure the number of LDoms you want on your system, and automatically create the needed services.
So, let’s try it.
My configuration is :
- a T1000 with :
- Solaris 05/09 release,
- 24 vpcus (8 cores),
- 8 Gb RAM.
So after installing the Logical Domains Manager 1.2 software and before running the assistant, we are in the factory-default state, with all resources assigned to the primary domain :
The physical processor has 24 virtual processors (0-23)
UltraSPARC-T1 (chipid 0, clock 1000 MHz)
bash-3.00# prtconf | grep Mem
Memory size: 8064 Megabytes
bash-3.00#
bash-3.00# ldm ls
——————————————————————————
Notice: the LDom Manager is running in configuration mode. Configuration and
resource information is displayed for the configuration under construction;
not the current active configuration. The configuration being constructed
will only take effect after it is downloaded to the system controller and
the host is reset.
——————————————————————————
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-c– SP 24 8064M 0.1% 18m
bash-3.00#
bash-3.00# ldm ls-services
——————————————————————————
Notice: the LDom Manager is running in configuration mode. Configuration and
resource information is displayed for the configuration under construction;
not the current active configuration. The configuration being constructed
will only take effect after it is downloaded to the system controller and
the host is reset.
——————————————————————————
bash-3.00#
bash-3.00# ldm ls-config
factory-default [current]
bash-3.00#
Here is a video that will show the Logical Domains Configuration Assistant running :
And that’s it !
We have now 4 LDoms configured, with all the services needed as you can see :
bash-3.00# ldm ls
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 4 2G 0.4% 4h 21m
ldg0 active -t—- 5000 4 1496M 25% 4h 20m
ldg1 active -t—- 5001 4 1496M 25% 4h 20m
ldg2 active -t—- 5002 4 1496M 25% 4h 20m
ldg3 active -t—- 5003 4 1496M 25% 4h 20m
bash-3.00#
bash-3.00# ldm ls -l
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 4 2G 0.2% 4h 21m
SOFTSTATE
Solaris running
MAC
00:14:4f:2c:df:1e
HOSTID
0x842cdf1e
VCPU
VID PID UTIL STRAND
0 0 1.4% 100%
1 1 0.3% 100%
2 2 0.5% 100%
3 3 0.2% 100%
MEMORY
RA PA SIZE
0×8000000 0×8000000 2G
IO
DEVICE PSEUDONYM OPTIONS
pci@780 bus_a
pci@7c0 bus_b
VCC
NAME PORT-RANGE
primary-vcc0 5000-5100
VSW
NAME MAC NET-DEV DEVICE DEFAULT-VLAN-ID PVID VID MTU MODE
primary-vsw0 00:14:4f:f8:61:33 bge0 switch@0 1 1 1500
VDS
NAME VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 vol0 /ldoms/ldoms/ldoms/disks/ldg0.vdisk
vol1 /ldoms/ldoms/ldoms/disks/ldg1.vdisk
vol2 /ldoms/ldoms/ldoms/disks/ldg2.vdisk
vol3 /ldoms/ldoms/ldoms/disks/ldg3.vdisk
VCONS
NAME SERVICE PORT
SP
——————————————————————————
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
ldg0 active -t—- 5000 4 1496M 25% 4h 20m
SOFTSTATE
OpenBoot Primary Boot Loader
MAC
00:14:4f:fa:c0:8e
HOSTID
0x84fac08e
VCPU
VID PID UTIL STRAND
0 4 100% 100%
1 5 0.0% 100%
2 6 0.0% 100%
3 7 0.0% 100%
MEMORY
RA PA SIZE
0×8000000 0×88000000 1496M
VARIABLES
auto-boot\?=true
boot-device=vdisk0
NETWORK
NAME SERVICE DEVICE MAC MODE PVID VID MTU
vnet0 primary-vsw0@primary network@0 00:14:4f:fa:dc:1b 1 1500
DISK
NAME VOLUME TOUT DEVICE SERVER MPGROUP
vdisk0 vol0@primary-vds0 disk@0 primary
VCONS
NAME SERVICE PORT
ldg0 primary-vcc0@primary 5000
——————————————————————————
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
ldg1 active -t—- 5001 4 1496M 25% 4h 20m
(… Output truncated …)
bash-3.00# ls -lh /ldoms/ldoms/ldoms/disks/
total 1076
-rw——T 1 root root 8.0G Nov 5 14:48 ldg0.vdisk
-rw——T 1 root root 8.0G Nov 5 14:48 ldg1.vdisk
-rw——T 1 root root 8.0G Nov 5 14:49 ldg2.vdisk
-rw——T 1 root root 8.0G Nov 5 14:49 ldg3.vdisk
bash-3.00#
Last step would be to install the LDoms…
NOTE : there is also a GUI as an alternative for the CLI ldmconfig. It is a jar file which comes with the LDom software 1.2, called Configurator.jar.
It requires Java 1.6 and can be run on a remote machine. Just indicate the IP of the Control Domain and the root password, the GUI will then do the rest for you, like ldmconfig.
The GUI looks like that :
Hope it can help you to rapidly deploy LDoms…
Arnaud
Sphere: Related ContentNo related posts.
Related posts brought to you by Yet Another Related Posts Plugin.



Core Networks homepage
Opensolaris