Create shared disk for Oracle RAC on VMWare(ZT)
2012-06-18 15:02
471 查看
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:
1. Create a directory for shared disks: Open a CMD. Create a directory for all shared disks:
where the paraneters are:
and disk type is
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:
-Power on the machine and check if the OS see all shared disks, for example in Linux
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 |
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 |
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:
# Begin Virtual VM Disks for Oracle RAC disk.locking = "FALSE" diskLib.dataCacheMaxSize = "0" diskLib.dataCacheMaxReadAheadSize = "0" diskLib.dataCacheMinReadAheadSize = "0" diskLib.dataCachePageSize = "4096" diskLib.maxUnsyncedWrites = "0" scsi1.present = "TRUE" scsi1.virtualDev = "lsilogic" scsi1.sharedBus = "VIRTUAL" scsi1:0.present = "TRUE" scsi1:0.fileName = "M:\VM4\SharedDisks\ocfs2.vmdk" scsi1:0.mode = "independent-persistent" scsi1:0.deviceType = "disk" scsi1:1.present = "TRUE" scsi1:1.fileName = "M:\VM4\SharedDisks\asm1.vmdk" scsi1:1.mode = "independent-persistent" scsi1:1.deviceType = "disk" scsi1:2.present = "TRUE" scsi1:2.fileName = "M:\VM4\SharedDisks\asm2.vmdk" scsi1:2.mode = "independent-persistent" scsi1:2.deviceType = "disk" scsi1:3.present = "TRUE" scsi1:3.fileName = "M:\VM4\SharedDisks\asm3.vmdk" scsi1:3.mode = "independent-persistent" scsi1:3.deviceType = "disk" scsi1:4.present = "TRUE" scsi1:4.fileName = "M:\VM4\SharedDisks\asm4.vmdk" scsi1:4.mode = "independent-persistent" scsi1:4.deviceType = "disk" # End Virtual VM Disks for Oracle RAC
-Power on the machine and check if the OS see all shared disks, for example in Linux
# ls -l /dev/sd* or # fdisk -l
相关文章推荐
- Create shared disk for Oracle RAC on VMWare
- Create a shared disk for VMware ESX guests
- SCSI reservation conflicts trying to use a shared disk on RHEL in a VMware environment
- 基于CentOS与VmwareStation10搭建Oracle11G RAC 64集群环境:4.安装Oracle RAC FAQ-4.2.Oracleasm Createdisk ASM磁盘失败:Instantiating disk: failed
- [Oracle] - Create DB on Oracle 12c for an Application
- A Quick Reference for Oracle Database 10g RAC on Linux and Unix Platforms
- Oracle 添加冗余控制文件 for RAC On Linux
- Purpose of the Voting Disk for #Oracle RAC
- Building a RAC Test Environment on VMWare For Free
- CREATE the ASM for ORACLE on Solaris 10!
- critical steps for by setup 12c rac on vmware exsi using dns(no gns)
- [已解决]在VMware-server for linux 下装centos错误:an error has occurred. - no valid devices were found on which to create new file system
- Configure DNS Server for SCAN on Oracle 11gR2 RAC - [ORACLE 11g]
- Oracle WebLogic ActiveGridLink for RAC介绍 (视频)
- 10gR2 RAC Install issues on Oracle EL5 or RHEL5 or SLES10 (VIPCA /SRVCTL / OUI Failures) [ID 414163.1]
- Configure Red Hat Enterprise Linux shared disk cluster for SQL Server
- Oracle 11g RAC搭建(VMware环境)
- 解决Cannot open the disk 'F:/vmware/Ubuntu.vmdk' or one of the snapshot disks it depends on.
- Oracle 12.1.0.2 RAC bug the OS kernel parameter "panic_on_oops" is properly set
- Oracle 11gR2 RAC Votedisk and OCR Diskgroup Recovery