... {pagetree:root=@parent|searchBox=true}
h6. In this Section ...
{toc:type=list|style=none|maxLevel=3} {column} {column:width=75%}
h1. Section Introduction
This section provides examples of basic and advanced administrative procedures to assist in your management of the Logical Domains environment.
---- h1. LDoms installation
h6. (Contributed by Peter A. Wilson)
h2. Installation Overview
The first and obvious recommendation regarding LDoms installation is to follow the Administration Guide documents and adhere to the requirements set out there. There are a couple of pre-requisites that should be noted as an absolute minimum. {info:title=Factory Installation} Note, that all systems delivered fresh from the factory have at least the required minimum versions of firmware and OS, plus patches, already applied and the pre-installed image of Solaris on your system also includes (amongst other goodies) the current (at the time of the pre-install) version of LDoms packages. You are just required to enable the LDoms management daemon (as shown below) to be able to work with LDoms. {info} If you are carrying out a fresh installation of the Solaris OS, you will need to add the SUNWldm.v (and optional associated) packages to be able to use LDoms. * You can only deploy LDoms on Sun SPARC based servers with the sun4v architecture, this encompasses all 'Niagara' CPU's, such as the UltraSPARC T1, the UltraSPARC T2 and the latest CPU, the UltraSPARC T2 Plus. All future version of Sun SPARC chips will also support Logical Domains. * You will be required to be running at least a minimum level of system firmware. System firmware is distributed as a single file, with a given version number, which comprises various files updating many elements of the system to latest versions, including the Service Processor, OBP, POST, the Hypervisor, and vBSC. You can determine your current version using many methods, I prefer to use the Service Processor, the methods for this are shown below. * A minimum version of Solaris is required to run in the Control Domain (also called the primary domain), and for various platforms there will be different additional required patches that must be installed on top of that minimum release of OS.
All of these minimum requirements will be discussed in detail in the Product Notes issued with the particular version of LDoms that you are about to install, these can be accessed here [LDoms Documentation|http://docs.sun.com/app/docs/coll/ldom1.0|LDoms Official Documentation].
Once you have complied with minimum version requirements, the installation process is very straightforward. The downloadable LDoms tarball included all the required toos to carry out a complete installation as indicated in the Administration Guide.
It is also possible to take some shortcuts if you are looking to test LDoms and are not too concerned about enforcing security at this stage.
In fact in order to install Ldoms only a single package is required from the tarball that you downloaded, this is the SUNWldm.v package. The process of installing must be carried out with 'root' privileges but a simple 'pkgadd \-d SUNWldm.v' is sufficient. The binaries will be installed in /opt/SUNWldm/bin, this path is not automatically added to your environment, its definitely going to save you time to do so.
The installation process does not automaticlally activate LDoms, in order to do that it is necessary to enable the LDoms management daemon, this can be done the command 'svcadm enable ldmd': {panel:borderStyle=solid| borderColor=black|bgColor=#e6e6e6} {{primary# *svcadm enable ldmd{*}}} {panel} Once the LDom management daemon is running a simple test can be run to ensure that all is well, run the command {{'/opt/SUNWldm/bin/ldm list'}}, this will produce an abbreviated listing of all of the currently running domains and their status, in the default case, this will indicate a single 'primary' domain that owns all of the resources of the server. {panel:borderStyle=solid| borderColor=black|bgColor=#e6e6e6} {{primary# */opt/SUNWldm/bin/ldm list{*}}} {{NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME}} {{primary active \-n-c\- SP 256 65184M 0.0% 8d 2h 22m}} {{primary#}} {panel} At this stage you have a working installation of LDoms and can carry on with further testing and configurations.
h2. Firmware Updates
You are always recommended to stay current wherever possible with the latest versions of firmware and patches on any systems deployment.
If during your checks to determine if your system required updated firmware, the following chapter describes the options available to you for the various servers in the CMT family line.
h3. Updating UltraSPARC T1 Systems
h6. Sun Fire T1000/Sun SPARC Enterprise T1000/Sun Fire T2000/Sun SPARC Enterprise T2000/Sun Blade T6300
These servers utilise a Service Processor running ALOM and as a result expect to be able to communicate with an FTP server to download and install their required firmware upgrades.
You can check your current firmware version number by running the 'showhost command: {panel:borderStyle=solid| borderColor=black|bgColor=#e6e6e6} {{sc> *showhost{*}}} {{Sun-Fire-T1000 System Firmware 6.5.11 2008/01/08 20:24}}
{{Host flash versions:}} {{OBP 4.27.11 2008/01/08 14:51}} {{Hypervisor 1.5.6 2007/11/30 08:31}} {{POST 4.27.11 2008/01/08 15:17}} {{sc>}} {panel} In this case the T1000 is running firmware release version 6.5.11.
You must complete a few steps to prepare for a system firmware upgrade. * You must locate the relevant firmware update image, these can be located on the [SunSolve|http://cpubringup.sfbay.sun.com/twiki/bin/view/LDoms/sunsolve.sun.com]website. Firmware updates are distrbuted as Patches, the minimum required version is indicated in the LDoms version specific Release Notes document. * Copy the firmware file to a suitable FTP server, accessible from the network that the SP is configured onto, and uncompress the patch ZIP file into a suitable directory. * Ensure that the Service Processor is suitably networked to access the FTP server. * Firmware upgrades require that the main server be powered off, so bring the main server down in an orderly fashion {{'shutdown \-i0 \-g0 \-y'}} * Update the firmware using the {{'flashupdate'}} command and then reset the SP using the {{'resetsc'}} command.
Remember that, when running the flashupdate command, the SP will prompt you for a username and password, these are the username and password of a user on the FTP server in whose directories the firmware file can be found for downloading.
Once the SP has reset, you can check again for the version of the firmware by running the SP command {{'showhost'}}.
h3. Updating UltraSPARC T2 & Later Systems
h6. Sun SPARC Enterprise T5120/T5220/T5140/T5240/T5440, Sun Blade T6320/T6340
These servers have a more powerful SP running the ILOM interface, but also implement an ALOM command line interface for backwards compatibility with the older ALOM only systems.
ILOM is a much more powerful remote management interface and as a result provides a wider range of options for upgrading system firmware, these are... * From the ILOM CLI, (the preferred option for the future.) * From the ALOM CLI, (the simplest option for experienced ALOM users.) * From the WEBGUI, (the simplest point and click option, requiring no local TFTP server) * From the ALOM or ILOM CLI even if the SP is not networked.
Each of these methods requires the main server to be powered down before starting the upgrade, but in the case of the non-networked SP, the main server must first be used to download the firmware internally to the SP, after which the main server must be shutdown in order to carry out the upgrade.
Below are the commands that are run in both the ILOM CLI and the ALOM CLI to check the firmware versions and to then carry out the firmware upgrade: || Task || ILOM Command Line || ALOM Command Line || |
... If you have old firmware and must upgrade, the CLI methods are simple but require that the firmware file be first copied onto a TFTP server on the local sub-net of of the SP. || Task || ILOM Command Line || ALOM Command Line || | Install new firmware | {{{*}load \-source tftp://<IP>/<PATH>/Sun_System_Firmware-7_1_5_b-SPARC_Enterprise_T5440.pkg{*}}} | {{sc> *flashupdate \-s <IP> \-f <PATH>/Sun_System_Firmware-7_1_5_b-SPARC_Enterprise_T5440.pkg{*}}} | In both cases, the IP and PATH shown in the command line represent the IP address of the TFTP server being used, and the PATH of the file being server from the TFTP server. {info:title=TFTP Path} NOTE, that the PATH must exclude the TFTP servers default serving directory. In most cases this will be /tftpboot, so a file located on the TFTP server at /tftpboot/t5440/firmware/Sun_System_Firmware-7_1_5_b-SPARC_Enterprise_T5440.pkg, would have the path specified on the command line as /t5440/firmware/Sun_System_Firmware-7_1_5_b-SPARC_Enterprise_T5440.pkg . {info} Also note that for the case of the SP not being networked the procedure requires that the firmware patch file be first downloaded to the host server OS, and from the host server OS, the patch file can be unzipped and the frmware.pkg file should be downloaded using the sysfwdownload command directly to the SP: {panel:borderStyle=solid| borderColor=black|bgColor=#e6e6e6} {{bash # */usr/platform/sun4v/sbin/sysfwdownload Sun_System_Firmware-7_1_5_b-SPARC_Enterprise_T5440.pkg{*}}} {{..............(7%)...............(15%)..................}} {{(23%)..................(31%).....................(39%)..}} {{..............(47%)................(55%)................}} {{.....(63%)...............(71%).................(79%)....}} {{.........(87%)............(%95).............(100%)}} {{Download completed successfully.}}
|
...
h6. (Contributed by Francois Marcoux)
h2. Clone a Guest Domain locally
Cloning a Guest Domain locally can be done as follows: * clone the source Guest Domain's OS disk. * create a target Guest Domain with the same configuration as the source Guest Domain.
One considers here that the source Guest Domain does not have any data disks (only a boot disk).
*Duplicate the source OS disk* Several duplication techniques can be used. A few examples are: * dd for disk partitions, LUNs or slices * ZFS snapshot and cloning features * SVM mirrors * ufsdump/ufsrestore
At the end of this step, the target OS disk should be an exact copy of the source OS disk. *Create the virtual volume associated with the target OS disk* * Here, with a SAN LUN: {panel:borderStyle=solid| borderColor=black|bgColor=#e6e6e6} {{primary# *ldm add-vdsdev /dev/dsk/c4t600601604FE610007A635A903FA0D811d0s2 ldg1_VOL0@VDS{*}}} {panel}
*Create the target domain from the source domain configuration* - Source domain : ldg0 - Target domain : ldg1
Check that enough resources (CPU, memory) are available to create a target domain as large as the source domain. If not, the XML configuration file used to create the target domain would have to take that into account. * Here source domain ldg0 has 32 vCPUs and 16 GB of RAM. 48 vCPUs and 24 GB of RAM remain available, so enough to create a target domain as large as ldg0: {panel:borderStyle=solid| borderColor=black|bgColor=#e6e6e6} {{primary# *ldm list ldg0{*}}} {noformat:nopanel=true} NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
|