Académique Documents
Professionnel Documents
Culture Documents
Higher Availability
RAC systems can be configured to have no single point of failure
Scalability
RAC allows database systems to scale-out rather than having to scale-up
Flexibility
RAC allows users to easily adapt the hardware infrastructure that supports their database systems
Affordability
Can be built using low-cost servers and low-cost storage
Manageability
RAC with EM, allows users to manage a cluster of database servers as if they were single systems.
Pooling of resources across applications Flexible resource sharing and management Highest possible scalability and availability Can be built using low-cost servers and low-cost storage Works for existing applications with no changes
Node1
Node 2
Node n
Operating System
Operating System
Redo / Archive logs all instances Database / Control files OCR and Voting Disks
Sub-capacity licensing
Oracle VM can be configured using hard partitioning Hard partitioning allows you to license only CPUs used by the partition instead of all CPUs on a physical server
Virtual Cluster
Create RAC environment on a single physical server Perfect environment for test, Q/A, or demo clusters
Planned : RAC-OVM Template - coming soon 64bit support coming soon 11g support Support for Dynamic resources changes HA Restart and Live Migration support
Dedicated Storage
Directly mounted to guest IP storage only
DOM0
Mgmt & Control Domain NFS Client OCFS Storage Block Devices
1 2
NFS
NFS
Guest OS HV Guest VM
Guest OS PV Guest VM
iSCSI
Hypercall API
iSCSI
Mem
I/O
I/O
Mem
CPU
1. 2. 3.
Enhanced NFS driver Block Device Loop-back driver Block Device driver
Ensure enough memory to accommodate DomU components (OS, CRS, and RAC databases) Do not overload Dom0 with unnecessary packages, products and workload
O r a c le C lu s te r W a r e
O r a c le E n te r p r is e L in u x
D a ta b a s e 1
G u e s t D o m a in 2
A S M In s ta n c e +ASM 2
D a ta b a s e 1 In s ta n c e 2
O r a c le C lu s te r W a r e
O r a c le E n t e r p r is e L in u x
D o m a in - 0
Guest Domain 2 ASM Instance +ASM1 Database 2 Instance 1 Database 2 Database 2 Instance 2
Domain-0
Domain-0
A S M In s ta n c e +A SM 1
A S M In s ta n c e +A SM 2
/d e v /x v d a
V B D D r iv e r
V B D D r iv e r
/d e v /x v d a
D o m a in -0 /d e v /s d a
S A N S w itc h 1
S A N S w itc h 2
P ro c e s s o r 0
S A N S to ra g e
P ro c e s s o r 1
L U N -1
OCFS filesystem
/dev/xvda
VBD Driver
VBD Driver
/dev/xvda
Domain-0 /dev/sda
SAN Switch 1
SAN Switch 2
Processor 0
SAN Storage
Processor 1
LUN-1
These networks can be shared with multiple RAC VM guests, but network bandwidth and capacity needs to reviewed and correctly sized For complete network redundancy, 4-6 NICs recommended Bond ethx interfaces in Dom0 for HA and bandwidth
G uest 2
P r iv a t e n e tw o rk
e th 0
e th 1
e th 0
e th 1
D o m a in -0
x e n b r0
xen b r1
bond0
bond1
e th 0
e th 1
e th 2
e th 3
P u b lic N e tw o rk S w itc h 1
P u b lic N e tw o r k S w itc h 2
P riv a te N e tw o r k S w itc h 1
P riv a te N e tw o rk S w itc h 2
Guest 2
/u01/oradata Storage network
Storage network
eth0
eth1
eth2
eth0
eth1
eth2
Domain-0
xenbr0
xenbr1
xenbr2
bond0
bond1
bond2
eth0
eth1
eth2
eth3
eth4
eth5
Network Config
Make sure bridges are configured correctly in Dom0 Ensure order and MAC address bonding to interfaces in the vm.cfg config files Use brctl show to verify Ensure no firewall exists in DomU The default firewall in the Oracle supplied Linux templates blocks RAC traffic. Prevent duplicate MAC addresses on the network
xenbr1
8000.feffffffffff
no
xenbr2
8000.feffffffffff
no
xenbr3
8000.feffffffffff
no
interfaces vif2.0 peth0 vif0.0 vif2.1 peth1 vif0.1 vif2.2 peth2 vif0.2 peth3 vif0.3
[root@strab03 ~]#
vif2.2 means interface eth2 running in domain with id 2 so in this case eth2 in domain OVM_EL5U1_X86_64_PVM_10GB
0.0.0.0/0
destination 0.0.0.0/0
destination
destination 0.0.0.0/0 0.0.0.0/0 0.0.0.0/0 0.0.0.0/0 224.0.0.251 0.0.0.0/0 0.0.0.0/0 0.0.0.0/0 0.0.0.0/0 0.0.0.0/0
udp dpt:5353 udp dpt:631 tcp dpt:631 state RELATED,ESTABLISHED state NEW tcp dpt:22 reject-with icmp-host-prohibited
This default template firewall will block RAC and ClusterwareTrafic. Stop with service iptables stop and disable with chkconfig iptables off
Requires 6 block devices to be used for ASM and OCR/Vote Deployment script will perform the following:
ssh setup and configured (password-less logins) Update /etc/hosts, define VIP addresses Updates Ifcfg-ethx files chmod/ownership for ASM devices and OCR/Vote
More Information
Oracle RAC on OVM Technical White Paper:
http://www.oracle.com/technology/products/database/clusterware/pdf/ oracle_rac_in_oracle_vm_environments.pdf