Upload
dangkhuong
View
226
Download
0
Embed Size (px)
Citation preview
Oracle E-Business Suite: Migration to Oracle VM Template Based Deployment
Kai Yu
Oracle Solutions Engineering
Dell Inc.
Global Marketing
• Kai Yu, [email protected] – 17 years with Oracle Technology: DBA, Apps DBA, Architect – Hands-on experience on IT solution stack: hardware to software – Focus on Oracle RAC, Oracle VM and Oracle EBS –Oracle ACE Director, author and frequent presenter – IOUG Oracle RAC SIG President (2009-2010), Webinar Chair – IOUG Virtualization SIG Webinar Chair – 2011 OAUG Innovator of Year Award Winner –Oracle Blog: http://kyuoracleblog.wordpress.com/
• Dell Oracle Solutions Engineering: www.dell.com/oracle –Oracle Technology Solutions on Dell systems/storages –Dell | Oracle Solutions Components – Solutions stack: servers, storage, network, OS, Oracle VM,
Oracle RAC, Oracle Applications
About Author
2
Global Marketing
• Introduction to Oracle VM: Architecture and Components • Virtualizing Oracle E-Business Suite with Oracle VM • Oracle VM Infrastructure for Oracle EBS Virtualization POC • Migrating Oracle EBS Instance to Virtual Environment • Achieving Oracle EBS High Availability on VM • QA
Agenda
4
Global Marketing
Introduction to Oracle VM Technology
5
• Oracle VM Server: Xen Hypervisor, management domain dom0 Linux kernel with support of devices, IO, networking, etc. • VM: guest OS with applications running on domU • Server partition: multiple guest VMs run independently on a VM server • Virtual CPUs and Virtual Memory are signed for each guest VM All network and storage IOs of guest VMs go through Dom0 • VM Server Pool: an autonomous region of VM servers. • VM Servers in a VM server pool share Pool: an autonomous storage to provide high availability. • VM can be failed or live migrated to other VM server of the same VM server pool.
Global Marketing
Introduction to Oracle VM Technology
6
• Management: VM Manager and Enterprise Manager
• Oracle VM3.o released in August, 2011. New Oracle VM Manager provides centralized management
Scalability: up to 160 physical CPUs, 2 TB of memory 128 virtual CPUs and 1TB memory per guest VM Application Driven Virtualization: VM template based applications deployment
Global Marketing
Introduction to Oracle VM Technology
7
• VM Server Pool and VM Repository –HA enabled in server pool and VM level –Fail over and live migration of VM to other VM server. –All the VM servers in the VM server pool share storage –Shared storage: based on OCFS2/NFS-based for VM Repository. – VM Repository (OVM2.x): root: /OVS/ running_pool: all VM images seed_pool: all the VM templates shared_disks: for virtual storage –VM Repository (OVM 3.x): root:/OVS/Repisitries/XXXXXXXXXXXXXX virtualMachines: all virtual machines templates: see all the VM templates virtualDisks: for virtual disks storage Assemblies: VM Assemblies
• Guest VM creation –Paravirtualization and Hard Virtualization –Create VM from a VM template using VM manager –Create VM from an install tree using virt-install
Global Marketing
Virtualizing Oracle EBS with Oracle VM
8
• Benefits of Virtualizing Oracle EBS with Oracle VM –Server partitions and consolidation –High availability and scalability –Deployment standardization –Fast deployment –Dramatically reduced cloning time
• Certification of Oracle E-Business Suite on Oracle VM: Oracle EBS is certified to run on Oracle VM 2 and VM 3.0.2 & later :
Metalink note: 465915.1 and Steven Chan:
https://blogs.oracle.com/stevenChan/entry/oracle_vm_3_0_2
Release 11i –Oracle Applications 11.5.10.CU2 or later with 1i.ATG_PF.H.RUP5 –Oracle Database 10.2.0.3 or later
Release 12 –Applications R12 with Oracle E-Business Suite 12.0.2 Release
Update Pack RUP2 (patch 5473858) or later –Oracle Database 10.2.0.3 or later
Global Marketing
Virtualizing Oracle EBS with Oracle VM
9
• Oracle VM Templates for Oracle E-Business Suite
– Oracle VM Template Concept
– Consists of two virtual machines: EBS apps tier and EBS DB tier
– Downloadable template for Oracle EBS 12.1.1: Visions
VM template for Database tier VM: Vision demo DB
VM template for applications tier VM: Vision Demo instance • Oracle E-Business Virtualization Toolkit:
– What is virtualization toolkits ? Why do we need it? – The components of the virtualization toolkit: patch 9207542 ebiz_1211_reconfig.sh , ebiz_1211_cleanup.sh –Related Metalink documents: [977681.1], [975734.1]
Global Marketing
Virtualizing Oracle EBS with Oracle VM
10
• How to leverage Oracle VM for Oracle EBS Environment
–Need to establish Oracle EBS environment on VMs –But how? the process to create VMs and VM templates?
Fresh Install EBS on VMs , then build the template Use the Oracle EBS template from Oracle Migrate Oracle EBS from physical to virtual
• Process of Migrating Oracle EBS to Virtual environment –Streamline process ,no fresh installation needed –Preserve all the business data/logic, setups and
customization –Migrating the existing EBS instance to virtual environment –After the migration, we can: Create new EBS templates based on the migrated VMs Create new EBS instances using on the VM templates –New way to deploy new EBS instance
Global Marketing
Virtualizing Oracle EBS with Oracle VM
11
• Leverage Oracle E-Business Suite Template from Oracle
–Oracle EBS VMs created from the template:
Include OS configuration for Oracle EBS (APPS and DB)
Include Oracle E-Business Visualization Toolkit
but it has not business data and customization and setups
–Combine EBS VM templates with Clone of EBS on physical system
VMs configuration + EBS VM toolkit from VM templates
Business data, customization and setups from physical system
Global Marketing
Virtualizing Oracle EBS with Oracle VM
12
• Migration Process Design:
– Starting with downloaded Oracle EBS VIS VM Templates
–Build Oracle EBS VMs from the EBS VIS VM templates
–Replaced APPS and DB with the cloned copy from physical system
–Reconfigure and forms Oracle EBS DEV Instance VMs
–Create the new DEV VM template
–Create new EBS VMs from the DEV VM template
Global Marketing
POC Project Infrastructure
13
• Joint POC Project between Dell Solution Engineering and IT
– Develop a solution to migrate EBS from physical to VM
– Establish the VM template based EBS Instance deployment
for on-going Oracle EBS implementation project
• POC servers and shared storage infrastructure
– Physical Environment: Oracle E-Business Suite 12.1.1 x86-64 bit
APPs tier: Dell PE 2950 running Oracle Enterprise Linux 5U3
Database Tier: Dell PE 6950, Oracle Enterprise Linux 5U
– Virtual Infrastructure:
Oracle VM servers: 2 x Dell PowerEdge R810
Shared SAN storage: Dell EqualLogic PS6510 Storage ,
allocated 2TB for VM repository
VM Manager: 1 Dell PE2950 running VM Manager
Global Marketing
Task1: Create Vision Instance VM from Template
16
gfsdev Instance
DB server
Physical
Downloaded
VIS DB
template
Create DB VM
DB VM
ebs12_11_db
(ebsvmdb)
APPS VM
ebs12_1_1apps
(ebsvmapp)
VM Server Pool
Vision Instance
ebsdb
Create APPS VM
gfsdev Instance
APPS server
Physical
Downloaded
VIS APPS
template
Migrating Oracle EBS & Creating Template
Global Marketing
17
• Create EBS VMs using the downloaded Oracle EBS template – Download two VM templates from Oracle and import templates
OVM_EL5U3_X86_64_EBIZ12.1.1_APPs_VIS_VM
OVM_EL5U3-x86_64-EBIZ12.1.1_DB_VIS_VM
– Create VMs using two templates
Migrating Oracle EBS & Creating Template
Global Marketing
18
• Startup DB VM (ebsvmdb): Automatic reconfiguring DB VM: ebiz_1211_ereconfig.sh rapid clone adclone.pl
Migrating Oracle EBS & Creating Template
Global Marketing
21
Automatic reconfiguring APPS VM by calling rapid clone adclone.pl utility
Migrating Oracle EBS & Creating Template
Global Marketing
22
Automatic reconfiguring APPS VM by calling rapid clone adclone.pl utility
Migrating Oracle EBS & Creating Template
Global Marketing
23
Automatic reconfiguring APPS VM by calling rapid clone adclone.pl utility
Migrating Oracle EBS & Creating Template
Global Marketing
24
• Startup Oracle E-Business 12.1.1 Vision Instance on ebsvmapp:
Migrating Oracle EBS & Creating Template
Global Marketing
Migrating Oracle EBS & Creating Template Task2: Clone APPS and DB from DEV Instance
25
gfsdev Instance
DB server
Physical
Downloaded
VIS DB
template
DB VM
ebs12_11_db
(ebsvmdb)
APPS VM
ebs12_1_1apps
(ebsvmapp)
VM Server Pool
DB VM
ebs12_11_db
(ebsvmdb)
APPS VM
ebs12_11_1_apps
(ebsvmapps)
Copy gfsdev dbCopy gfsdev apps
ebsvm instance
Reconfigure Reconfigure
Downloaded
VIS APPS
template
gfsdev Instance
APPS server
Physical
Global Marketing
Migrating Oracle EBS & Creating Template
26
• Clone APPS and DB from physical servers to VMs – Run preClone on physical servers Run adpreclone on gfsdevapps (APPS server)
Run adpreclone on gfsdevdb (DB server)
– Copy the following from gfsdevapps to ebsvmapps /u01/oracle/gfsd/ /u01/E-BIZ/12.1.1/VIS
– Copy the following from gfsdevdb to ebsvmdb /u01/oracle/gfsd/db /u01/E-BIZ/12.1.1/VIS/db
– Setup for automatic reconfiguration /usr/sbin/oraclevm-template –cleanup remove instance specific configuration for gfsdev
/usr/sbin/oraclevm-template –enable set flag to run automatic reconfiguration next time VM startup on both VM (ebsvmdb and ebdvmapps)
• Reboot DB VM ebs_1211_db (hostname: ebsvmdb) – Automatic reconfiguring DB VM: ebiz_1211_reconfig.sh rapid clone adclone.pl apptier
Global Marketing
Migrating Oracle EBS & Creating Template
29
• Startup new EBS instance: ebsvm on VMs(host:ebsvmapps)
Global Marketing
Migrating Oracle EBS & Creating Template
30
• Review the cloned instance – The new instance ebdvm is the clone of the gfsdev instance gfsdevdb on physical server ebsvmdb on virtual machine
Global Marketing
Migrating Oracle EBS & Creating Template
31
• Rapid Cone adclone.pl reconfigured EBS Instance . • New EBS Instance ebsvm = gfsdev copy + Rapid Clone + two VMs from Oracle EBS templates • Virtualization kit scripts: /usr/sbin/oraclevm-template , /u01/ ebiz_1211_reconfig.sh
Global Marketing
Migrating Oracle EBS & Creating Template Task3: Create a New EBS Template
32
gfsdev Instance
DB server
Physical
Downloaded
VIS DB
template
DB VM
ebs12_11_db
(ebsvmdb)
APPS VM
ebs12_1_1apps
(ebsvmapp)
VM Server Pool
DB VM
ebs12_11_db
(ebsvmdb)
APPS VM
ebs12_11_1_apps
(ebsvmapps)
Newly Created
DB Template
Cleanup
Create Templateebsvm instance
Cleanup
Create Template
gfsdev Instance
APPS server
Physical
Downloaded
VIS APPS
template
Newly Created
APPS
Template
Global Marketing
Migrating Oracle EBS & Creating Template
33
• Cleanup the Instance specific config and set reconfigure flag – Shutdown the APPS and Database – remove instance specific configuration for ebsvm (both VMS) /usr/sbin/oraclevm-template –cleanup – set flag to run automatic reconfiguration VM during the VM
startup (for both VMs) /usr/sbin/oraclevm-template –enable • Create VM templates based on the new EBS VMs – Shutdown both APPS VM and Database VM – Save VM as Template
Global Marketing
Migrating Oracle EBS & Creating Template Task4: Create New EBS VM From the Template
35
gfsdev Instance
DB server
Physical
gfsdev Instance
DB server
Physical
Downloaded
VIS DB
template
DB VM
ebs12_11_db
(ebsvmdb)
APPS VM
ebs12_1_1apps
(ebsvmapp)
VM Server Pool
DB VM
ebs12_11_db
(ebsvmdb)
APPS VM
ebs12_11_1_apps
(ebsvmapps)
Newly Created
DB Template
ebsvm instance
DB VM
gfstestdb
(gfstestdb)
Create DB VM
gfstest instance
Downloaded
VIS APPS
template
Newly Created
APPS
Template
Create APPS VM
APPS VM
gfstestapps
(gfstest1apps)
Global Marketing
Migrating Oracle EBS & Creating Template
36
Create gfstestdb VM
Create gfstestapps VM
VM creation status:
.
Global Marketing
Migrating Oracle EBS & Creating Template
39
• Startup up Apps VM (gfstestapps) • Run autoconfig: oracle@gfstest1apps scripts]$ ./adautocfg.sh
.
Global Marketing
Migrating Oracle EBS & Creating Template
40
• New Oracle E-Business Suite Instance Deployed from the Template
.
Global Marketing
Oracle EBS High Availability on VM
42
• Live Migration: Migrate VMs to another VM server in the same VM server pool. No Downtime for Applications.
.
Global Marketing
Oracle EBS High Availability on VM
43
• Failed Over: Both DB and APPS VMs run on OWIVS2 VM server OWIVS2 VM server down
. Failed over to OWIVS1 in 1-2 minutes
Both VMs Down
Global Marketing
Summary and Acknowledgement
44
• Use Oracle VM template to create VMs for Vision instance • Clone EBS Apps and DB from development Instance • Reconfigure VMs to form the clone of the development
instance • Create the new VM template based on the development
instance. • Create the new development and test EBS instances on VM
environment using the new VM templates • Live Migration and Fail Over of Oracle EBS on Oracle VM • Special Thanks to the support of Oracle EBS on Oracle VM Team: Ivo Dujmovic and Noby Joseph in Oracle Corporation References: 1. Five-part series from Ivo Dujmovic:E-Business Suite 12.1.1
Templates for Oracle VM Now Available 2. Oracle VM Templates for E-Business Suite: Deployment Guide