Knowledge Base : Install DB11gR2 RAC VMWare

How to prepare VMWare ESX4i server for installation of Oracle RAC 11gR2 Grid Infrastructure

configure NTP for the ESX server

Time synchonization is essential in particular between RAC nodes.
The ESX server has an option to allow virtual machines to synchronize the time with the ESX host they are running on.

NTP should be configured into the guest OS in addition to this.

Th configure the ESX server:

  1. click Properties to display the NTP Daemon (ntpd) Options dialog box
  2. click NTP settings
  3. click Add to add NTP servers
  4. click General
  5. for the Startup Policy, select “Start and stop with host”
  6. click OK

configure ESX host networking

create a new virtual switch in the ESX server settings

Navigate to section “Configuration/Networking” in the VMWare vSphere client to configure the ESX server.

The virtual switch is dediced for the RAC interconnect.
If both RAC nodes are located in the same ESX server (e.g. for test purposes), it can be configured without any physical interface.

configure virtual machines for two RAC nodes

for OEL, configure E1000 network cards (VMNET3 has CPU load issues)

configure 2 ethernet adapters per node

configure shared disks

For Oracle Grid Infrastructure, we need voting disks and a CRS repository.

It is recommended to use ASM for shared storage in 11gR2.

Since 11gR2, it is possible and recommended to store the CRS repository together with voting disks in one ASM disk group, called +GRID.

To build this ASM disk group later, we need some shared storage devices.
Further shared storage is needed later for data storage itself.

For redundance, we need at least 2 copies of the cluster repository.
To use it as voting disks, we need an odd number of devices.
Hance, we need at least 3 shared disks for the +GRID ASM disk group, plus the disks for shared data storage.

create hard disks in shared disk directory

add a new harddisk to machine

  1. in vSphere client, select a virtual machine
  2. right-click the name of the virtual machine and select “Edit Settings” to display the Virtual Machine Properties pane
  3. click Add to display the “Add Hardware” wizard
  4. in the “Add Hardware” wizard select “Hard Disk for the Device Type”, and click “Next”
  5. in the “Disk” section of the “Select a Disk” page, select “Create a new virtual disk”
    1. set disk size to 5 GB
    2. select the “Support clustering features such as Fault Tolerance” check box, and select CRS1 to specify a datastore. Also, for vSphere 5, in the Disk Provisioning section select Thick Provision Eager Zeroed.
    3. click Next.
  6. on the “Compatibility Mode” page, click “Next”.
  7. on the “Advanced Options” page, in the “Virtual Device Node” section, select SCSI (1:0).
  8. in the “Mode” section, select “Independent”. Click Next.
  9. on the “Ready to Complete” page, click “Finish”.
  10. click “OK”.

delete it from machine

move the new hard disks .vdmk files to shared directory on datastore

  1. login to the ESX console via ssh
  2. (optionally) create a new directory for shared storage
  3. rename the disk file (optional)

You may want to rename the disk files to give it a name corresponding to the new disk funktionality.

After renaming them, the .vmdk file has to be edited to point to the new #flat.vmdk file.

change the line following “# Extent description” to reflect the new name of the flat file.

add hard disk to machine

set VMWare shared disk parameters

set the SCSI controller type to paravirtual

  1. select the virtual machine that was selected in the preceding step
  2. right-click the name of the virtual machine and select “Edit Settings” to display the “Virtual Machine Properties” pane
  3. in the device list, select the SCSI controller.
  4. in the “SCSI Bus Sharing” section, select “None”, keeping the default selection.
  5. in the “SCSI Controller Type” section, click “Change Type”.
  6. select “VMware Paravirtual”.
  7. click “OK”, and click “OK” again.

add configuration parameters to the virtual machines

  1. in vSphere Client, select a virtual machine
  2. right-click the name of the virtual machine and select E”dit Settings” to display the “Virtual Machine Properties” pane
  3. click the “Options” tab, click “Advanced”, and click “General”
  4. click “Configuration Parameters”
  5. on the “Configuration Parameters” page, add rows and entries for the shared disks in the virtual machine’s configuration parameters:
    1. set “multi-writer”
  6. repeat steps 1 through 5 for each of the remaining virtual machines

Install guest OS

  • attach CDROM
  • install guest OS

See also: Oracle Databases on VMware RAC Deployment Guide