Linux menu

Saturday, September 20, 2014

Solaris 11 How to Create I/O Domain - LDOM Part 4

on 10:51

In earlier post we gone through the step by step configuration methods of Control or Primary Domain, in this article we are going to discuss about the configuration of Service Domain. As we discussed, earlier Control domain serve as service domain by adding the services. Let we start

List of Topics :
The Control Domain serving as Service domain by adding the below services.
  • Adding Virtual Disk Server.
  • Adding Virtual Switch Service.
    • Make the Virtual Switch as a Primary interface.
  • Adding Virtual Console Concentrator Service.
    • Enable the vntsd (Virtual Network Terminal Server Daemon ).























Adding Virtual Disk Server
We have to add virtual disk server, in order to configure the Virtual disk to the logical domain.In the below example, we are creating vdiskserver or vds (primary-vds0) is being added to the control domain (primary)
[root@unixrock /]# ldm add-vdiskserver primary-vds0 primary
------------------------------------------------------------------------------
Notice: the LDom Manager is running in configuration mode. Any configuration
changes made will only take effect after the machine configuration is
downloaded to the system controller and the host is reset.
------------------------------------------------------------------------------
[root@unixrock /]#
Adding Virtual Switch Service
vswitch service which enable networking between virtual network device in the domain.In the below example, Virtual switch services (primary-vsw0) connected to the NIC card e1000g0 is being added to the primary domain. 
[root@unixrock /]# ldm add-vswitch net-dev=e1000g0 primary-vsw0 primary
------------------------------------------------------------------------------
Notice: the LDom Manager is running in configuration mode. Any configuration
changes made will only take effect after the machine configuration is
downloaded to the system controller and the host is reset.
------------------------------------------------------------------------------
[root@unixrock /]# 
Adding Virtual Console Concentrator
The Virtual Console concentrator service provides the console service to logical domain. we must enable the Virtual Network Terminal Server (vntsd) daemon, In order to provide the service. 
[root@unixrock /]#  ldm add-vconscon port-range=5000-5100 primary-vconsole primary
------------------------------------------------------------------------------
Notice: the LDom Manager is running in configuration mode. Any configuration
changes made will only take effect after the machine configuration is
downloaded to the system controller and the host is reset.
------------------------------------------------------------------------------
[root@unixrock /]# 
Verifying Virtual Network Terminal Server (vntsd) daemon status
[root@unixrock /]# svcs -a|grep -i vntsd
online          8:11:13 svc:/ldoms/vntsd:default
[root@unixrock /]# 
Verifying the services which we have created by executing below commands
[root@unixrock /]# ldm list-services primary
------------------------------------------------------------------------------
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.
------------------------------------------------------------------------------
VCC
    NAME             LDOM             PORT-RANGE
    primary-vconsole primary          5000-5100

VSW
    NAME   LDOM   MAC  NET-DEV   ID   DEVICE  LINKPROP DEFAULT-VLAN-ID PVID VID  MTU   MODE
    primary-vsw0 primary   00:14:4f:f8:f3:f4 e1000g0   0   switch@0         1    1    1500

VDS
    NAME             LDOM             VOLUME         OPTIONS          MPGROUP        DEVICE
    primary-vds0   primary

[root@unixrock /]#
Enabling Networking between the Control/Service Domain and other Domain. Recommend to do it in console, as we are changing the source IP interface configuration, as our Vswitch (vsw0) should be Primary interface.
[root@unixrock /]# dladm show-dev
vsw0            link: up        speed: 1000  Mbps       duplex: full
e1000g0         link: up        speed: 1000  Mbps       duplex: full
e1000g1         link: unknown   speed: 0     Mbps       duplex: half
e1000g2         link: unknown   speed: 0     Mbps       duplex: half
e1000g3         link: unknown   speed: 0     Mbps       duplex: half
[root@unixrock /]# ifconfig -a
lo0: flags=2001000849 mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
e1000g0: flags=1000843 mtu 1500 index 2
        inet 11.0.0.203 netmask ff000000 broadcast 11.255.255.255
        ether 0:14:4f:82:5c:ee
[root@unixrock /]#
[root@unixrock /]# ifconfig e1000g0 down
[root@unixrock /]# ifconfig e1000g0 unplumb
[root@unixrock /]# ifconfig vsw0 plumb up
[root@unixrock /]# mv /etc/hostname.e1000g0 /etc/hostname.vsw0
[root@unixrock /]#
As of now we have configured the Control or Primary Domain as a Service Domain. Still these configuration settings are not yet saved, we must save the configuration in system controller and reboot the OS, in order to take effect the new configuration. Below example, we just deleted the old spconfig file and saved the configuration as config_intial by add-spconfig options.
[root@unixrock /]# ldm list-spconfig
factory-default
tempprofile [current]
[root@unixrock /]# ldm remove-spconfig tempprofile
[root@unixrock /]# ldm list-spconfig
factory-default [next poweron]
[root@unixrock /]# ldm add-spconfig config_intial
[root@unixrock /]# ldm list-spconfig
factory-default
config_intial [current]
[root@unixrock /]#
[root@unixrock /]# 
Rebooting the OS, In order to take effect the new configuration
[root@unixrock /]# shutdown -i6 -g0 -y
[root@unixrock /]#
Perfect !!!!!! Now we have successfully configured the Control or Primary Domain as a Service Domain and we are ready to create the Logical Domain.

No comments: