Solaris is a Unix operating system originally developed by Sun Microsystems. Solaris is most advanced enterprise operating system. It delivers security, speed, and simplicity for enterprise

Data Center Consolidation

Data center consolidation is the process of reducing the volume of physical IT assets through highly efficient and scalable technologies. Organizations leverage data center consolidation to reduce operating costs.

Analyse and Solve Serious Hardware and Sofware Problems

Listing several basic hardware and software troubleshooting steps with respect to operating systems, software programs, and computer hardware.

Mission Critical Systems

A mission critical system is a system that is essential to the survival of a business or organization. When a mission critical system fails or is interrupted, business operations are significantly impacted.

The best server hardware to maximize IT performance

Data center hardware advances target new workloads such as big data processing, as well as higher efficiency for existing apps and services. The best server hardware for your data center depends on existing and planned application architectures, data center operations staff skills and of course the IT budget.

Showing posts with label Logical Domain. Show all posts
Showing posts with label Logical Domain. Show all posts

Monday, July 13, 2020

Creating and Starting a Guest Domain

The guest domain must run an operating system that understands both the sun4v platform and
the virtual devices presented by the hypervisor. Currently, this means that you must run at least
the Oracle Solaris 10 11/06 OS. Running the Oracle Solaris 10 8/11 OS provides you with all the
OracleVMServer for SPARC 3.0 features. See the OracleVMServer for SPARC 3.0 Release Notes
for any specific patches that might be necessary. Once you have created default services and
reallocated resources from the control domain, you can create and start a guest domain.

1. Create a logical domain.
For example, the following command would create a guest domain named ldg1.
primary# ldm add-domain ldg1

2. Add CPUs to the guest domain.
For example, the following command would add eight virtual CPUs to guest domain ldg1.
primary# ldm add-vcpu 8 ldg1

3. Add memory to the guest domain.
For example, the following command would add 2 gigabytes of memory to guest domain ldg1.
primary# ldm add-memory 2G ldg1

4. Add a virtual network device to the guest domain.
For example, the following command would add a virtual network device with these specifics to
the guest domain ldg1.
primary# ldm add-vnet vnet1 primary-vsw0 ldg1
Where:
■ vnet1 is a unique interface name to the logical domain, assigned to this virtual network
device instance for reference on subsequent set-vnet or remove-vnet subcommands.
■ primary-vsw0 is the name of an existing network service (virtual switch) to which to
connect.

5. 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.
■ Physical Disk Example. The first example adds a physical disk with these specifics.
primary# ldm add-vdsdev /dev/dsk/c2t1d0s2 vol1@primary-vds0
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. This second example is exporting a file as a block device.
primary# ldm add-vdsdev backend vol1@primary-vds0
Where:
■ backend is the path name of the actual file exported as a block device. When adding a
device, the back end 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.

6. Add a virtual disk to the guest domain.
The following example adds a virtual disk to the guest domain ldg1.
primary# ldm add-vdisk vdisk1 vol1@primary-vds0 ldg1
Where:
■ vdisk1 is the name of the virtual disk.
■ vol1 is the name of the existing volume to which to connect.
■ primary-vds0 is the name of the existing virtual disk server to which to connect.

7. Set the auto-boot? and boot-device variables for the guest domain.
The first example command sets auto-boot? to true for guest domain ldg1.
primary# ldm set-var auto-boot\?=true ldg1
The second example command sets boot-device to vdisk1 for guest domain ldg1.
primary# ldm set-var boot-device=vdisk1 ldg1

8. Bind resources to the guest domain ldg1 and then list the domain to verify that it is bound.
primary# ldm bind-domain ldg1
primary# ldm list-domain ldg1
NAME STATE FLAGS CONS VCPU MEMORY UTIL UPTIME
ldg1 bound ----- 5000 8 2G

9. 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.

10. Connect to the console of a guest domain fromanother terminal by logging into the control
domain and connecting directly to the console port on the local host.
$ ssh hostname.domain-name
$ telnet localhost 5000

