Sie sind auf Seite 1von 27

Unix-Arena

 How to Configure DRS cluster on ESXi ?


 Oracle VM SPARC – LDOM configuration Backup and Restore
 How to Remove Logical Domains and Services ? Oracle VM for SPARC
 How to Add the Same ISO image file in Multiple LDOMS ?

How to Configure DRS cluster on ESXi ?


Posted: 20 Feb 2014 11:36 AM PST

Configuring the DRS cluster is simple task in VMware if you have already worked on legacy clusters like
veritas cluster.In a order to obtain the cluster-level resource management ,you need to create the DRS
cluster. DRS cluster is nothing but a bunch of ESX/ESXi Psychical servers.Once you have added the ESXi
or ESX nodes to the cluster, those node’s resource will be part of cluster resources. Using the DRS cluster
you can easily mange the load balancing across the ESXI/ESX servers and power management. You can
also configure the affinity rules to control the virtual machines placements across the datacenter.

Prerequisites:

 Two VMWare ESXi 5.5 Nodes

 Vcenter Server

 Vcenter web-client

 Pre-configured Datastore

1.Login to VMware vCenter server using web-client.Here i have already created the blank datacenter
without ESXI hosts.
Webclient – Home Page

2.Right client on the datacenter and Click on “New Cluster”

New DRS cluster

3.Enter the cluster name and Click “Turn On” DRS. Here i have selected “Fully Automated”
Enter the Cluster Name

4.Now its time to add the host to the cluster. Click on the “Add host” link.
Adding New host to DRS cluster

5.Enter the ESXi first node details .

ESXI host Details


6.Enter the root credential of ESXi

Enter the valid Credentials

7.Here is the node summary.

Node Summary

8.Assign the valid license keys to ESXi.


Assigning the License

9.The next will be to provide the resource pool information. If you want to keep it in under root resource ,
you select the below option and continue.

Selecting the Resource pool

10.Review the summary of the cluster and click finish to create new cluster.
DRS Cluster summary

11.Now you can see new cluster has been created and both the cluster nodes are showing just under the
cluster name.

Cluster view

That’s it . You have successfully created the DRS Cluster using two physical servers. The new virtual
machine can be created on either of the cluster nodes. According to affinity rule, virtual machine will
failover from one node to another.

Thank you for visiting UnixArena.

The post How to Configure DRS cluster on ESXi ? appeared first on UnixArena.

Oracle VM SPARC – LDOM configuration Backup and Restore


Posted: 20 Feb 2014 11:20 AM PST

Oracle VM for SPARC configuration can be backed up in XML file and it can be restored it whenever
required.This configuration backup will be very useful for future rebuilding. It also provides the option to
take the backup of particular domain and that can be restored using ldm add-domain command.In this
article we will how take the individual domain backup,how to take the complete ldom configuration
backup and restore methods.

1. Login to control Domain and list the current configuration file.

-bash-3.2# ldm list-spconfig


factory-default
config_new [current]
-bash-3.2#

2.To take the complete LDOM configuration backup,use below command.

# ldm list-constraints -x >config.xml

3.You can also take the configuration backup for specific LDOM,

# ldm list-constraints -x ldom_name > ldom_name.xml

How to restore the system to factory default ?

1. Login to the control domain console and remove the spconfig profile.

bash-3.2# ldm ls-spconfig


factory-default
config_new [current]
bash-3.2# ldm remove-spconfig config_new
bash-3.2# ldm ls-spconfig
factory-default [next poweron]
bash-3.2#

2.Power cycle the server to take the changes effect.

bash-3.2# init 5
bash-3.2# svc.startd: The system is coming down. Please wait.
svc.startd: 101 system services are now being stopped.
Feb 18 10:00:49 sol10-11 syslogd: going down on signal 15
svc.startd: The system is down.
syncing file systems... done

Serial console stopped.

-> show /SYS


Properties:
type = Host System
ipmi_name = /SYS
keyswitch_state = Normal
product_name = T5140
product_part_number = 4613802-42
product_serial_number = FML1015013
product_manufacturer = SUN MICROSYSTEMS
fault_state = Faulted
power_state = Off
-> start /SYS
Are you sure you want to start /SYS (y/n)? y
Starting /SYS

->
-> start /SP/console
Are you sure you want to start /SP/console (y/n)? y

Serial console started. To stop, type #.

Done
0:0:0>Master CPU Tests Basic....Done
0:0:0>Init MMU.....
0:0:0>L2 Tests....Done
0:0:0>Extended CPU Tests....Done
0:0:0>Scrub Memory....Done
0:0:0>Functional CPU Tests....Done
sol10-11 console login:

3. Login to the system and see whether factory default settings has been restored or not .

sol10-11 console login: root


Password:
Feb 18 10:10:58 sol10-11 login: ROOT LOGIN /dev/console
Last login: Tue Feb 18 01:19:27 on console
Oracle Corporation SunOS 5.10 Generic Patch January 2005
You have new mail.
-bash-3.2#

-bash-3.2# ldm list-spconfig


factory-default [current]
-bash-3.2#

Restoring the sp-config :

1.Once the system has restored to the factory default,then you can restore the system backup using the
XML files which we have created. Login to the control domain and restore it.

# ldm init-system -i config.xml


# ldm add-spconfig unixarencfg1
# ldm list-spconfig
factory-default
unixarenacfg1 (current)

2.To restore the specific ldom/primary domain configuration

# ldm init-system -i ldom_name.xml


# ldm add-spconfig unixarencfg2
# ldm list-spconfig
factory-default
unixarenacfg1
unixarenacfg2 (current)

3.To restore only the virtual service,

# ldm init-system -s -i filename.xml


-bash-3.2# ldm list-spconfig
factory-default
unixarenacfg1
unixarenacfg2[active on Reboot]
-bash-3.2# ldm add-spconfig unixarencfg3
-bash-3.2# ldm list-spconfig
factory-default
unixarenacfg1
unixarenacfg2
unixarenacfg2 (current)

The old configuration copies can be removed using “ldm remove-spconfig profile_name” . If you make
any small changes on LDOM configuration, you must create a new profile to save it.Otherwise you may
loose the new changes after the system power cycle.

Thank you for visiting UnixArena.

The post Oracle VM SPARC – LDOM configuration Backup and Restore appeared first on
UnixArena.

How to Remove Logical Domains and Services ? Oracle VM for SPARC


Posted: 20 Feb 2014 07:18 AM PST

Destroying the infrastructure is a easy task in all the environments.In oracle VM for SPARC also ,you
can easily remove the guest domains in few seconds. The same way you can also remove the virtual disk
resources and virtual network resources. In some cases you may not able to remove the resources if its in
use or already bound to any guest domains. In this article ,we will see how to remove the guest domains
and how to remove the virtual services like vds and vswitch.

1. Login to the control domain and list the available domains.

-bash-3.2# ldm ls-domain


NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 14 4128M 0.2% 8h 7m
ldom2 active -t---- 5000 2 6G 50% 4m
ldom2clone active -n---- 5001 8 8G 0.1% 7h 26m

2.Halt the domain by logging in to the guest domain operating system. (init 5) . You can also perform the
force shutdown from the control domain using the below command.

-bash-3.2# ldm stop-domain ldom2clone


LDom ldom2clone stopped

3.Un-bind the domain from the hypervisor.

-bash-3.2# ldm unbind-domain ldom2clone


-bash-3.2# ldm ls-domain
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 14 4128M 6.8% 8h 8m
ldom2 active -t---- 5000 2 6G 50% 5m
ldom2clone inactive ------ 8 8G
-bash-3.2#

4.Now you can remove the inactive guest domain from the hypervisor.

-bash-3.2# ldm remove-domain ldom2clone


-bash-3.2# ldm ls-domain
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 14 4128M 0.2% 8h 10m
ldom2 active -t---- 5000 2 6G 50% 7m
-bash-3.2#

You can see ldom2clone has been removed from the hypervisor completely.

If you want to remove the specific resources from the guest domain,follow the below steps.

1. List the bounded resources for one of the guest domain. (ldom2)

-bash-3.2# ldm list-bindings ldom2


NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
ldom2 active -t---- 5000 2 6G 50% 8m

UUID
f2aa98a4-ddae-6d93-948f-9e2e9e81ff40

MAC
00:14:4f:fb:b6:94

HOSTID
0x84fbb694

CONTROL
failure-policy=ignore

DEPENDENCY
master=

CORE
CID CPUSET
1 (8, 9)

VCPU
VID PID CID UTIL STRAND
0 8 1 100% 100%
1 9 1 0.0% 100%

MEMORY
RA PA SIZE
0x10000000 0x10000000 4G
0x480000000 0x390000000 2G

VARIABLES
auto-boot?=false
boot-device=disk:a disk net
keyboard-layout=US-English

NETWORK
NAME SERVICE ID DEVICE MAC
MODE PVID VID MTU LINKPROP
vnet0 primary-vds0@primary 0 network@0
00:14:4f:f9:53:57 1 1500
PEER MAC MODE PVID VID
MTU LINKPROP
primary-vds0@primary 00:14:4f:fb:e2:f3 1
1500

DISK
NAME VOLUME TOUT ID DEVICE SERVER
MPGROUP
vdisk1_dom2 vol1@primary-vds0 1 disk@1 primary
iso_ldom2 iso0@primary-vds0 2 disk@2 primary
uavdisk uavol1@primary-vds0 0 disk@0 primary

VCONS
NAME SERVICE PORT
ldom2 primary-vcc0@primary 5000

2.Try to remove the one of the virtual disk resource from the guest domain.

-bash-3.2# ldm remove-vdisk uavdisk ldom2


Please perform the operation while the LDom is bound or inactive
-bash-3.2# ldm remove-vdisk -f uavdisk ldom2
Please perform the operation while the LDom is bound or inactive

You are not able to remove the virtual disk since its in use on ldom2.

3.You can stop the guest domain and then remove it .

-bash-3.2# ldm stop-domain ldom2


LDom ldom2 stopped
-bash-3.2# ldm remove-vdisk uavdisk ldom2
-bash-3.2#
-bash-3.2# ldm list-bindings ldom2
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
ldom2 bound ------ 5000 2 6G

UUID
f2aa98a4-ddae-6d93-948f-9e2e9e81ff40

MAC
00:14:4f:fb:b6:94

HOSTID
0x84fbb694

CONTROL
failure-policy=ignore

DEPENDENCY
master=
CORE
CID CPUSET
1 (8, 9)

VCPU
VID PID CID UTIL STRAND
0 8 1 100%
1 9 1 100%

MEMORY
RA PA SIZE
0x10000000 0x10000000 4G
0x480000000 0x390000000 2G

VARIABLES
auto-boot?=false
boot-device=disk:a disk net
keyboard-layout=US-English

NETWORK
NAME SERVICE ID DEVICE MAC
MODE PVID VID MTU LINKPROP
vnet0 primary-vds0@primary 0 network@0
00:14:4f:f9:53:57 1 1500
PEER MAC MODE PVID VID
MTU LINKPROP
primary-vds0@primary 00:14:4f:fb:e2:f3 1
1500

DISK
NAME VOLUME TOUT ID DEVICE SERVER
MPGROUP
vdisk1_dom2 vol1@primary-vds0 1 disk@1 primary
iso_ldom2 iso0@primary-vds0 2 disk@2 primary

VCONS
NAME SERVICE PORT
ldom2 primary-vcc0@primary 5000
-bash-3.2#

4. Removing the devices from the vds service

