修改SCSI控制器类型为paravirtual
1. In vSphereClient, select the virtual machine that was selected in the preceding step 1.
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 SCSI controller 1.
4. In the SCSI Controller Type section, click Change Type. 5. Select VMware Paravirtual. 6. Click OK, and click OK again.
? 2014 VMware, Inc. All rights reserved.
Page 31 of 42
5.3 使用fdisk格式化仲裁盘:
必须在一个节点上对共享盘进行分区和格式化。在Linux上可以使用系统自带的fdisk工具进行 。步骤如下:
仲裁盘分区:
1. Login as root on node1. 2. Enter the command:
fdisk /dev/sdb
3. Enter n to create a new partition. 4. Enter p to create a primary partition. 5. Enter 1 to create the first partition.
6. Press Enter to take the default value of 1 for the first cylinder. 7. Press Enter to take the default value of 20480 for the last cylinder. 8. Enter w to write the new partition table to disk and exit fdisk.
The output from the fdisk command should like somewhat like the following:
root@vmorarac1 ~# fdisk /dev/sdb
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable.
Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): n Command action e extended
p primary partition (1-4) p
Partition number (1-4): 1
First cylinder (1-20480, default 1): Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-20480, default 20480): Using default value 20480 Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table. Syncing disks. ? 2014 VMware, Inc. All rights reserved.
Page 32 of 42
6. 安装Oracle Grid软件
现在我们有两个虚机,可以开始安装grid环境了. 安装Oracle Grid Infrastructure
1. 用oracleasm在/dev/sdb1创建griddisk CRS1. 2. 将Oracle RAC安装包(11.2.0.3)上传到RAC1并解压 3. 切换到grid用户启动Oracle Grid安装程序 ./runInstaller
4. 在第一页安装选项页,选择Install and Configure Infrastructure for a Cluster. Click Next. 5. On the Installation Type page, select Advanced Installation and click Next. 6. On the Product Languages page, select English and click Next.
7. On the Grid Plug and Play page, enter rac for the Cluster Name,
rac-scan.localdomainfor the SCAN Name and 1521 for the SCAN Port. Click Next. 8. On the Cluster Node Information page, click Add to enter aHostname and Virtual IP Name.
Repeat the process for each of the four hosts, as follows:
Hostname RAC1 RAC2
9. Click Next.
10. On the Network Interface Usage page, enter the following information for the Interface Name,
Subnet, and Interface Type:
Interface Name eth0 eth1
11. Click Next.
12. On the Storage Option page, select Automatic Storage Management (ASM), and click Next. 13. On the Create ASM Disk Group page, enter CRS for the Disk Group Name, and select Normal for
Redundancy. 14. In the Add Disks section of the Create ASM Disk Group page, select Candidate Disks. Make the
following entries:
Disk Path ORCL:CRSDISK1
15. Select the check box to the left of each of these entries, and click Next.
? 2014 VMware, Inc. All rights reserved.
Page 33 of 42
Size (in MB) 20479
Status Candidate
Subnet 162.16.3.0 192.168.2.0
Interface Type Public Private
Virtual IP Name RAC1-vip RAC2-vip
16. On the ASM Password page, select Use same passwords for these accounts and enter the
password “oracle” in the Specify Password and Confirm Password fields. Click Next. 17. On the Failure Isolation page, select Do not use Intelligent Platform Management Interface
(IPMI). Click Next. 18. On the Operating System Groups page, make the following entries:
Field ASM Database Administrator (OSDBA) Group
ASM Instance Administration Operator (OSOPER) Group ASM Instance Administrator (OSASM) Group
19. Click Next.
20. On the Installation Location page, enter /u01/app/grid for the Oracle Base, and
/u01/app/11.2.0/grid for the Software Location. Click Next
21. On the Create Inventory page, enter /u01/app/orainventory for the Inventory Directory. Click
Next. 22. Wait while the setup application conducts the prerequisite checks and installs Grid on each node.
After setup is complete, execute the following configuration scripts on the four nodes
VMORARAC1,VMORARAC2. These scripts must be executed in a terminal window as root.
/u01/app/orainventory/orinstRoot.sh /u01/app/11.2.0/grid/root.sh
Note: don’t run root.sh scripts on 2 nodes at the same time, or else It will fail. 23. Click OK, and click Finish.
Selection asmdba asmoper asmadmin
? 2014 VMware, Inc. All rights reserved.
Page 34 of 42
7. 验证Grid安装的正确性
The following figures show how to run various RAC commands in the guest OS to check the status of the cluster.
Figure 4. Check the CRS Status on the First Node as Grid User
Figure 5.Check for Cluster Nodes
? 2014 VMware, Inc. All rights reserved.
Page 35 of 42
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库在vmware vsphere esxi上安装oracle RAC(7)在线全文阅读。
相关推荐: