Oracle RAC Install on Virtual Machine

Hardware Requirements and Overview

Allocate a minimum of 1 GB of memory to each virtual machine; reserve a minimum of 30GB of disk space for all the virtual machines.
An overview of the host operating system environment:
Host Name
OS
Processor
Memory
Disk
Network Card
pacu
Windows XP Professional Service Pack 2 (32-bit)
Intel Pentium 4 550, 3.4MHz, HT
2 GB DDR2 SDRAM, 533 MHz
250 GB, Ultra ATA/133, 7200 RPM
Intel Pro/1000 MT
An overview of guest operating system environment:
Host Name
OS
Processor
Memory
rac1
Oracle Enterprise Linux 4 (32-bit)
1
1 GB
rac2
Oracle Enterprise Linux 4 (32-bit)
1
1 GB
An overview of the virtual disk layout:
Virtual Disk on Host
Virtual Disk on Guest
Virtual Device Node
Size (MB)
Description
d:\vm\rac\localdisk.vmdk
/dev/sda1
/dev/sda2
/dev/sda3
SCSI 0:0
20
“/” mountpoint
Swap space
Oracle binaries
d:\vm\rac\sharedstorage\ocfs2disk.vmdk
/dev/sdb
SCSI 1:0
512
OCFS2 disk
d:\vm\rac\sharedstorage\asmdisk1.vmdk
/dev/sdc
SCSI 1:1
3072
ASM disk group 1
d:\vm\rac\sharedstorage\asmdisk2.vmdk
/dev/sdd
SCSI 1:2
3072
ASM disk group 1
d:\vm\rac\sharedstorage\asmdisk3.vmdk
/dev/sde
SCSI 1:3
2048
ASM flash recovery area
(To configure shared storage, the guest OS should not share the same SCSI bus with the shared storage. Use SCSI0 for the guest OS and SCSI1 for the shared disks.)
An overview of the RAC database environment:
Host Name
ASM Instance Name
RAC Instance Name
Database Name
Database File Storage
OCR & Voting Disk
rac1
+ASM1
devdb1
devdb
ASM
OCFS2
rac2
+ASM2
devdb2
devdb
ASM
OCFS2
You’ll install the Oracle Home on each node for redundancy. The ASM and Oracle RAC instances share the same Oracle Home on each node.

Configure the First Virtual Machine

To create and configure the first virtual machine, you will add virtual hardware devices such as disks and processors. Before proceeding with the install, create the windows folders to house the virtual machines and the shared storage.
D:\>mkdir vm\rac\rac1
D:\>mkdir vm\rac\rac2
D:\>mkdir vm\rac\sharedstorage
Double-click on the VMware Server icon on your desktop to bring up the application:
  1. Press CTRL-N to create a new virtual machine.
  2. New Virtual Machine Wizard: Click on Next.
  3. Select the Appropriate Configuration:
    1. Virtual machine configuration: Select Custom.
  4. Select a Guest Operating System:
    1. Guest operating system: Select Linux.
    2. Version: Select Red Hat Enterprise Linux 4.
  5. Name the Virtual Machine:
    1. Virtual machine name: Enter “rac1.”
    2. Location: Enter “d:\vm\rac\rac1.”
  6. Set Access Rights:
    1. Access rights: Select Make this virtual machine private.
  7. Startup / Shutdown Options:
    1. Virtual machine account: Select User that powers on the virtual machine.
  8. Processor Configuration:
    1. Processors: Select One.
  9. Memory for the Virtual Machine:
    1. Memory: Select 700MB.
  10. Network Type:
    1. Network connection: Select Use bridged networking.
  11. Select I/O Adapter Types:
    1. I/O adapter types: Select LSI Logic.
  12. Select a Disk:
    1. Disk: Select Create a new virtual disk.
  13. Select a Disk Type:
    1. Virtual Disk Type: Select SCSI (Recommended).
  14. Specify Disk Capacity:
    1. Disk capacity: Enter “20GB.”
    2. Deselect Allocate all disk space now. To save space, you do not have to allocate all the disk space now.
  15. Specify Disk File:
    1. Disk file: Enter “localdisk.vmdk.”
    2. Click on Finish.
Repeat steps 16 to 24 to create four virtual SCSI hard disks - ocfs2disk.vmdk (512MB), asmdisk1.vmdk (3GB), asmdisk2.vmdk (3GB), and asmdisk3.vmdk (2GB).
  1. VMware Server Console: Click on Edit virtual machine settings.
  2. Virtual Machine Settings: Click on Add.
  3. Add Hardware Wizard: Click on Next.
  4. Hardware Type:
    1. Hardware types: Select Hard Disk.
  5. Select a Disk:
    1. Disk: Select Create a new virtual disk.
  6. Select a Disk Type:
    1. Virtual Disk Type: Select SCSI (Recommended).
  7. Specify Disk Capacity:
    1. Disk capacity: Enter “0.5GB.”
    2. Select Allocate all disk space now. You do not have to allocate all the disk space if you want to save space. For performance reason, you will pre-allocate all the disk space for each of the virtual shared disk. If the size of the shared disks were to grow rapidly especially during Oracle database creation or when the database is under heavy DML activity, the virtual machines may hang intermittently for a brief period or crash in a few rare occasions.
  8. Specify Disk File:
    1. Disk file: Enter “d:\vm\rac\sharedstorage\ocfs2disk.vmdk.”
    2. Click on Advanced.
  9. Add Hardware Wizard:
    1. Virtual device node: Select SCSI 1:0.
    2. Mode: Select Independent, Persistent for all shared disks.
    3. Click on Finish.
Finally, add an additional virtual network card for the private interconnects and remove the floppy drive, if any.
  1. VMware Server Console: Click on Edit virtual machine settings.
  2. Virtual Machine Settings: Click on Add.
  3. Add Hardware Wizard: Click on Next.
  4. Hardware Type:
    1. Hardware types: Ethernet Adapter.
  5. Network Type:
    1. Host-only: A private network shared with the host
    2. Click on Finish.
  6. Virtual Machine Settings:
    1. Select Floppy and click on Remove.
  7. Virtual Machine Settings: Click on OK.

Modify virtual machine configuration file. Additional parameters are required to enable disk sharing between the two virtual RAC nodes. Open the configuration file, d:\vm\rac\rac1\Red Hat Enterprise Linux 4.vmx and add the bold parameters listed below.
config.version = "8"
virtualHW.version = "4"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic"
memsize = "700"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "localdisk.vmdk"
ide1:0.present = "TRUE"
ide1:0.fileName = "auto detect"
ide1:0.deviceType = "cdrom-raw"
floppy0.fileName = "A:"
Ethernet0.present = "TRUE"
displayName = "rac1"
guestOS = "rhel4"
priority.grabbed = "normal"
priority.ungrabbed = "normal"
 
disk.locking = "FALSE"
diskLib.dataCacheMaxSize = "0"
scsi1.sharedBus = "virtual"
 
scsi1.present = "TRUE"
scsi1:0.present = "TRUE"
scsi1:0.fileName = "D:\vm\rac\sharedstorage\ocfs2disk.vmdk"
scsi1:0.mode = "independent-persistent"
scsi1:0.deviceType = "disk"
scsi1:1.present = "TRUE"
scsi1:1.fileName = "D:\vm\rac\sharedstorage\asmdisk1.vmdk"
scsi1:1.mode = "independent-persistent"
scsi1:1.deviceType = "disk"
scsi1:2.present = "TRUE"
scsi1:2.fileName = "D:\vm\rac\sharedstorage\asmdisk2.vmdk"
scsi1:2.mode = "independent-persistent"
scsi1:2.deviceType = "disk"
scsi1:3.present = "TRUE"
scsi1:3.fileName = "D:\vm\rac\sharedstorage\asmdisk3.vmdk"
scsi1:3.mode = "independent-persistent"
scsi1:3.deviceType = "disk"
scsi1.virtualDev = "lsilogic"
ide1:0.autodetect = "TRUE"
floppy0.present = "FALSE"
Ethernet1.present = "TRUE"
Ethernet1.connectionType = "hostonly"

Install and Configure Enterprise Linux on the First Virtual Machine

Download Enterprise Linux from Oracle and unzip the files:
  • Enterprise-R4-U4-i386-disc1.iso
  • Enterprise-R4-U4-i386-disc2.iso
  • Enterprise-R4-U4-i386-disc3.iso
  • Enterprise-R4-U4-i386-disc4.iso
  1. On your VMware Server Console, double-click on the CD-ROM device on the right panel and select the ISO image for disk 1, Enterprise-R4-U4-i386-disc1.iso.
  2. VMware Server console:
    • Click on Start this virtual machine.
  3. Hit Enter to install in graphical mode.
  4. Skip the media test and start the installation.
  5. Welcome to enterprise Linux: Click on Next.
  6. Language Selection: <select your language preference>.
  7. Keyboard Configuration: <select your keyboard preference>.
  8. Installation Type: Custom.
  9. Disk Partitioning Setup: Manually partition with Disk Druid.
    • Warning: Click on Yes to initialize each of the device – sda, sdb, sdc, sdd, and sde.
  10. Disk Setup: Allocate disk space on sda drive by double-clicking on /dev/sda free space for the mount points (/ and /u01) and swap space. You will configure the rest of the drives for OCFS2 and ASM later.
    • Add Partition:
      • Mount Point: /
      • File System Type: ext3
      • Start Cylinder: 1
      • End Cylinder: 910
      • File System Type: Swap
      • Start Cylinder: 911
      • End Cylinder: 1170
      • Mount Point: /u01
      • File System Type: ext3
      • Start Cylinder: 1171
      • End Cylinder: 2610

  1. Boot Loader Configuration: Select only the default /dev/sda1 and leave the rest unchecked.
  2. Network Configuration:
    1. Network Devices
      • Select and edit eth0
        1. De-select Configure Using DHCP.
        2. Select Activate on boot.
        3. IP Address: Enter “192.168.2.131.”
        4. Netmask: Enter “255.255.255.0.”
      • Select and edit eth1
        1. De-select Configure Using DHCP.
        2. Select Activate on boot.
        3. IP Address: Enter “10.10.10.31.”
        4. Netmask: Enter “255.255.255.0.”
    2. Hostname
      • Select manually and enter “rac1.mycorpdomain.com.”
    3. Miscellaneous Settings
      • Gateway: Enter “192.168.2.1.”
      • Primary DNS: <optional>
      • Secondary DNS: <optional>
  3. Firewall Configuration:
    1. Select No Firewall. If firewall is enabled, you may encounter an error, “mount.ocfs2: Transport endpoint is not connected while mounting” when you attempt to mount ocfs2 file system later in the set up.
    2. Enable SELinux?: Active.
  4. Warning – No Firewall: Click on Proceed.
  5. Additional Language Support: <select the desired language>.
  6. Time Zone Selection: <select your time zone>
  7. Set Root Password: <enter your root password>
  8. Package Group Selection:
    1. Select X Window System.
    2. Select GNOME Desktop Environment.
    3. Select Editors.
      • Click on Details and select your preferred text editor.
    4. Select Graphical Internet.
    5. Select Text-based Internet.
    6. Select Office/Productivity.
    7. Select Sound and Video.
    8. Select Graphics.
    9. Select Server Configuration Tools.
    10. Select FTP Server.
    11. Select Legacy Network Server.
      • Click on Details.
        1. Select rsh-server.
        2. Select telnet-server.
    12. Select Development Tools.
    13. Select Legacy Software Development.
    14. Select Administration Tools.
    15. Select System Tools.
      • Click on Details. Select the following packages in addition to the default selected packages.
        1. Select ocfs-2-2.6.9-42.0.0.0.1EL (driver for UP kernel), or select ocfs-2-2.6.9-42.0.0.0.1ELsmp (driver for SMP kernel).
        2. Select ocfs2-tools.
        3. Select ocfs2console.
        4. Select oracle oracleasm-2.6.9-42.0.0.0.1EL (driver for UP kernel) or select oracleasm-2.6.9-42.0.0.0.1ELsmp (driver for SMP kernel).
        5. Select sysstat.
    16. Select Printing Support.
  9. About to Install: Click on Next.
  10. Required Install Media: Click on Continue.
  11. Change CD-ROM: On your VMware Server Console, press CTRL-D to bring up the Virtual Machine Settings. Click on the CD-ROM device and select the ISO image for disk 2, Enterprise-R4-U4-i386-disc2.iso, followed by the ISO image for disk 3, Enterprise-R4-U4-i386-disc3.iso.
  12. At the end of the installation:
    1. On your VMware Server Console, press CTRL-D to bring up the Virtual Machine Settings. Click on the CD-ROM device and select Use physical drive.
    2. Click on Reboot.
  13. Welcome: Click on Next.
  14. License Agreement: Select Yes, I agree to the License Agreement.
  15. Date and Time: Set the date and time.
  16. Display: <select your desired resolution>.
  17. System User: Leave the entries blank and click on Next.
  18. Additional CDs: Click on Next.
  19. Finish Setup: Click on Next.

Congratulations, you have just installed Enterprise Linux on VMware Server!
Install VMware Tools. VMware Tools is required to synchronize the time between the host and guest machines.
On the VMware Console, log in as the root user,
  1. Click on VM and then select Install VMware Tools.
  2. rac1 – Virtual Machine: Click on Install.
  3. Double-click on the VMware Tools icon on your desktop.
  4. cdrom: Double-click on VMwareTools-1.0.1-29996.i386.rpm.

  1. Completed System Preparation: Click on Continue.
  2. Open up a terminal and execute vmware-config-tools.pl.
    • Enter the desired display size.


Tags

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.