Oracle RAC Installation – Pre-Installation steps (Part 1)

1.Creation of a virtual machine 

1. Press CTRL-N to create a new virtual machine.
2. New Virtual Machine Wizard: Click on Next.
3. Select the Appropriate Configuration:
a) Virtual machine configuration: Select Custom.
4. Select a Guest Operating System:
a) Guest operating system: Select Linux.
b) Version: Select Red Hat Enterprise Linux 4.
Your virtual machine will be Oracle Enterprise Linux 5U1, since VMware is not
currently supporting it select the nearest possible (in this case Red Hat Enterprise
Linux 4) since the only thing useful from VMware in this case is the time syncing
with the host environment.
5. Name the Virtual Machine:
a) Virtual machine name: Enter “myrac1.”
b) Location: Enter “X:\VMRAC11G\OEL5_RAC1.”
6. Set Access Rights:
a) Access rights: Select Make this virtual machine private.
7. Startup / Shutdown Options:
a) Virtual machine account: Select User that powers on the virtual machine.
8. Processor Configuration:
a) Processors: Select One.
9. Memory for the Virtual Machine:
a) Memory: Select 512-700MB.
10. Network Type:
a) Network connection: Select Host only a private network shared with the
host.
11. Select I/O Adapter Types:
a) I/O adapter types: Select LSI Logic.
12. Select a Disk:
13. Disk: Select Create a new virtual disk.
14. Select a Disk Type:
a) Virtual Disk Type: Select SCSI (Recommended).
15. Specify Disk Capacity:
a) Disk capacity: Enter “12GB.”
16. Make sure the Allocate all disk space now is selected. VMware will spend less
CPU cycles whilst trying to access its “file system”.
17. Specify Disk File:
a) Disk file: Enter “X:\VMRAC11G\
OEL5_RAC1\OEL5_RAC_Disk1.vmdk.”
18. Click on Finish.
19. Select Edit virtual machine settings, on the pop up window select “Add…” then
“Next”, select “Add hard Disk”, then “Next”, then “Create New Virtual Disk”,
then “Next”, then select “SCSI (Recommended)” then “Next” specify “Disk Size”
2.5 GB and select “Allocate all disk space now” specify file name (check path
first) “X:\VMRAC11g\OEL5_RAC1\OEL5_RAC_Swap.vmdk”. For good
housekeeping and better performance swap disk should be specified on a
different file.

2. Creation of secondary virtual machine
Complete the following steps for the creation of the second virtual machine with the
only difference that in steps 5a the Virtual machine name: Enter “myrac2», 5b
Location: Enter “X:\VMRAC11G\OEL5_RAC2.”, and in step 16a Disk file: Enter
“X:\VMRAC11G\ OEL5_RAC2\OEL5_RAC_Disk1.vmdk.” and in the end in step 19
the path for the swap disk must be:
“X:\VMRAC11g\OEL5_RAC1\OEL5_RAC_Swap.vmdk”.


3.
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:
a. Hardware types: Select Hard Disk.
5. Select a Disk:
a. Disk: Select Create a new virtual disk.
6. Select a Disk Type:
a. Virtual Disk Type: Select SCSI (Recommended).
7. Specify Disk Capacity:
a. Disk capacity: Enter “0.3 GB” (=307.2 MB)
b. 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 preallocate
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:
a. Disk file: Enter “..\ASMDISK\CRS_Disk.vmdk”
b. Click on Advanced.
9. Add Hardware Wizard:
a. Virtual device node: Select SCSI 1:0.
b. Mode: Select Independent, Persistent for all shared disks.
c. Click on Finish.
Repeat the procedure for the vote disk και in step 7 we allocate a size of 0.3 GB
(=307.2 MB) and in 8a for Disk file we define“..\ASMDISK\Vote_Disk.vmdk”.
Virtual Device Node: SCSI 1:1
We continue by creating the asm disk for which in step 7 we allocate a size of 4 GB
 Disk file  “..\ASMDISK\ASM_DATA_Disk.vmdk”.
Virtual Device Node: SCSI 1:2
Finally we create an asm recovery disk of as size of 2 GB and for Disk file :
“..\ASMDISK\ASM_RECO_Disk.vmdk” Virtual Device Node:

SCSI 1:3

* Be careful to choose new scsi interface (e.g. scsi 1 if for the local disks scsi 0 was
used and the common disks will be represented as virtual LUNs of this interface as
scsi1:0, scsi 1:1…) for the common disks.

Screenshots



Click Add



Click Next


Choose Hard Disk and Click Next


Choose Create a new virtual disk and Click Next


Choose SCSI (Recommended) and Click Next


Choose Disk Size (GB) 0.3 and Click Next


Choose J:\VMRAC11G\ASMDISK\CRS_Disk and Click Advanced


First, change SCSI (SCSI 1:0) , then choose Independent and Persistent and Click
Finish.

We repeat the procedure for the addition of the rest of necessary disks and in the end
we close the windows of Virtual Machine Settings.