-bash-3.2# ldm list-services


VCC
NAME LDOM PORT-RANGE
primary-vcc0 primary 5000-5100

VSW
NAME LDOM MAC NET-DEV ID DEVICE
LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE
primary-vds0 primary 00:14:4f:fb:e2:f3 nxge0 0
switch@0 1 1 1500
primary-vsw0 primary 00:14:4f:fa:bf:27 nxge1 1
switch@1 1 1 1500

VDS
NAME LDOM VOLUME OPTIONS MPGROUP
DEVICE
primary-vds0 primary vol1
/dev/zvol/dsk/pool1/vol1
iso0
/export/home/sol-10-u10-ga2-sparc-dvd.iso
clonevol1
/dev/zvol/dsk/pool1/clonevol1
vol0
/dev/dsk/c3t600144F0B8E706DA00005300F4270004d0s2
vol2
/dev/dsk/c3t600144F0C1135B490000530383D70006d0
uavol1
/dev/zvol/dsk/pool1/uavol1

-bash-3.2# ldm remove-vdsdev uavol1@primary-vds0


-bash-3.2# ldm list-services
VCC
NAME LDOM PORT-RANGE
primary-vcc0 primary 5000-5100

VSW
NAME LDOM MAC NET-DEV ID DEVICE
LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE
primary-vds0 primary 00:14:4f:fb:e2:f3 nxge0 0
switch@0 1 1 1500
primary-vsw0 primary 00:14:4f:fa:bf:27 nxge1 1
switch@1 1 1 1500

VDS
NAME LDOM VOLUME OPTIONS MPGROUP
DEVICE
primary-vds0 primary vol1
/dev/zvol/dsk/pool1/vol1
iso0
/export/home/sol-10-u10-ga2-sparc-dvd.iso
clonevol1
/dev/zvol/dsk/pool1/clonevol1
vol0
/dev/dsk/c3t600144F0B8E706DA00005300F4270004d0s2
vol2
/dev/dsk/c3t600144F0C1135B490000530383D70006d0

-bash-3.2#

We have seen how to remove the assigned virtual disk from the guest and removing the disk from the
virtual disk server.

Now we will see how to remove the complete service from the service domain aka primary domain.
1.Try to remove the virtual switch service from service domain

-bash-3.2# ldm remove-vsw primary-vds0


Service is active and being used by bound client(s)
Failed to remove virtual switch

2.The above command failed because,that virtual service is used for some of the guest domains. First
remove the those assigned virtual resources from guest domain the n try to remove it.

-bash-3.2# ldm remove-vsw primary-vsw0


-bash-3.2# ldm list-services
VCC
NAME LDOM PORT-RANGE
primary-vcc0 primary 5000-5100
VSW
NAME LDOM MAC NET-DEV ID DEVICE
LINKPROP DEFAULT-VLAN-ID PVID VID MTU MODE
primary-vds0 primary 00:14:4f:fb:e2:f3 nxge0 0
switch@0 1 1 1500

VDS
NAME LDOM VOLUME OPTIONS MPGROUP
DEVICE
primary-vds0 primary vol1
/dev/zvol/dsk/pool1/vol1
iso0
/export/home/sol-10-u10-ga2-sparc-dvd.iso
clonevol1
/dev/zvol/dsk/pool1/clonevol1
vol0
/dev/dsk/c3t600144F0B8E706DA00005300F4270004d0s2
vol2
/dev/dsk/c3t600144F0C1135B490000530383D70006d0

Using the same setup commands (showed in this article), you can remove the other guest domains and
virtual services.

Once you have cleared the all services and domains, you can uninstall the oracle VM for SPARC software
using below method.

bash-3.2# pkgrm SUNWldm

The following package is currently installed:


SUNWldm LDoms Manager software
(sparc.sun4v) 2.0,REV=2010.09.02.10.08

Do you want to remove this package? [y,n,?,q] y

## Removing installed package instance

This package contains scripts which will be executed with super-user


permission during the process of removing this package.

Do you want to continue with the removal of this package [y,n,?,q] y


## Verifying package dependencies in global zone
## Processing package information.
## Removing pathnames in class
Waiting up to 60 seconds for svc:/ldoms/ldmd:default to stop...
## Removing pathnames in class
/var/svc/manifest/platform/sun4v
/var/svc/manifest/platform
/var/svc/manifest
/var/svc
<<<<<<<<>>>>
/opt/SUNWldm/bin/schemas/ovf-strings.xsd
/opt/SUNWldm/bin/schemas/ovf-section.xsd
/opt/SUNWldm/bin/schemas/ovf-envelope.xsd
/opt/SUNWldm/bin/schemas/ovf-core.xsd
/opt/SUNWldm/bin/schemas/ldmd-property.xsd
/opt/SUNWldm/bin/schemas/ldmd-binding.xsd
/opt/SUNWldm/bin/schemas/event-v3.xsd
/opt/SUNWldm/bin/schemas/combined-v3.xsd
/opt/SUNWldm/bin/schemas/cli-list-constraint-v3.xsd
/opt/SUNWldm/bin/schemas/cim-vssd.xsd
/opt/SUNWldm/bin/schemas/cim-rasd.xsd
/opt/SUNWldm/bin/schemas/cim-common.xsd
/opt/SUNWldm/bin/schemas
/opt/SUNWldm/bin/ldmd_start
/opt/SUNWldm/bin/ldmd
/opt/SUNWldm/bin/ldmconfig
/opt/SUNWldm/bin/ldm
/opt/SUNWldm/bin
/opt/SUNWldm
/opt
## Updating system information.

Removal of was successful.


bash-3.2# pkgrm SUNWldomu

The following package is currently installed:


SUNWldomu Solaris Logical Domains (Usr)
(sparc.sun4v) 11.10.0,REV=2006.08.08.12.13

Do you want to remove this package? [y,n,?,q] y


## Removing installed package instance
## Verifying package dependencies in global zone
## Processing package information.
## Removing pathnames in class
/usr/lib/sparcv9/libpri.so.1
/usr/lib/sparcv9/libds.so.1
/usr/lib/sparcv9
/usr/lib/libpri.so.1
/usr/lib/libds.so.1
/usr/lib/ldoms/vntsd
/usr/lib/ldoms/ldmad
/usr/lib/ldoms/drd
/usr/lib/ldoms
/usr/lib
/usr
## Updating system information.

Removal of was successful.


bash-3.2# pkgrm SUNWldomr

The following package is currently installed:


SUNWldomr Solaris Logical Domains (Root)
(sparc.sun4v) 11.10.0,REV=2006.10.04.00.26

Do you want to remove this package? [y,n,?,q] y

## Removing installed package instance

This package contains scripts which will be executed with super-user


permission during the process of removing this package.

Do you want to continue with the removal of this package [y,n,?,q] y


## Verifying package dependencies in global zone
## Processing package information.
## Executing preremove script.
## Removing pathnames in class
Waiting up to 60 seconds for svc:/ldoms/vntsd:default to stop...
Waiting up to 60 seconds for svc:/ldoms/agents:default to stop...
Waiting up to 60 seconds for svc:/platform/sun4v/drd:default to stop...
## Removing pathnames in class
/var/svc/manifest/platform/sun4v
/var/svc/manifest/platform
/var/svc/manifest
/var/svc
/var
/platform/sun4v/kernel/misc/sparcv9/platsvc
/platform/sun4v/kernel/misc/sparcv9/ldc
/platform/sun4v/kernel/misc/sparcv9/fault_iso
/platform/sun4v/kernel/misc/sparcv9/ds
/platform/sun4v/kernel/misc/sparcv9/dr_mem
/platform/sun4v/kernel/misc/sparcv9/dr_io
/platform/sun4v/kernel/misc/sparcv9/dr_cpu
/platform/sun4v/kernel/misc/sparcv9
/platform/sun4v/kernel/misc
/platform/sun4v/kernel/drv/sparcv9/vsw
/platform/sun4v/kernel/drv/sparcv9/vnet
/platform/sun4v/kernel/drv/sparcv9/vlds
/platform/sun4v/kernel/drv/sparcv9/vldc
/platform/sun4v/kernel/drv/sparcv9/vds
/platform/sun4v/kernel/drv/sparcv9/vdc
/platform/sun4v/kernel/drv/sparcv9/vcc
/platform/sun4v/kernel/drv/sparcv9/ds_snmp
/platform/sun4v/kernel/drv/sparcv9/ds_pri
/platform/sun4v/kernel/drv/sparcv9/drctl
/platform/sun4v/kernel/drv/sparcv9/cnex
/platform/sun4v/kernel/drv/sparcv9
/platform/sun4v/kernel/drv/ds_snmp.conf
/platform/sun4v/kernel/drv/ds_pri.conf
/platform/sun4v/kernel/drv/drctl.conf
/platform/sun4v/kernel/drv
/platform/sun4v/kernel
/platform/sun4v
/platform
/lib/svc/method/svc-vntsd
/lib/svc/method/svc-drd
/lib/svc/method/ldoms-agents
/lib/svc/method
/lib/svc
/lib
## Updating system information.

Removal of was successful.


bash-3.2# pkginfo | grep -i ldom
application SUNWldmp2v LDoms P2V tool
bash-3.2# pkgrm SUNWldmp2v

The following package is currently installed:


SUNWldmp2v LDoms P2V tool
(sparc) 2.0,REV=2010.09.02.10.08

Do you want to remove this package? [y,n,?,q] y

## Removing installed package instance

This package contains scripts which will be executed with super-user


permission during the process of removing this package.

Do you want to continue with the removal of this package [y,n,?,q] y


## Verifying package dependencies in global zone
## Processing package information.
## Removing pathnames in class
## Removing pathnames in class
/usr/share/man/man1m/ldmp2v.1m
/usr/share/man/man1m
/usr/share/man
/usr/share
/usr/sbin/ldmp2v
/usr/sbin
/usr
/opt/SUNWldmp2v/man/man1m/ldmp2v.1m
/opt/SUNWldmp2v/man/man1m
/opt/SUNWldmp2v/man
/opt/SUNWldmp2v/lib/ldmp2v_convert
/opt/SUNWldmp2v/lib
/opt/SUNWldmp2v/etc/ldmp2v.conf.sample
/opt/SUNWldmp2v/etc
/opt/SUNWldmp2v/bin/ldmp2v_prepare
/opt/SUNWldmp2v/bin
/opt/SUNWldmp2v
/opt
## Updating system information.

Removal of was successful.


bash-3.2# pkginfo | grep -i ldom*
bash-3.2# pkginfo | grep -i ldm*
bash-3.2#

You have successfully uninstall the oracle VM for SPARC software. You can safely recycle the control
domain to remove the complete ldom stuffs.

Thank you for visiting UnixArena.

The post How to Remove Logical Domains and Services ? Oracle VM for SPARC appeared first
on UnixArena.

How to Add the Same ISO image file in Multiple LDOMS ?


Posted: 19 Feb 2014 11:00 PM PST

In oracle VM for SPARC (LDOM), you need to attach the ISO file to each logical domain, for the first time
operating system installation. If you have pre-configured jumpstart , You can use it for the guest domain
operating system installation. If you don’t have jumpstart,then you need to install it using the ISO image.
By default LDOM will not allow to map the same device file to multiple guest domains .Here we will see
how we can map the same ISO image to multiple LDOMS.
1. Login to the control domain and list the ISO image which you need to map it to ldoms.

# ls /export/home/sol-10-u10-ga2-sparc-dvd.iso
sol-10-u10-ga2-sparc-dvd.iso

