Professional Documents
Culture Documents
# /usr/bin/unzip [patch_id].zip
# ./sysfwdownload [image].pkg
# shutdown -i0 -g0 y
stop /SYS
set /SYS keyswitch_state=normal
On systems that run ilom you can switch to alom compatibility mode by running these
commands on the system controller:
cd /SP/users/SC_User_Name
set cli_mode=alom
Log in to alom using password changetin
# ./sysfwdownload u xxx.pkg
-u option automatically performs these tasks
Downloads the system firmware image.
Power downs the host
Updates the firmware
Resets the system controller
Powers the host again.
ldm V ( find the version of ldom manager)
Control & I/O Domain Setup
In the servers initial state, a single control domain owns all of the system resources including CPU threads,
MAUs, memory, and PCI buses. The control domain is also referred to as the primary domain.
Verify the servers initial state using the ldm list command. Youll note that a single domain primary owns 128
virtual CPUs (threads) and 64 GB of memory
# ldm list
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
primary active -n-c-- SP 128 65312M 0.2% 3d 15h 41m
The virtual disk can be based upon several device types, including:
An entire physical disk, which could also be a storage partition presented by a
SAN device, sometimes referred to as a logical unit number (LUN)
Single slice of a disk or LUN
Disk image file on a file system (such as UFS or ZFS)
Disk volumes (ZFS, SVM, VxVM)
The virtual disk service primary-vds0 will support disk I/O in the guest domain; actual sources of data will be attached to it later.
# ldm add-vdiskserver primary-vds0 primary
A virtual console device allows the control and I/O domain to connect to the console port of the guest domain. When connecting to the guests
console, you will use the command telnet localhost port, where port is in the range of 5000-5100 that the virtual console device will assign.
# ldm add-vconscon port-range=5000-5100 primary-vcc0 primary
The freed resources are stored in free pool & it can be allocated to guest domains.
Note : Changes take place once the primary domain is rebooted.
LDOM SLICING
Service domain: Will provide virtual device services to other domains & will have to process any virtual I/O for domains it is
servicing. 2 cpu cores & 2GB Memory.
I/O Domain : minimum 1 cpu cores & min. 1Gb for running oracle solaris / min. 2GB if it is run as service domain also. If I/O domain
have several io devices then the no. of cores should be increased.4GB memory per I/O device.
Control Domain: minimum 1 cpu core & memory same as IO domain. It is basically the IO domain.
Cryptographic unit : one for each core assigned to Control domain.
Virtual cpus can be added or removed without stopping, restarting or interrupting the domain.Does not support dynamic
reconfiguration of memory.From oracle vm server 2.0 dynamic assignment of memory is allowed.
1.
2.
3.
4.
5.
6.
7.
8.
9.
10.
11.
12.
13.
14.
15.
16.
17.
33. Add a virtual network interface vnet0 to ldom1. Bind vnet0 to the virtual switch primary-vsw0 & assign
mac address to it.
# ldm add-vnet mac-addr=00:14:4F:FC:XX:01 vnet0 primary-vsw0 ldom1
34. Assign zvol1 disk to lom1.Name it zvdisk1
# ldm add-vdisk vdisk1 zvol1@primary-vds0 ldom1
primary# ldm set-var auto-boot\?=true ldg1
primary# ldm set-var boot-device=vdisk1 ldg1
primary# ldm bind-domain ldg1
primary# ldm list-domain ldg1
NAME
STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
ldg1
bound ----- 5000 4 2G
$ ssh admin@controldom.domain
$ telnet localhost 5000
primary# ldm start-domain ldg1
The following example shows how to restore a single domain. First, you restore the ldg1 domain from the XML file. Then, you bind and restart
the ldg1 domain that you restored.
# ldm add-domain -i ldg1.xml
# ldm bind ldg1
# ldm start ldg1
The following example shows how to create an XML file, config.xml, which contains the constraints for all the
domains on a system:
# ldm list-constraints -x >config.xml
Create the domain by using the XML file that you created as input.
2.
3.
3.
4.
5.
The -r option reboots the primary domain after the configuration. If you do not specify the -r option, you must perform the reboot
manually. The -s option restores only the virtual services configuration (vds, vcc, and vsw) and might be able to be performed
without having to reboot.
Example 11-2 Restoring Domains From XML Configuration Files
The following examples show how to use the ldm init-system command to restore the primary domain and all the domains on a system
from the factory-default configuration.
Restore the primary domain. The -r option is used to reboot the primary domain after the configuration completes. The
primary.xml file contains the XML domain configuration that you saved at an earlier time.
primary# ldm init-system -r -i primary.xml
Restore all the domains on a system. Restore the domains on the system to the configurations in the config.xml XML file. The
config.xml file contains the XML domain configurations that you saved at an earlier time. The primary domain is restarted
automatically by the ldm init-system command. Any other domains are restored, but not bound and restarted.
# ldm init-system -r -i config.xml
After the system reboots, the following commands bind and restart the ldg1 and ldg2 domains:
#
#
#
#
ldm
ldm
ldm
ldm
bind ldg1
start ldg1
bind ldg2
start ldg2
Specify the device to be exported by the virtual disk server as a virtual disk to the guest domain.
You can export a physical disk, disk slice, volumes, or file as a block device. The following examples show a physical disk and a file.
Where:
/dev/dsk/c2t1d0s2 is the path name of the actual physical device. When adding a device, the path name must be
paired with the device name.
vol1 is a unique name you must specify for the device being added to the virtual disk server. The volume name must be
unique to this virtual disk server instance, because this name is exported by this virtual disk server to the clients for adding.
When adding a device, the volume name must be paired with the path name of the actual device.
primary-vds0 is the name of the virtual disk server to which to add this device.
File Example.
Where:
backend is the path name of the actual file exported as a block device. When adding a device, the backend must be paired
with the device name.
vol1 is a unique name you must specify for the device being added to the virtual disk server. The volume name must be
unique to this virtual disk server instance, because this name is exported by this virtual disk server to the clients for adding.
When adding a device, the volume name must be paired with the path name of the actual device.
primary-vds0 is the name of the virtual disk server to which to add this device.
primary-vds0 is the name of the existing virtual disk server to which to connect.
Note
The virtual disks are generic block devices that are associated with different types of physical devices, volumes, or files. A virtual disk is not
synonymous with a SCSI disk and, therefore, excludes the target ID in the disk label. Virtual disks in a logical domain have the following format:
cNdNsN, where cN is the virtual controller, dN is the virtual disk number, and sN is the slice.
VCPU MEMORY
4
2G
UTIL
UPTIME
To find the console port of the guest domain, you can look at the output of the preceding list-domain subcommand.
You can see under the heading Cons that logical domain guest 1 (ldg1) has its console output bound to port 5000.
Connect to the console of a guest domain from another terminal by logging into
the control domain and connecting directly to the console port on the local host.
$ ssh admin@controldom.domain
$ telnet localhost 5000
Start the guest domain ldg1.
TYPE
---BUS
BUS
BUS
BUS
PCIE
PCIE
PCIE
PCIE
PCIE
PCIE
PCIE
PCIE
PCIE
PCIE
PCIE
PCIE
PF
PF
PF
PF
BUS
--pci_0
pci_1
pci_2
pci_3
pci_0
pci_0
pci_0
pci_1
pci_1
pci_1
pci_2
pci_2
pci_2
pci_3
pci_3
pci_3
pci_0
pci_0
pci_3
pci_3
DOMAIN
-----primary
primary
primary
primary
primary
primary
primary
primary
primary
primary
primary
primary
primary
primary
primary
primary
primary
primary
primary
primary
STATUS
------
EMP
OCC
OCC
EMP
EMP
EMP
EMP
OCC
EMP
EMP
OCC
OCC
The output of this command will of course vary greatly, depending on the type of system you have. The above example is from a T5-2. As you
can see, there are several types of IO resources. Specifically, there are
BUS
This is a whole PCI bus, which means everything controlled by a single PCI control unit, also called a PCI root complex. It typically
contains several PCI slots and possibly some end point devices like SAS or network controllers.
PCIE
This is either a single PCIe slot. In that case, it's name corresponds to the slot number you will find imprinted on the system chassis.
It is controlled by a root complex listed in the "BUS" column. In the above example, you can see that some slots are empty, while
others are occupied. Or it is an endpoint device like a SAS HBA or network controller. An example would be "/SYS/MB/SASHBA0"
or "/SYS/MB/NET2". Both of these typically control more than one actual device, so for example, SASHBA0 would control 4
internal disks and NET2 would control 2 internal network ports.
PF
This is a SR-IOV Physical Function - usually an endpoint device like a network port which is capable of PCI virtualization. We will
cover SR-IOV in a later section of this blog.
All of these devices are available for assignment. Right now, they are all owned by the primary domain. We will now release some of them from
the primary domain and assign them to a different domain. Unfortunately, this is not a dynamic operation, so we will have to reboot the control
domain (more precisely, the affected domains) once to complete this.
ldm
ldm
ldm
ldm
/virtual-devices@100/channel-devices@200/disk@1
/virtual-devices@100/channel-devices@200/disk@0
/virtual-devices@100/channel-devices@200/network@2
/virtual-devices@100/channel-devices@200/network@1
/virtual-devices@100/channel-devices@200/network@0
/virtual-devices@100/channel-devices@200/network@0
/virtual-devices@100/channel-devices@200/disk@0
/virtual-devices/console@1
aliases
If you wish to restore your server to its original state, not running any logical domains, you can execute the following sequence of commands.
# ldm rm-config my-initial
# ldm stop-domain -a
LDom guest1 stopped
# ldm unbind-domain guest1
# ldm destroy guest1
# ldm set-config factory-default
# svcadm disable ldmd
# svcadm disable vntsd
# pkgrm SUNWldm
# shutdown -i5 -g0 -y
If you have enabled networking between the control domain and guests, you may have to manually restore the previous hostname files (for
example /etc/hostname.nxge0) and remove the hostname files that plumbed virtual switches into the control domain (for example
/etc/hostname.vsw0).
MaximizingVirtualNetworkPerformance
You can achieve high transfer rates for guest and external networks and for guest-to-guest
communications when you configure your platform and the domains as described in this
section. The virtual network stack introduces support for large segment offload (LSO), which
produces high TCP performance without requiring the use of jumbo frames
Oracle Solaris OS requirements.
Ensure that the service domain and guest domain run the
following Oracle Solaris OS versions:
Service domain.
At least the Oracle Solaris 11.1.9.0.0 OS or the Oracle Solaris 10 OS with
the 150031-03 patch.
Guest domain.
At least the Oracle Solaris 11.1.9.0.0 OS or the Oracle Solaris 10 OS with
the 150031-03 patch.
Service domain.
Because the service domain acts as a data proxy for the guest domains,
assign at least 2 CPU cores and at least 4 Gbytes of memory to the service domain.
Guest domain.
Configure each guest domain to be able to drive at least 10-Gbps
performance. Assign at least 2 CPU cores and at least 4 Gbytes of memory to each guest
domain.
ConfiguringYourDomainstoMaximizethe
PerformanceofYourVirtualNetwork
10
In previous versions of Oracle VM Server for SPARC and the Oracle Solaris OS, you could
improve your network performance by configuring jumbo frames. This configuration is no
longer required and unless required for another reason, using the standard MTU value of 1500
for your service and guest domains is best.
To achieve the improved networking performance, set the
extended-mapin-space property to on for the service domain and the guest domains, which is the default setting for the Oracle VM
Server for SPARC 3.1 software and supported system firmware.
primary#
ldm set-domain extended-mapin-space=on
domain-name
To check the extended-mapin-space property value, run the following command:
primary#
ldm ls l domain-name |grep extended-mapin
extended-mapin-space=on
Note
A change to the extended-mapin-space property value triggers a delayed reconfiguration on the primary domain. This situation
requires a primary domain reboot. You also must first stop the guest domains before you change this property value.
You can add a virtual switch to a domain, set options for a virtual switch, and remove a virtual
switch by using the ldm add-vsw, ldm set-vsw, and ldm rm-vsw commands, respectively. See the ldm (1M) man page
see page 193 of oracle VM Server for sparc admin doc
11
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
12
13