4.Addition of a network card
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:
a. Hardware types: Ethernet Adapter.
5. Network Type:
a. Host-only: A private network shared with the host
b. Click on Finish.
The required configuration of the new network card that will be listening to the
interconnect (which is required by RAC) must be done after completing this step.

5.Modifications on the VMware configuration file
It is mandatory to verify and correct specific parameters both on OEL_RAC1 and
OEL_RAC2. So, we edit the configuration files (.vmx) of each virtual machine with
notepad.
Beware that if you use copy paste for making thing easier just copy the section
“BEGIN SHARED STORAGE” till “END OF SHARED STORAGE” since one
error during copy paste can invalidate the VMWare images.
The OEL_RAC1\OEL5_RAC1.vmx file must include the following:
config.version = "8"
virtualHW.version = "4"
scsi0.present = "TRUE"
scsi0.virtualDev = "lsilogic"
memsize = "512"
scsi0:0.present = "TRUE"
scsi0:0.fileName = "OEL_RAC_Disk1.vmdk"
ide1:0.present = "TRUE"
ide1:0.fileName = "E:\Enterprise-R5-U1-Server-i386-disc3.iso"
ide1:0.deviceType = "cdrom-image"
floppy0.fileName = "A:"
Ethernet0.present = "TRUE"
Ethernet0.connectionType = "hostonly"
displayName = "OEL5_RAC1"
guestOS = "rhel4"
priority.grabbed = "normal"
priority.ungrabbed = "normal"
scsi0:1.present = "TRUE"
scsi0:1.fileName = "OEL_RAC_Swap.vmdk"
ide1:0.autodetect = "TRUE"
Ethernet1.present = "TRUE"
Ethernet1.connectionType = "hostonly"
floppy0.present = "FALSE"

scsi0:0.redo = ""
scsi0:1.redo = ""
ethernet0.addressType = "generated"
ethernet1.addressType = "generated"
uuid.location = "56 4d ce 01 be 15 b3 ba-62 96 f8 e9 b3 76 8b
33"
uuid.bios = "56 4d 18 c0 9e ca ef 35-52 6e 14 79 50 96 1a 6a"
ethernet0.generatedAddress = "00:0c:29:96:1a:6a"
ethernet0.generatedAddressOffset = "0"
ethernet1.generatedAddress = "00:0c:29:96:1a:74"
ethernet1.generatedAddressOffset = "10"
workingDir = "."
ide1:0.startConnected = "TRUE"
tools.syncTime = "TRUE"
#--------------------------------------------------------------
--------------
# BEGIN SHARED STORAGE
#--------------------------------------------------------------
--------------
#
# - Here the NEW SCSI BUS. Set it to "Virtual" and
disk.locking = "false"
#
diskLib.dataCacheMaxSize = "0"
diskLib.dataCacheMaxReadAheadSize = "0"
diskLib.dataCacheMinReadAheadSize = "0"
diskLib.dataCachePageSize = "4096"
diskLib.maxUnsyncedWrites = "0"
disk.locking = "false"
#--------------------------------------------------------------
--------------
# Create HBA (just as if you had a SAN storage), LSILOGIC or
BUSLOGIC
#--------------------------------------------------------------
--------------
scsi1.present = "TRUE"
scsi1.sharedBus = "virtual"
scsi1.virtualDev = "lsilogic"
#--------------------------------------------------------------
--------------
# Creating virtual SCSI disks on that HBA
#--------------------------------------------------------------
--------------
#
# - CRS DISK
#
scsi1:0.present = "TRUE"
scsi1:0.fileName = "..\ASMDISK\CRS_Disk.vmdk"
scsi1:0.mode = "independent-persistent"
#
# - VOTE DISK
#
scsi1:1.present = "TRUE"
scsi1:1.fileName = "..\ASMDISK\VOTE_Disk.vmdk"
scsi1:1.mode = "independent-persistent"
#
# - ASM DISK DATA
#
scsi1:2.present = "TRUE"
scsi1:2.fileName = "..\ASMDISK\ASM_DATA_Disk.vmdk"
scsi1:2.mode = "independent-persistent"
#
# - ASM DISK RECO
#
scsi1:3.present = "TRUE"
scsi1:3.fileName = "..\ASMDISK\ASM_RECO_Disk.vmdk"
scsi1:3.mode = "independent-persistent"
#--------------------------------------------------------------
--------------
# END OF SHARED STORAGE
#--------------------------------------------------------------
--------------
scsi1:0.redo = ""
scsi1:1.redo = ""
scsi1:2.redo = ""
scsi1:3.redo = ""
The same way we modify the OEL_RAC2\OEL5_RAC2.vmx file.
The above parameters must be modified as it is shown in order:
1. For the common disks to have a caching mechanism so RAC will be operating
normally.
2. For the different sections of the configuration file to be discrete in order to easily
be able to manage and correct.
3. To change the paths of the common disks from absolute to relative to simplify the
copy of the VMWare files.

Comments

Popular posts from this blog

Configure IP address on Oracle Linux

Oracle Directory Object

TIME INTERVAL in Oracle