Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for...
Transcript of Oracle VM Greatest Platform for Deploying Oracle Database ... VM Greatest Platform for...
1
1
Oracle VM Greatest Platform for Deploying
Oracle Database & Applications
Sai Janakiram
Hewlett-Packard
2
Sai Janakiram Penumuruo Twelve years in Oracle DBA / Oracle Apps DBA / Cloud Technologist/ Oracle ACEo Current Position: WW Product Expert, Cloud Platform - Oracle in hpo Co-Fonder & Director of Finance - All India Oracle Users Group (AIOUG)o Oracle Database 12c Beta Testero Oracle VM SIG Leader www.oraclevmsig.orgo Blog: www.oadba.com; www.oracle12c.info
Agenda
What is Virtualization?
What is Oracle VM ?
Why run Oracle on Oracle VM?
Oracle VM Templates for Oracle Database
Oracle Virtual Assembly Builder
Stay Connected
4
Background
Running today’s non-critical business applications invirtualized environments has shown to be efficientand cost saving.
Oracle VM is the only software based virtualization solution that is fully supported andcertified for Oracle products.
Support Position for Oracle Products Running on VMware Virtualized Environments [ID 249212.1]Oracle has not certified any of its products on VMware virtualized environments. Oracle Supportwill assist customers running Oracle products on VMware in the following manner: Oracle will onlyprovide support for issues that either are known to occur on the native OS, or can bedemonstrated not to be as a result of running on VMware.
What is Virtualization?
6
What is Virtualization?It is a abstraction of computer hardware resources
Virtualization technology emulates real — or physical — computing
resources, such as desktop computers and servers, processors
and memory, storage systems, networking, and individual
applications.
A hypervisor — also known as a virtual machine manager
(VMM) — allows multiple “guest” operating systems
to run concurrently on a single physical host
computer.
Types Hardware Virtualization Full Software Virtualization Para virtualization Hardware-assisted
software virtualization Component or resource
virtualization
Virtualization players in market
7
Reasons for Virtualization?
Server Consolidation
Server Provisioning
Backup/Restore
Hosting/ Cloud Computing
8
Types of Hypervisors
Oracle VMVMware vSphereKVMXenHyper-V
VirtualBoxVMware FusionVMware PlayerVMware Workstation
Guest OS
Guest OS
Guest OS
Server
Hypervisor
Type 1 – Native (Bare metal)
Guest OS
Guest OS
Guest OS
Operating System
Hypervisor
Server
Type 2 – Hosted
9
Server consolidation: A real-world example
10
Server consolidation: A real-world example
100 Sun Fire V880 systems runningOracle Solaris 8
17 Sun SPARC Enterprise T5240s systemsrunning Oracle Solaris 10
✓ Aggregate throughput performance would not change significantly for more workloads. In most cases, a singleT5240 can replace six V880s.✓ Reduced space: 100 V880s require 50 data center racks, whereas 17 T5240s can fit in a single rack.✓ Approximately 660,000 BTUs of heat generation would be removed from the data center.✓ Approximately $200,000 would be saved in electricity costs per year (ignoring the cost of cooling).✓ Acquisition costs for the new systems would be completely offset by the OPEX savings achieved in the first year.
=
11
Question - 1
__ allows multiple “guest” operating systemsto run concurrently on a single physical host
computer.
What is Oracle VM ?
13
Oracle VM – Foundation for Cloud
• At the core of Oracle’s Cloud strategy
• Integrated VM lifecycle & cloud
management solution with Oracle
Enterprise Manager
• Supports both x86 and SPARC
• Certified for Oracle products
• Cloud platform for Oracle & Non-Oracle
applications
oSupports Oracle Linux, Oracle Solaris, Microsoft
Windows, and other Linux distributions
14 Bare-Metal Server
Is a component that translates the
virtual machine into the underlying
hardware.
Installed with Oracle VM Server. It communicates with Oracle VM Manager for management of
virtual machines. dom0 - domain 0
Manages virtual machine lifecycle, including creating virtual machines from installation media or from a virtual machine template, deleting, powering off, uploading, deployment and live migration of virtual machines.
A self-contained virtualization environment
designed to provide a lightweight,
secure, server-based platform for running
virtual machines.
deploy operating systems and application
software within a supported
virtualization environment.
Oracle VM
15
Oracle VM Family: Choice and FlexibilityFrom Fully Configurable Software to “Turn Key” Systems
Oracle VM software for x86 & SPARC
• Zero cost license: pay only for support
• Full functionality including all management software
• Your hardware infrastructure
Virtual Compute Appliance
• Enterprise class, turn key converged infrastructure system containing servers, storage,
network, and software
• From power-on to production in about an hour
• Automated installation and configuration
16
Oracle VM for x86 Architecture Live migration, high availability, template deployment, dynamic resource scheduling
Oracle VM Manager• Centralized management server•Web browser-based: No client required•Manage hundreds or thousands of VMs centrally•Advanced virtualization management included
Oracle VM Server • Installs on “bare-metal” servers in about a minute• High performance at scale: Up to 240 physical CPUs and 6TB memory; Up to 128 vCPU and 2TB memory per VM
17
Oracle VM Server Features
High Availability: You can configure resources to restart the guests on another host if the underlying host fails.
Live Migration: You can relocate the guests from one host to another with no loss of service.
Load Balancing: If configured, Oracle VM automatically load balances upon guests startup
Performance: Xen hypervisor is among the fastest forms of virtualization.
Rapid Provisioning: Through the use of cloning and virtual machine templates, Oracle VM can quickly and efficiently create new guest operating system.
VM Templates: Oracle provides wide-range of preconfigured virtual machine templates.
18
Question - 2
Which type of virtualization technology does Oracle VM use?
A. Physical DomainB. OS-Level virtualizationC. Hypervisor based virtualizationD. Application virtualization
Why run Oracle on Oracle VM?
20
Why Virtualize with Oracle?Oracle VM Templates to shorten time to market
Oracle Enterprise Manager provides complete VMand cloud lifecycle management.
Rapid deployment with 100+ Oracle VM Templates
Oracle Virtualizationfrom applications to disk.
21
Oracle VM Templates -Easier...Faster...Lower Cost...Fully Supported for Production Deployments
• Rapid Deployment; 100+ Templates Available• Pre-built, pre-configured, production-ready VMs• Apps, Databases, Middleware, OS; Siebel CRM, Oracle RAC, More…• Near zero knowledge of OS, Application installation required• Automate deployment of a complete production ready 8 node RAC cluster in minutes
through a simple single configuration file
22
Oracle VM Templates Simplify Application Deployment
Pre-Built by Oracle Download Deploy
Oracle and non-Oracle Systems
23
Oracle VM Powering Oracle Engineered SystemsOracle VM Integrated with Oracle Systems
Oracle x86 &
SPARC systems
24
Oracle Enterprise Manager 12cTotal Cloud Control and Full Stack Management
PaaS
IaaS
Self-Service
Provisioning
Capacity
Planning
Assembly
Packaging
Policy-Driven
Resource Mgmt
Metering and
Chargeback
Configuration & Compliance
Lifecycle Management
Application Performance
& Quality Management
25
Some of the benefits of Oracle VM
Sub-capacity licensingOracle licensing model requires the Oracle database to be licensed for all CPUs on each server in the cluster.Oracle VM can be configured in such way that it is recognized as a hard partition. Hard partitions allowcustomers to only license those CPUs used by the partition instead of licensing all CPUs on the physicalserver.
Distributed Resource Scheduling (DRS)• Optimizes virtual machine CPU resource utilization in a server pool.
– Automatically moves virtual machines to another OVM Server within the pool if the threshold exceeds the existing server pool policy.– Thresholds can be set for both CPU and Network
Distributed Power Management (DPM)• Used to increase the consolidation ratio of VMs into least amount of OVM Servers required.
– Goal is to keep only minimum number of necessary OVM Servers running.– If policy finds OVM Servers without VMs, it can shutdown OVM Servers to conserve power.
Oracle VM Templates for Oracle Database
27
Oracle VM Templates for Oracle Databasehttp://www.oracle.com/technetwork/server-storage/vm/database-templates-12c-11gr2-1972804.html
28
RAC OVM Templates - Delivery Mechanism
• 32 bit and 64bit versions• Image files are built with ‘sparse file’ support• Inside each zip are tgz archives with the following files:
– VM Config file (text file)– Opatch lsinventory sample output– README / PDFs for installing– Disk 1 image file: Operating System– Disk 2 image file: Oracle Software
• Includes Clusterware, ASM and RAC• Follow the instructions in provided PDF files or document for the new DeployCluster tool
29
Using The RAC OVM TemplatesSteps to execute RAC OVM templates
• Step 1 Download Template 32/64• 11.1/11.2.0.1/11.2.0.2/11.2.0.3/Oracle RAC 12c Release 1 (12.1.0.1.0)
• Step 2 Register Template with Oracle VM Manager• Step 3 Create 2+ VMs• Step 4 Shared Storage
• For Non Production: Create Shared Disk using OVM Manager• Assigned Shared disk to all Guest VMs using OVM Manager
• For Production Deployment: Identify Physical Shared Disk• OVM2: Update all Guest VM’s vm.cfg files with location of shared disk• OVM3: Attach physical disks using Oracle VM Manager
• Step 5 Boot all VMs or use Deploycluster tool and skip Step 6• Step 6 Run OneCommand to Configure and Build RAC database
30
RAC on OVM – Deployment Configuration
• Two types of deployments• Production Oracle RAC OVM Configurations [Supported]
• Each RAC node must be deployed on a separate physical server for production environments• Shared database disks must be on physical disks
• Test Oracle RAC OVM Configurations• Above requirements are relaxed
• Templates support both configurations, each has its own PDF to help with steps
Non-Production deploymentProduction deployment
31
Template DocumentationSingle Instance & Oracle RAC 12c Release 1, including Oracle Grid Infrastructure (12.1.0.1.0) & Oracle Linux 6 Update 4
For Test For Production
Oracle Database 11g Rel. 2 + Patch Set two Update#2 (11.2.0.3.2) & Oracle Linux 6 Update 2 For Test For Production
Oracle Database 11g Rel. 2 + Patch Set one Update#6 (11.2.0.2.6) & Oracle Linux 5 Update 8 For Test For Production
Oracle Database 11g Rel. 2 + Patch Set two (11.2.0.3.0) & Oracle Linux 5 Update 7 For Test For Production
Oracle Database 11g Rel. 2 + Patch Set one Update#2 (11.2.0.2.2) & Oracle Linux 5 Update 6 For Test For Production
Oracle Database 11g Rel. 2 + Patch Updates (11.2.0.1.4) & Oracle Linux 5 Update 5 For Test For Production
Oracle Database 11g Rel. 2 + Patch Set one (11.2.0.2.0) & Oracle Linux 5 Update 4 For Test For Production
Oracle Database 11g Rel. 2 + Patch Updates (11.2.0.1.2) & Oracle Linux 5 Update 4 For Test For Production
32
Download deploycluster toolhttp://www.oracle.com/technetwork/server-storage/vm/rac-template-11grel2-166623.html
Then unzip it anywhere you wish, e.g.$ cd $HOME$ unzip -q RACOVM-Deploycluster-tool.zip$ cd deployclusterSome of the useful files to notice are:deploycluster.py - Deploycluster tool – RUN THISdeploycluster.ini - Options for deploycluster tool itselfREADME.txt - Details explanation of all flags/optionsutils - Directory with useful files, e.g:
netconfig*.ini - Sample netconfig.ini filesnetconfig.zip - Updated netconfig (may be needed when deploying older templates)params-sample.ini - Sample params.iniREADME.txt - Backwards compatibility steps for Oracle VM2 users
33
Create a netconfig.ini file
Using a simple text editor copy the sample netconfig.ini file from the utils directory, then adjust the namesand IPs suitable for your environment.
34
Running deploycluster.py$ ./deploycluster.py -u admin -p MyP123 -M racnode.0,racnode.1
-N netconf2nodes.ini
35
Running deploycluster.py (Cont’d)
36
Adding or Removing Node(s) / Instance(s)Fully automated addition and removal of nodes or instances
Simply run:./racovm.sh -S addnodes -N node2,node3
Or:./racovm.sh -S removenodes -N node2,node3
Or:./racovm.sh -S addinstances -N node2,node3
Or:./racovm.sh -S deleteinstances -N node2,node3
37
doall.sh – Run command on all nodesdoall.sh [options] <command> | "<command1>;<command2>;..<commandX>"
-l <user> : Login as user (default: current user)-x : Run commands in sequence (default: run in parallel)-P : Print commands as they are executed (default: noprint)-p : Setup passwordless SSH for <user> on all nodes listed in netconfig.ini-s : Skip confirmation for passwordless SSH setup-u : Skip unreachable nodes-U : Skip nodes that are unreachable or without passwordless SSH
configured-L first|last|skip : Local node execution order-N <node1>,<node2> .. : Nodes to run on (default: all nodes in
netconfig.ini)
Examples:./doall.sh -L last reboot
Oracle Virtual Assembly Builder
39
Oracle Virtual Assembly Builder
40
Oracle Virtual Assembly Builder Demo Appliance Downloadshttp://www.oracle.com/technetwork/middleware/ovab/downloads/ovab-demo-appliance-2015000.html
41
Oracle VM is integrated at ALL layers of the Red Stack
42
Keep Watch for SIG events
Downloadedelivery.oracle.com/oraclevmedelivery.oracle.com/linuxedelivery.oracle.com/solaris
Stay Connected
Oracle.com/virtualization
@ORCL_Virtualize
Facebook.com/OracleVirtualization
Oracle VM Group
Blogs.oracle.com/virtualization
Youtube.com/virtualization