Académique Documents
Professionnel Documents
Culture Documents
LDOM
SUN LDOMS aka oracle VM for SPARC is a complete virtual machines that runs
an independent operating systems and contains its own virtual CPUs,Storage,Memory,
Cryptographic and console.Unlike Solaris zones,LDOMS can run its own operating
system with different kernel patch levels. You can also install Solaris 8,Solaris 9 ,Solaris
10 and Solaris 11 on LDOMS. LDOM also provides the OBP for each logical domains but
we wont get that in zones. LDOM also allow to move the resources across the logical
domains or virtual hosts exclusively. LDOM also allows you to configure zones under
that.
Prerequisite:
Oracle/Sun T-series Server (T5140 Firmware:7.3.3 )
Control Domain is the place where you are going to install the LDOM software and
managing the complete logical domain environment.It used to configure the
resources and guest domains
Service domain provides the various virtual services to guest domains.Virtaul services
can be virtual disks,network switches or virtual consoles.Mostly we will be
configuring the control domain as service domain too.
I/O Domains have a direct ownership of PCI Bus.You need to directly map the I/O
devices to guest domain to improve the application performance in some cases.
There is an another domain called root domain and this domain has direct
ownership of PCI devcies. So it also called I/O domain.
Guest domains doesnt performing any of the above mentioned roles.It jsut runs the
operating system instances.
Control domain and service domain can be run together.But the user application
should not be installed on this domain in a order to protect domain stability and
performance.
LDOM
Basic concept
Installation of LDOM software:
Download the LDOM packages from the oracle support website. For your
information ,you cant download without having the oracle support login credentials.
Once you have downloaded the packages ,just copy the packages to the Solaris host
which you have already installed on T- series server.
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
## Installing part 1 of 1.
[ verifying class ]
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
## Installing part 1 of 1.
-bash-3.2#
3.Install the LDOM software . Unzip the package and continue the installation like
below
-bash-3.2# cd OVM_Server_SPARC-2_0
-bash-3.2# ls -lrt
total 12
-bash-3.2# cd Install/
-bash-3.2# ls -lrt
total 56
-bash-3.2# ./install-ldm
You are about to install the LDoms Manager package, SUNWldm, that will enable
you to create, destroy and control other domains on your system. You will
also be given the option of running the Oracle VM Server for SPARC Configuration
Assistant (ldmconfig) to setup the control domain and create guest domains.
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
Feb 17 10:37:54 sol10-10 sendmail[2631]: [ID 702911 mail.alert] unable to qualify my own
domain name (sol10-10) -- using short name
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
Feb 17 10:38:54 sol10-10 sendmail[2705]: [ID 702911 mail.alert] unable to qualify my own
domain name (sol10-10) -- using short name
Once installed, you may configure your system for a basic LDoms
deployment. If you select "y" for the following question, the Oracle
(You may launch the Configuration Assistant at a later time with the
Enter y or n [y]: n
-bash-3.2#
2.Create a new virtual disk service.This service is responsible to provide the virtual
disks to guest domains.
VDS
NAME LDOM VOLUME OPTIONS MPGROUP DEVICE
primary-vds0 primary
-bash-3.2#
3.Create a new virtual switch. By creating this , we can create N-number of VNIC and
share to the guest domains.
-bash-3.2# ifconfig -a
ether 0:21:98:57:cd:16
-bash-3.2#
VSW
VDS
primary-vds0 primary
-bash-3.2#
Here i have configured virtual switch using nxge1 . You can also use nxge0 configure
the virtual swtich but you need to remove the IP from nxge0 and need to configure the
IP over virtual switch.
-bash-3.2# ifconfig -a
ether 0:14:4f:98:83:f3
-bash-3.2#
VCC
VDS
primary-vds0 primary
-bash-3.2#
VSW
Now you have successfully configured the default services or service domain.
(Creating the spconfig is must after making any changes on the service.Otherwise you
will loose the changes after the system power cycle.)
1.List the logical domain devices using ldm list-device -a command.You can see all the
resource has been allocated to the primary domain.
CORE
ID %FREE CPUSET
0 0 (0, 1, 2, 3, 4, 5, 6, 7)
1 0 (8, 9, 10, 11, 12, 13, 14, 15)
VCPU
PID %FREE PM
0 0 no
1 0 no
2 0 no
3 0 no
4 0 no
5 0 no
6 0 no
7 0 no
8 0 no
9 0 no
10 0 no
11 0 no
12 0 no
13 0 no
14 0 no
15 0 no
16 0 no
17 0 no
18 0 no
19 0 no
20 0 no
21 0 no
22 0 no
23 0 no
24 0 no
25 0 no
26 0 no
27 0 no
28 0 no
29 0 no
30 0 no
31 0 no
64 0 no
65 0 no
66 0 no
67 0 no
68 0 no
69 0 no
70 0 no
71 0 no
72 0 no
73 0 no
74 0 no
75 0 no
76 0 no
77 0 no
78 0 no
79 0 no
80 0 no
81 0 no
82 0 no
83 0 no
84 0 no
85 0 no
86 0 no
87 0 no
88 0 no
89 0 no
90 0 no
91 0 no
92 0 no
93 0 no
94 0 no
95 0 no
MAU
ID CPUSET BOUND
0 (0, 1, 2, 3, 4, 5, 6, 7) primary
MEMORY
PA SIZE BOUND
0x0 512K _sys_
IO
bash-3.2#
2.List what are the resources assigned to the primary domain or control domains.
UUID
f063b0a8-8fb0-4e61-cd5b-91826d2c1550
MAC
00:21:28:57:cd:16
HOSTID
0x8557cd16
CONTROL
failure-policy=ignore
DEPENDENCY
master=
CORE
CID CPUSET
0 (0, 1, 2, 3, 4, 5, 6, 7)
0 0 0 1.5% 100%
1 1 0 0.0% 100%
2 2 0 0.0% 100%
3 3 0 0.0% 100%
4 4 0 0.0% 100%
5 5 0 0.0% 100%
6 6 0 0.0% 100%
7 7 0 0.0% 100%
8 8 1 0.0% 100%
9 9 1 0.1% 100%
10 10 1 0.0% 100%
11 11 1 0.1% 100%
12 12 1 0.1% 100%
13 13 1 3.0% 100%
14 14 1 0.0% 100%
15 15 1 0.1% 100%
16 16 2 0.1% 100%
17 17 2 0.2% 100%
18 18 2 0.1% 100%
19 19 2 0.0% 100%
20 20 2 0.1% 100%
21 21 2 0.0% 100%
22 22 2 0.1% 100%
23 23 2 0.0% 100%
24 24 3 0.0% 100%
25 25 3 0.0% 100%
26 26 3 0.0% 100%
27 27 3 0.0% 100%
28 28 3 0.2% 100%
29 29 3 0.1% 100%
30 30 3 0.1% 100%
31 31 3 0.0% 100%
64 64 4 0.0% 100%
65 65 4 0.0% 100%
66 66 4 0.0% 100%
67 67 4 0.0% 100%
68 68 4 0.0% 100%
69 69 4 0.0% 100%
70 70 4 0.0% 100%
71 71 4 0.0% 100%
72 72 5 0.0% 100%
73 73 5 0.0% 100%
74 74 5 0.0% 100%
75 75 5 0.0% 100%
76 76 5 0.0% 100%
77 77 5 0.0% 100%
78 78 5 0.0% 100%
79 79 5 0.0% 100%
80 80 6 0.0% 100%
81 81 6 0.0% 100%
82 82 6 0.0% 100%
83 83 6 0.0% 100%
84 84 6 0.0% 100%
85 85 6 0.0% 100%
86 86 6 0.0% 100%
87 87 6 0.0% 100%
88 88 7 0.0% 100%
89 89 7 0.0% 100%
90 90 7 0.0% 100%
91 91 7 0.0% 100%
92 92 7 0.0% 100%
93 93 7 0.0% 100%
94 94 7 0.0% 100%
95 95 7 0.0% 100%
MAU
ID CPUSET
0 (0, 1, 2, 3, 4, 5, 6, 7)
MEMORY
RA PA SIZE
IO
pci@400 pci_0
pci@500 pci_1
VCONS
NAME SERVICE PORT
SP
bash-3.2#
3.Set the resource control for the control domain aka primary domain.So the resource
will be freed up for the logical domains / Guest domains.
CORE
ID %FREE CPUSET
0 0 (0, 1, 2, 3, 4, 5, 6, 7)
1 100 (8, 9, 10, 11, 12, 13, 14, 15) ----------->(1-7) Free CPU cores
VCPU
PID %FREE PM
1 0 no
2 0 no
3 0 no
4 0 no
5 0 no
6 0 no
7 0 no
8 100 ---
9 100 ---
10 100 ---
11 100 ---
12 100 ---
13 100 ---
14 100 ---
15 100 ---
16 100 ---
17 100 ---
18 100 ---
19 100 ---
20 100 ---
21 100 ---
22 100 ---
23 100 ---
24 100 ---
25 100 ---
26 100 ---
27 100 ---
28 100 ---
29 100 ---
30 100 ---
31 100 ---
64 100 ---
65 100 ---
66 100 ---
67 100 ---
68 100 ---
69 100 ---
70 100 ---
71 100 ---
72 100 ---
73 100 ---
74 100 ---
75 100 ---
76 100 ---
77 100 ---
78 100 ---
79 100 ---
80 100 ---
81 100 ---
82 100 ---
83 100 ---
84 100 ---
85 100 ---
86 100 ---
87 100 ---
88 100 ---
89 100 ---
90 100 ---
91 100 ---
92 100 ---
93 100 ---
94 100 ---
95 100 ---
MAU
ID CPUSET BOUND
0 (0, 1, 2, 3, 4, 5, 6, 7) primary
MEMORY
PA SIZE BOUND
IO
bash-3.2#
unixarena [current]
bash-3.2#
In the above command output, you can see that currents settings are saved in
unixarena and this settings will come up after the system reboot and power cycle.
For an example , if i do any small changes on ldom ,it will not update in the spconfig
file.
factory-default
bash-3.2#
Here we just increased the number vpcus to 12 . The previous number of vpcu was 8.
Here sp-config file unixarena will be activated on next power cycle. Which mean you
will loose the cpu setting you just done. In a order to save the configuration, just re-
create the sp-config like below.
factory-default
unixarena_new [current]
bash-3.2#
System PROM:
-bash-3.2#
Hope this article is first step to learn LDOM for Solaris beginners.In this article we have
seen the basic concepts of oracle VM for SPARC (LDOM), packages
installation,configuration the service domain,configuring the control domain or primary
domain and saving the sp-configuration.
I will try to complete the tutorial by adding another 6 to 8 articles. Hope you will like it .
Please share it in social media to reach maximum number of people. Thank you for
visiting UnixArena.