27
Planning Oracle VM Tarmo Alasoo Enkitec Europe www.enkitec.eu 1 www.enkitec.eu

Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Embed Size (px)

DESCRIPTION

Event: Oracle Technology Day 2011 Date: 20.10.2011 Place: Nordic Hotel Forum Country: ESTONIA

Citation preview

Page 1: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Planning Oracle VM

Tarmo Alasoo

Enkitec Europe

www.enkitec.eu

1 www.enkitec.eu

Page 2: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Introduction

• About me: – I have been in IT for more than 18 years

– Last 10 years been working on Oracle technology

– I’m certified for 8i,9i,10g OCP and RAC/Linux OCE

– Starting from 2006, I’ve been a part-time lector at the Oracle University Estonia delivering different Oracle DBA courses as needed.

– In 2011 Enkitec Europe was born! I joined with Tanel Põder to help him to build this magnificent company!

2 www.enkitec.eu

Page 3: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Introduction

• Topics in this presentation

– Consolidation options

– Oracle VM Server benefits

– Oracle VM Server features

– Oracle DB Licensing for the Processor metric

– Configuring Oracle VM to manage Oracle Database licensing cost

– Configuration Examples

3 www.enkitec.eu

Page 4: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Introduction

• Every company wants to manage their IT as efficiently as possible! Companies want to have systems which are powerful, highly available and easy to manage at the lowest cost possible.

• Virtualization is one way to create efficient and flexible IT environments, providing better availability and reliability of configured systems and at the same time optimizing total cost of ownership (TCO).

4 www.enkitec.eu

Page 5: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Consolidation options

• Optimized for the Oracle Database:

– Oracle Database Appliance (ODA)

– Oracle RAC One Node

– Oracle Exadata Database Machine

5 www.enkitec.eu

Page 6: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Consolidation options

• Server Virtualization:

– Oracle VM Server (x86 and SPARC)

– Oracle Solaris Containers (Zones)

6 www.enkitec.eu

Page 7: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Oracle VM Server benefits

• Oracle VM Server is a free server virtualization and management solution that makes enterprise applications easier to deploy, manage, and support.

• But Support is needed to get software updates:

– Oracle VM Premier Limited*: • License - $0

• Support - $599 per server per year

– Oracle VM Premier: • License - $0

• Support - $1199 per server per year

* If no more than 2 physical CPUs per server system

7 www.enkitec.eu

Page 8: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Oracle VM Server benefits

• VM GUI is pure browser-based, no need to install separate client software.

• Every Oracle VM Manager operation is performed as a “job”. A job consists of all the steps involved in the successful completion of the operation.

www.enkitec.eu 8

Page 9: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Oracle VM Server benefits

• 90+ Oracle VM Templates available! – Preconfigured VM hosts containing different Oracle

technology for you to learn and test!

• Download free from edelivery.oracle.com

• Import to the Oracle VM

• Start-Up in Oracle VM

– Example: E-Business Suite, JD Edwards EnterpriseOne, PeopleSoft, WebLogic, Oracle EM GRID Control, Oracle RAC, Oracle Database, Oracle Enterprise Linux, Solaris 10 and 11 etc.

www.enkitec.eu 9

Page 10: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Oracle VM Server benefits

• Is the only server virtualization software supported and certified with Oracle products. For example, for VMware Oracle products are "Supported" but “NOT “Certified“*!

*Oracle does not do any testing or maintain any VMware environments at Oracle which means that VMware may be required to assist you if there is an issue.

• All new Oracle product releases are certified by default, see “Certified Software on Oracle VM” [MOS Note. 464754.1]

www.enkitec.eu 10

Page 11: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Oracle VM Server benefits

• Is recognized by Oracle to be used with hard and soft partitioning to help to manage your Oracle enterprise technology license costs!

• For example, disabling CPU cores in Server BIOS is not a supported method for managing the number of licensed CPUs.

11 www.enkitec.eu

Page 12: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Oracle VM Server features

• Oracle VM Server 2:

– supports X86 and x86_64 host hardware only!

– Oracle VM Server 2.2.2, Xen hypervisor v. 3.4.0

– Up to 128 physical CPUs and 1TB of memory

– each Guest VM supports up to 32 vCPU and 510GB of memory.

12 www.enkitec.eu

Page 13: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Oracle VM Server features

• Oracle VM Server 3:

– Supports x86, x86_64 and SPARC host hardware!

– Oracle VM Server 3.0.2, Xen hypervisor v. 4.0.1

– Up to 160 physical CPUs and 2TB of memory

– OCFS2 Storage space up to 64TB

– Supports up to 128 Guest Virtual Machines

– each Guest VM supports up to 128 vCPU and 1TB memory

13 www.enkitec.eu

Page 14: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Oracle VM Server features

• Supported Hardware Virtualized Guest OS’s:

– Oracle Linux Release 4.x, 5.x, 6.x

– Oracle Solaris 10 and 11 Express

– RedHat Enterprise Linux 4.x, 5.x, 6.x

– Microsoft Windows Server 2003, 2008

– Microsoft Windows XP, Vista and 7

14 www.enkitec.eu

Page 15: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Oracle VM Server features

• Supported Paravirtualized Guest OS’s:

– Oracle Linux Release 4.x, 5.x, 6.x

– Red Hat Enterprise Linux 4.x, 5.x, 6.x

• Paravirtualized drivers for Windows

15 www.enkitec.eu

Page 16: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Oracle VM Server features

• Oracle VM server supports CPU oversubscription. – Configure up to 32 vCPU’s in Oracle VM 2.2

• Oracle VM server does not support memory oversubscription. – When using VM Server cluster, for Live Migration or

Failover, make sure you have enough memory available on the other Node.

16 www.enkitec.eu

Page 17: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Oracle DB Licensing for the Processor metric

• AMD and Intel x86 Processor Core Licensing Factor is 0,5

• 1 x 4-Core CPU needs 2 DB licenses

• 1 x 6-Core CPU needs 3 DB licenses

• So if you have Physical Server with 2 x 6-Cores CPU’s, 12 cores in total, you need 6 DB licenses!

• What if you need less and want to pay less?

• Want to follow "Pay As You Grow“ model?

17 www.enkitec.eu

Page 18: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Oracle DB Licensing for the Processor metric

• Server/Hardware partitioning helps to optimize software licenses!

• “Partitioning” occurs when the CPUs on a server are separated into individual sections where each section acts as a separate system.

• Types of Partitioning: "Soft Partitioning" and "Hard Partitioning“

• http://www.oracle.com/us/corporate/pricing/partitioning-070609.pdf

• http://www.oracle.com/technetwork/topics/virtualization/ovm-hardpart-167739.pdf

18 www.enkitec.eu

Page 19: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Configuring Oracle VM to manage Oracle Database licensing cost

• Soft partitioning requires the sum of an Oracle VM server’s CPU cores to be licensed.

– Each Oracle VM server running a guest with an Oracle technology product must be licensed. We can use a manual placement policy to license a subset of pool member servers. For example, in a 3 server pool, you could license 2 out of the 3 pool members.

– This method has the ability to use Live Migration!

19 www.enkitec.eu

Page 20: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Configuring Oracle VM to manage Oracle Database licensing cost

• Hard partitioning allows a customer to license a subset of a server’s CPUs.

– All hard partitioned guests must pin the virtual CPUs to the Oracle VM server’s physical CPU cores in the guest’s vm.cfg file.

– All hard partitioned guests must have an Oracle VM Manager manual placement policy to confine the guests to the pinned Oracle VM server(s)

– All hard partitioned guests “cannot” use Live Migration.

20 www.enkitec.eu

Page 21: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Configuring Oracle VM to manage Oracle Database licensing cost

• For Oracle CPU licensing purposes it is required to manually edit vm.cfg file and hardcode the cpu binding for each guest or virtual machine.

• vm.cfg examples: cpus = '0-1'

• Only CPU cores 0,1 are used for Guest VM

21 www.enkitec.eu

Page 22: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Configuration examples

• [root@oraclevms ~]# xm list

Name ID Mem VCPUs State Time(s)

60_dm01db01 57 1536 2 r----- 1714.1

62_dm01db02 58 1536 2 -b---- 1066.4

• [root@oraclevms ~]# xm vcpu-list 60_dm01db01

Name ID VCPU CPU State Time(s) CPU Affinity

60_dm01db01 57 0 3 -b- 607.9 any cpu

60_dm01db01 57 1 0 -b- 582.6 any cpu

• [root@oraclevms ~]# xm vcpu-list 62_dm01db02

Name ID VCPU CPU State Time(s) CPU Affinity

62_dm01db02 58 0 1 -b- 284.8 any cpu

62_dm01db02 58 1 4 r-- 280.9 any cpu

22 www.enkitec.eu

Page 23: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Configuration examples

• [root@oraclevms ~]# cat /OVS/running_pool/60_dm01db01/vm.cfg

bootloader = '/usr/bin/pygrub'

disk = ['file:...','file:...','file:...','file:...',]

keymap = 'en-us'

maxmem = 1536

memory = 1536

name = '60_dm01db01'

on_crash = 'restart'

on_reboot = 'restart'

uuid = 'd3fa4e66-26c2-4175-95f9-a1741bc916d0'

vcpus = 2

vfb = ['type=...']

vif = ['bridge=xenbr0,...','bridge=ibr0,...',]

vif_other_config = []

23 www.enkitec.eu

Page 24: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Configuration examples

• [root@oraclevms ~]# cat /OVS/running_pool/62_dm01db02/vm.cfg

bootloader = '/usr/bin/pygrub'

disk = ['file:...','file:...','file:...','file:...',]

keymap = 'en-us'

maxmem = 1536

memory = 1536

name = '62_dm01db02'

on_crash = 'restart'

on_reboot = 'restart'

uuid = 'a7f6a753-c8bb-42a0-8760-aa4c83c130fc'

vcpus = 2

vfb = ['type=...']

vif = ['bridge=xenbr0,...','bridge=ibr0,...',]

vif_other_config = []

24 www.enkitec.eu

Page 25: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Configuration examples

• [root@oraclevms ~]# xm shutdown 60_dm01db01

• [root@oraclevms ~]# xm shutdown 62_dm01db02

• [root@oraclevms ~]# vi /OVS/running_pool/60_dm01db01/vm.cfg

Add line -> cpus = '0-1'

• [root@oraclevms ~]# vi /OVS/running_pool/62_dm01db02/vm.cfg

Add line -> cpus = '2-3 '

• [root@oraclevms ~]# xm start 60_dm01db01

• [root@oraclevms ~]# xm start 62_dm01db02

25 www.enkitec.eu

Page 26: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Configuration examples

• [root@oraclevms ~]# xm list

Name ID Mem VCPUs State Time(s)

60_dm01db01 62 1536 2 -b---- 360.1

62_dm01db02 63 1536 2 r----- 135.7

• [root@oraclevms ~]# xm vcpu-list 60_dm01db01

Name ID VCPU CPU State Time(s) CPU Affinity

60_dm01db01 62 0 0 -b- 179.4 0-1

60_dm01db01 62 1 1 -b- 182.5 0-1

[root@oraclevms ~]# xm vcpu-list 62_dm01db02

Name ID VCPU CPU State Time(s) CPU Affinity

62_dm01db02 63 0 2 -b- 69.4 2-3

62_dm01db02 63 1 3 -b- 69.6 2-3

26 www.enkitec.eu

Page 27: Oracle vm 3.0 Fresh Start - Tarmo Alasoo

Thank you!

www.enkitec.eu 27