Saturday, 22 February 2014

LDOM (Logical Domain ) is called now as Oracle VM Server for SPARC which supports only on T Series SUN Servers. Its uses server virtualization to convert one physical server into many Virtual machines. Each virtual machine can be run a separate, independent OS and applications. Hardware (like Memory, CPU, NIC and SAN) devices can be shared with virtual Machines. In this post, we are going to discuss about basic of LDOM and Installing methods.
List of Topics :
Basic Of LDOM :
  • Role Of Logical Domains
  • LDOM Components (Hypervisor, LDM,)
Roles of Logical Domains :


 Control or Primary Domain Service DomainGuest or Logical domainI/O Domain
It Controls the Oracle VM and also called as Primary DomainService domain Provides virtual device services to Guest DomainGuest Domain uses only virual services I/O Domain where we are getting phyiscal I/O device access directly
Used to configure server resources and guest domains and Provides virtual console servicesIt provides Virtual Disk ServicesGuest Domain where our OS is installed I/O device which connects PCI bus, such as local network interface, disk drives and PCI adapters.
Logical Domain Manager installed only on Control DomainIt provides Virtual Console ServicesGet the services from service domain in order to run application and user services
Control Domain normally act as Service DomainIt provides Virtual network SwitchesGuest Domain can be a I/O Domain

Oracle VM Server for SPARC Components:
SPARC Hypervisor :
SPARC Hypervisor come up with sun4v architecture which runs Hyper-Privileged execution mode which provides virtualized machine behavior where our OS can be installed. T-series servers such as UltraSPARC T1, the T2, T2 Plus, the SPARC T3 , T4 and T5 which is having Hypervisor technologies.

Logical Domain Manager (LDM) :
Logical Domain Manager (LDM) is agent where is only running on control domain, LDM is used to create and managing the Logical domain. Its communicating between hypervisor and Logical Domain (LDOM) for creation and removal of resources of LDOM. currently available of LDM version is 2.1 

Key Points:
Support DomainsLDM supports VersionArchitectureFew of Server Models
Up to 32 domainsLogical Domains Manager 1.3UltraSPARC T1Sun Fire T1000 and T2000 servers and etc.,
Up to 64 domainsLogical Domains Manager 2.1UltraSPARC T2 and SPARC T4-1SPARC Enterprise T5120 and T5220 servers and etc.,
Up to 128 domainsLogical Domains Manager 2.1UltraSPARC T3SPARC T3-1 servers (1 socket) and etc.,
Prerequisites of LDM Installation:
Before installing LDM Agents, we should have recommended packages SUNWldomr.v, SUNWldomu.v
[root@unixrock /]# pkginfo -l|egrep -i "SUNWldomr.v|SUNWldomu.v"
[root@unixrock /]# 
Right!! we don't have the packages on our system, Let we start install the recommended packages.
[root@unixrock /]# ls -l |grep -i *ldom*
drwxrwxrwx   5 root     root         512 Feb 16 18:38 SUNWldomr.v
drwxrwxrwx   5 root     root         512 Feb 16 18:38 SUNWldomu.v
[root@unixrock /]#
[root@unixrock /]#
[root@unixrock /]# pkgadd -d . SUNWldom*

Processing package instance  from </>

Solaris Logical Domains (Root)(sparc.sun4v) 11.10.0,REV=2006.10.04.00.26
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.

This appears to be an attempt to install the same architecture and
version of a package which is already installed.  This installation
will attempt to overwrite this package.

Using </> as the package base directory.
## Processing package information.
## Processing system information.
   42 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of  [y,n,?] y

Installing Solaris Logical Domains (Root) as 

## Executing preinstall script.
## Installing part 1 of 1.
[ verifying class  ]
## Executing postinstall script.

Installation of  was successful.

Processing package instance  from </>

Solaris Logical Domains (Usr)(sparc.sun4v) 11.10.0,REV=2006.08.08.12.13
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.