11. Start the guest domain ldg1.
primary# ldm start-domain ldg1


Create Logical domain (guest VM):-
root@proddb01:~# ldm add-domain erpdbnode01
root@proddb01:~# ldm add-vcpu 128 erpdbnode01
root@proddb01:~# ldm add-memory 440G erpdbnode01
root@proddb01:~# ldm add-vnet vnet1 primary-vsw0 erpdbnode01
root@proddb01:~# ldm add-vdsdev /dev/dsk/c0t000B08000C004050d0 vol1@primary-vds0
root@proddb01:~# ldm add-vdisk vdisk1 vol1@primary-vds0 erpdbnode01
root@proddb01:~# ldm set-var auto-boot\?=true erpdbnode01
root@proddb01:~# ldm set-var boot-device=vdisk1 erpdbnode01
root@proddb01:~# ldm bind-domain erpdbnode01
root@proddb01:~# ldm list-domain erpdbnode01
NAME             STATE      FLAGS   CONS    VCPU  MEMORY   UTIL  NORM  UPTIME
erpdbnode01      bound      ------  5000    128   440G                
root@proddb01:~# ldm add-vdsdev /u02/sol-11_1-text-sparc.iso s10u7iso@primary-vds0
Failed to add device /u02/sol-11_1-text-sparc.iso
as s10u7iso@primary-vds0 because this device is already exported on LDom primary.
Volume s10u7iso already exists in vds primary-vds0
root@proddb01:~# ldm add-vdisk vdisk_iso s10u7iso@primary-vds0 erpdbnode01
root@proddb01:~# ldm bind-domain erpdbnode01
LDom erpdbnode01 cannot be bound because it is already bound
root@proddb01:~# ldm list-bindings -e erpdbnode01

How to Set Up the Control Domain

1. Determine whether you have cryptographic devices in the control domain.
Note that only UltraSPARC T2, UltraSPARC T2 Plus, and SPARC T3 platforms have
cryptographic devices (MAUs). Because newer platforms, such as SPARC T4 systems and
Fujitsu M10 systems, do not have separate cryptographic units, there is no need to assign a
cryptographic accelerator on these platforms.
primary# ldm list -o crypto primary

2. Assign cryptographic resources to the control domain, if applicable.
The following example would assign one cryptographic resource to the control domain,
primary. This leaves the remainder of the cryptographic resources available to a guest domain.
primary# ldm set-mau 1 primary

3. Assign virtual CPUs to the control domain.
For example, the following command would assign 8 virtual CPUs to the control domain,
primary. This leaves the remainder of the virtual CPUs available to a guest domain.
primary# ldm set-vcpu 8 primary

4. Initiate a delayed reconfiguration on the control domain.
primary# ldm start-reconf primary

5. Assign memory to the control domain.
For example, the following command would assign 4 gigabytes of memory to the control
domain, primary. This leaves the remainder of the memory available to a guest domain.
primary# ldm set-memory 4G primary

6. Add a logical domain machine configuration to the service processor (SP).
For example, the following command would add a configuration called initial.
primary# ldm add-config initial

7. Verify that the configuration is ready to be used at the next reboot.
primary# ldm list-config
factory-default
initial [current]
This ldm list-config command shows that the initial configuration set will be used after
you perform a power cycle.


Create Primary Control Domain:-
root@proddb01:~# svcadm enable ldmd
root@proddb01:~# ldm add-vcc port-range=5000-5100 primary-vcc0 primary
root@proddb01:~# ldm add-vds primary-vds0 primary

root@proddb01:~# ldm add-vsw net-dev=net1 primary-vsw0 primary
root@proddb01:~# ldm list-services primary
root@proddb01:~# ldm set-vcpu 32 primary
root@proddb01:~# ldm start-reconf primary
root@proddb01:~# ldm set-memory 64G primary
root@proddb01:~# ldm add-config initial
root@proddb01:~# ldm list-config
factory-default
initial [current]
root@proddb01:~# shutdown -y -i 6