http://d-h-n.de/blog/create-shared-disk-for-oracle-rac-on-vmware
For Oracle RAC installation we need share storage for OCR, Voting Disk, ASM..
Shared Disks:
NO
SIZE
USAGE
1
1 GB
Place OCR, Voting Disk and mirror
2
3 GB
Place for Database Files. ASM volume 1
3
3 GB
Place for Database Files. ASM volume 2
4
3 GB
Place for Flash Recovery Area. ASM volume 3
5
3 GB
Place for Flash Recovery Area. ASM volume 4
1. Create a directory for shared disks:
Open a CMD. Create a directory for all shared disks:
C:\> mkdir M:\VM4\SharedDisks
Create the shared disk manual with vmware-vdiskmanager.exe
C:\> cd "C:\Program Files\VMware\VMware Workstation"
vmware-vdiskmanager.exe -c -s 1Gb -a lsilogic -t 4 M:\VM4\SharedDisks\ocfs2.vmdk
vmware-vdiskmanager.exe -c -s 3Gb -a lsilogic -t 4 M:\VM4\SharedDisks\asm1.vmdk
vmware-vdiskmanager.exe -c -s 3Gb -a lsilogic -t 4 M:\VM4\SharedDisks\asm2.vmdk
vmware-vdiskmanager.exe -c -s 3Gb -a lsilogic -t 4 M:\VM4\SharedDisks\asm3.vmdk
vmware-vdiskmanager.exe -c -s 3Gb -a lsilogic -t 4 M:\VM4\SharedDisks\asm4.vmdk
where the paraneters are:
Parameter
meaning
-c
create
-s
size
-a
adapter type
-t
disk type
and disk type is
Disk type
meaning
0
single growable virtual disk
1
growable virtual disk split in 2GB files
2
preallocated virtual disk
3
preallocated virtual disk split in 2GB files
4
preallocated ESX-type virtual disk
5
compressed disk optimized for streaming
Note:
- Only with disk type 4 can a RAC installation later successful - Disk type 4 (preallocated ESX-type virtual disk) is NEW in
VMWare workstation 6.5 Beta and VMWare Server 2.0 Beta.
- Disk type 2 (preallocated virtual disk) dont’work !
- With disk type 2, later when install Clusterware you get the error:
..service OracleCSService in improper PENDING state, err(0)
..service OracleCSService in improper PENDING state, err(997)
2. Add disk to virtual machine
The shared disk are ready created, now we must add them to the all virtual machines functionally as RAC nodes
For example when the first RAC node name RAC1 then open file \RAC1\RAC1.vmx with notepad and add this: