Professional Documents
Culture Documents
How To Install and Configure Ldom or Oracle VM Server For SPARC
How To Install and Configure Ldom or Oracle VM Server For SPARC
How To Install and Configure Ldom or Oracle VM Server For SPARC
http://thegeekdiary.com/how-to-install-and-configure-ldoms-o...
SOLARIS 11
ZONES
LDOMS
VCS
LINUX
INTERVIEW QUESTIONS
13
Share
1
Tweet
2
Share
Virtualization has been a need of time over several past years as we have machines now even with 16 cores and
memory in TBs. A single machine is now capable of accommodating even more than 100 VMs at a time. Oracle
VM for SPARC formerly known as LDOMs has played a key role in oracles virtualization strategies and is
improving with every version. Before start configuring our first oracle VM for SPARC let us understand types of
ldoms, ldom services and virtual devices.
Purpose
Guest
No direct access to underlying hardware and does not provide virtual device or services to other
ldoms. Uses virtual device.
I/O
has direct access to underlying hardware in the server. It can be used in cases like oracle DB which
wants direct/raw access to the storage devices.
Service
Control
Service domain that also runs the ldoms manager software to control the configuration of
hypervisor. This ldom manager is responsible for mapping between physical and virtual devices.
1 of 7
Abbreviation
Name
Purpose
VLDC
VCC
Virtual console
concentrator
VSW
VDS
VCPU
virtual CPU
MAU
Mathematical arithmetic
unit
5/4/15, 4:59 PM
Memory
http://thegeekdiary.com/how-to-install-and-configure-ldoms-o...
VCONS
Virtual console
VNET
Virtual network
VSDEV
VDISK
Virtual disk
VOLUME
OPTIONS
DEVICE
primary-vds0
VCC
NAME
PORT-RANGE
primary-vcc0
5000-5100
NAME
MAC
primary-vsw0
02:04:4f:fb:9f:0d nxge0
VSW
NET-DEV
DEVICE
MODE
switch@0
prog,promisc
2 of 7
5/4/15, 4:59 PM
http://thegeekdiary.com/how-to-install-and-configure-ldoms-o...
By default all the VCPUs, Memory and MAUs are assigned to the primary domain which is the default domain
created after installing the OVM for SPARC software. Primary or control domain is used to configure all the guest
ldoms and provide necessary virtual services to them like vcc, vsw and vds. Logical domain manager is
responsible to create, delete, modify and control ldoms, thus make sure the ldmd service is running before
configuring the primary and guest domains. Use delayed reconfiguration in order to configure the primary ldom
without rebooting for previous changes to take effect.
primary# svcs -a | grep ldmd
online 14:23:34 svc:/ldoms/ldmd:default
primary# ldm set-mau 1 primary
primary# ldm set-vcpu 8 primary
primary# ldm start-reconf primary
(delayed reconfiguration)
STIME
FMRI
online
Oct_12
svc:/ldoms/vntsd:default
3 of 7
5/4/15, 4:59 PM
http://thegeekdiary.com/how-to-install-and-configure-ldoms-o...
Here we first need to specify the physical device that needs to be exported by vdsdev to the guest domain and
then we actually add the virtual disk thus created to the guest domain. Now use any one of the 3 methods
mentioned below.
1. Adding physical disks
primary# ldm add-vdsdev /dev/dsk/c2t1d0s2 vol1@primary-vds0
primary# ldm add-vdisk vdisk1 vol1@primary-vds0 ldom01
2. Adding file
primary# mkfile 10g /ldoms/ldom01_boot
primary# ldm add-vdsdev /ldoms/ldom01_boot vol1@primary-vds0
primary# ldm add-vdisk vdisk1 vol1@primary-vds0 ldom01
3. Adding a volume
primary# zfs create -V 5gb pool/vol01
primary# ldm add-vdsdev /dev/zvol/dsk/pool/vol01 vol1@primary-vds0
primary# ldm add-vdisk vdisk1 vol1@primary-vds0 ldom01
Setting variables
Setup the boot environment variable for the guest ldom.
primary# ldm set-var auto-boot?=true ldom01
primary# ldm set-var boot-device=vdisk1 ldom01
STATE
4 of 7
SP
4G
0.3% 8h 46m
2G
48% 1h 52m
5/4/15, 4:59 PM
http://thegeekdiary.com/how-to-install-and-configure-ldoms-o...
Flag definitions
Now you can see various flags in the ldm list command output. The falgs represent the current state of the
ldom.
column 1
column 2
column 3
s starting or stopping
- placeholder
n normal
t transition
d delayed reconfiguration
- placeholder
column 4
column 5
column 6
c control domain
- placeholder
5 of 7
5/4/15, 4:59 PM
http://thegeekdiary.com/how-to-install-and-configure-ldoms-o...
Related Posts
LDOMs (OVM for SPARC) Command line reference [cheat sheet]
How to create an I/O domain
How to save LDOM configuration and restore from xml file
How to reset LDOM configuration to factory default
LDOM live migration basics explained
LOAD COMMENTS
The connection
has timed out
The server at www.facebook.com is taking
too long to respond.
6 of 7
5/4/15, 4:59 PM
http://thegeekdiary.com/how-to-install-and-configure-ldoms-o...
Sandeep P
Follow
195 followers
@patilsandeep911
SUBSCRIBE
ARCHIVES
7 of 7
CONTACT US
COPYRIGHT
5/4/15, 4:59 PM