This appears to be an attempt to install the same architecture and
version of a package which is already installed.  This installation
will attempt to overwrite this package.

Using </> as the package base directory.
## Processing package information.
## Processing system information.
   11 package pathnames are already properly installed.
## Verifying package dependencies.
## Verifying disk space requirements.
## Checking for conflicts with packages already installed.
## Checking for setuid/setgid programs.

This package contains scripts which will be executed with super-user
permission during the process of installing this package.

Do you want to continue with the installation of  [y,n,?] y

Installing Solaris Logical Domains (Usr) as 

## Installing part 1 of 1.

Installation of  was successful.
[root@unixrock /]#
Perfect !!! Now are ready to install Logical Domain Manager (LDM).
[root@unixrock /]# uname -a
SunOS unixrock 5.10 Generic_147440-01 sun4v sparc SUNW,Sun-Fire-T200
[root@unixrock /]#
[root@unixrock /]# unzip -q V24253-01-Oracle_LDOM_Manager_Sparc_64bit.zip
[root@unixrock /]# 
[root@unixrock /]# cd OVM_Server_SPARC-2_0/
[root@unixrock /]#  ls -ltr
total 12
-r--r--r--   1 root     root        3368 Sep 17  2010 README
drwxr-xr-x   2 root     root         512 Sep 18  2010 Install
drwxr-xr-x   7 root     root         512 Dec 16  2010 Product
[root@unixrock /]# pwd
[root@unixrock /]#
/OVM_Server_SPARC-2_0
[root@unixrock /]#
[root@unixrock /]# ls -ltr
total 12
-r--r--r--   1 root     root        3368 Sep 17  2010 README
drwxr-xr-x   7 root     root         512 Dec 16  2010 Product
drwxr-xr-x   2 root     root         512 Feb 17 10:29 Install
[root@unixrock /]# cd Install/
[root@unixrock /]# ls -l
total 56
-rwxr-xr-x   1 root     root       28471 Sep 18  2010 install-ldm
[root@unixrock /]# ./install-ldm

Welcome to the Oracle VM Server for SPARC installer.

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.

If the Solaris Security Toolkit (SST) is installed, you will be prompted to
optionally harden your control domain.

Installing LDoms packages.
pkgadd -n -d "/OVM_Server_SPARC-2_0/Product" -a pkg_admin SUNWldm.v
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
Feb 17 10:31:37 sol10-3 sendmail[2784]: [ID 702911 mail.alert] unable to qualify my own domain name (sol10-3) -- using short name

Installation of  was successful.
pkgadd -n -d "/OVM_Server_SPARC-2_0/Product" -a pkg_admin SUNWldmp2v
Copyright (c) 2010, Oracle and/or its affiliates. All rights reserved.
Feb 17 10:32:38 sol10-3 sendmail[2833]: [ID 702911 mail.alert] unable to qualify my own domain name (sol10-3) -- using short name

Installation of  was successful.

Oracle VM Server for SPARC Configuration

Once installed, you may configure your system for a basic LDoms
deployment.  If you select "y" for the following question, the Oracle
VM Server for SPARC Configuration Assistant (tty) will be launched
following a successful installation of the packages.

(You may launch the Configuration Assistant at a later time with the
command:  /usr/sbin/ldmconfig, or use the GUI Configuration Assistant
which is bundled in the Oracle VM Server for SPARC zip file - see
README.GUI for more details)

Select an option for configuration:

y) Yes, launch the Configuration Assistant after install
n) No thanks, I will configure the system manually later

Enter y or n [y]: n

Verifying that all packages are fully installed.  OK.
You have new mail in /var/mail//root
[root@unixrock /]#
Yes....We have successfully installed Logical Domain Manager. ldmd (Logical domain manager daemon) is start automatically when LDM package is installed. when ldmd is enable we can create, modify, control the logical domain. 
Thanks for reading this post, Leave your valuable comments, if you have any queries, I will get back to you at earliest.