2.List the available services. Create a new virtual device for the virtual disk server using the below
command.

-bash-3.2# ldm list-services


VCC
NAME LDOM PORT-RANGE
primary-vcc0 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:fa:fe:49 e1000g0 0
switch@0 1 1 1500
VDS
NAME LDOM VOLUME OPTIONS MPGROUP
DEVICE
primary-vds0 primary vol1
/dev/zvol/dsk/pool1/vol1
clonevol1
/dev/zvol/dsk/pool1/clonevol1
vol0
/dev/dsk/c2t600144F0B8E706DA00005300F47B0007d0s2
vol10
/dev/dsk/c2t600144F0C1135B4900005303839A0002d0s2

# ldm add-vdsdev options=ro /export/home/sol-10-u10-ga2-sparc-dvd.iso


newiso@primary-vds0
-bash-3.2# ldm list-services
VCC
NAME LDOM PORT-RANGE
primary-vcc0 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:fa:fe:49 e1000g0 0
switch@0 1 1 1500

VDS
NAME LDOM VOLUME OPTIONS MPGROUP
DEVICE
primary-vds0 primary vol1
/dev/zvol/dsk/pool1/vol1
clonevol1
/dev/zvol/dsk/pool1/clonevol1
vol0
/dev/dsk/c2t600144F0B8E706DA00005300F47B0007d0s2
vol10
/dev/dsk/c2t600144F0C1135B4900005303839A0002d0s2
iso0 ro
/export/home/sol-10-u10-ga2-sparc-dvd.iso
3.Add the newly created virtual read-only iso image to guest domain.

-bash-3.2# ldm list-domain


NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-cv- SP 12 4128M 0.3% 5h 45m
ua1 active -n---- 5000 8 4G 0.1% 58m
ua2 active -n---- 5001 8 2G 0.0% 58m
ua3 active -n---- 5002 4 1G 0.1% 30m
-bash-3.2# ldm add-vdisk viso1 newiso@primary-vds0 ua1
-bash-3.2#

4.You can see that ISO file has been attached to the ua1 ldom.

-bash-3.2# ldm ls-bindings ldom1


NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
ldom1 bound ------ 5000 8 512M

DISK
NAME VOLUME TOUT ID DEVICE SERVER
MPGROUP
vdisk1 vol1@primary-vds0 2 disk@2 primary
viso1 newiso@primary-vds0 0 disk@0 primary

5.When try to map the same iso virtual image to another domain, you will get below error.

-bash-3.2# ldm add-vdisk viso2 newiso@primary-vds0 ua2


The volume "newiso" is already in use.

6.To avoid the above error, you need to create a new virtual read-only ISO image again.

-bash-3.2# ldm add-vdsdev options=ro /export/home/sol-10-u10-ga2-sparc-


dvd.iso newiso2@primary-vds0
-bash-3.2#

7.Add the second virtual iso image to the another LDOM using the below command.

-bash-3.2# ldm add-vdisk viso2 newiso2@primary-vds0 ua2


-bash-3.2#
-bash-3.2# ldm list-bindings ua2
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
ua2 active -n---- 5001 8 2G 0.1% 1h 3m
DISK
NAME VOLUME TOUT ID DEVICE SERVER
MPGROUP
vdisk1 ua1ldom2@primary-vds0 0 disk@0 primary
viso2 newiso2@primary-vds0 1 disk@1 primary

The same way you can map the same ISO file to N-number of guest domains.(6 and 7 ).

Hope this article is informative to you. Thank you for visiting UnixArena.

The post How to Add the Same ISO image file in Multiple LDOMS ? appeared first on
UnixArena.

You are subscribed to email updates from UnixArena Email delivery powered by Google
To stop receiving these emails, you may unsubscribe now.

Google Inc., 20 West Kinzie, Chicago IL USA 60610

Das könnte Ihnen auch gefallen