# --------------------------------------------------- # Set the default file mode creation mask
# (umask) to 022 to ensure that the user performing # the Oracle software installation creates files # with 644 permissions.
# --------------------------------------------------- umask 022
17. 创建RAC安装所需目录结构:
# mkdir -p /u01/app/11.2.0/grid
# chowngrid:oinstall /u01/app/11.2.0/grid # chmod -R 775 /u01/app/11.2.0/grid # mkdir -p /u01/app/oracle
# chown -R oracle:oinstall /u01/app/oracle # chmod -R 775 /u01/app/oracle
4.5 安装 VMware Tools
VMware Tools 是VMware为虚拟机操作系统提供的工具包,用于提升虚拟机性能和方便对虚拟机的监控和管理。VMware Tools 必须在操作系统内安装。其安装步骤可以参考以下知识库文档:Installing VMware Tools in a Linux virtual machine using Red Hat Package Manager (RPM)(http://kb.vmware.com/kb/1018392). To install VMware Tools
1. Confirm that the Linux virtual machine is powered on.
2. In vSphereClient, right-click the virtual machine and selectGuest>Install VMware Tools. 3. In the Linux guest OS,create a mount point and run the following command:
mkdir /mnt/cdrom
4. Mount the CD-ROM with the following command:
mount /dev/cdrom /mnt/cdrom
5. Install VMware Tools using RPM, with the following command:
rpm -ivh /mnt/cdrom/VMwareTools-8.3.2-257589.rpm
As an example, “8.3.2-257589” is the version of VMware Tools used here. 6. Configure VMware Tools, by running the following command:
/usr/bin/vmware-config-tools.pl 7. Unmountthe CD-ROM with the following command:
umount /mnt/cdrom
8. Click VM in the virtual machine menu, and click Guest>End VMware Tools Install.
? 2014 VMware, Inc. All rights reserved.
Page 26 of 42
4.6 时钟同步
按照VMware官方文档Timekeeping best practices for Linux guests(http://kb.vmware.com/kb/1006427) 来配置在Linux上配置NTP,同时停掉虚拟机中VMware tools与ESX主机的时钟同步. 有两种方法停止VMware tools的时钟同步进程:
? Set tools.syncTime = \ in the configuration file (.vmx file) of the virtual machine. ? Run the vmware-guestd --cmd \ command in the guest
operating system.
编辑/etc/sysconfig/ntpd 增加 -x 选项,如下所示:
# Drop root to id 'ntp:ntp' by default.
OPTIONS=\
/etc/ntp.conf示例:
tinker panic 0
driftfile /var/lib/ntp/drift statisticsloopstats statsdir /var/log/ntp/
logfile /var/log/ntp/ntpd.log
filegenpeerstats file peers type day link enable filegenloopstats file loops type day link enable
server 162.16.3.33
? 2014 VMware, Inc. All rights reserved.
Page 27 of 42
5. 准备其他虚拟机和RAC节点
现在第一个RAC节点(RAC1)所用的虚拟机就创建好了,现在可以用这个虚拟机克隆出其他RAC节点所用的虚拟机,如果前面的步骤都执行正确,现在就可以把这个虚拟机制成模板,留作以后使用。大概步骤如下: ? ? ? ?
In vCenter, clone RAC1.
在新创建的虚拟机里删除RAC1所带的共享磁盘。
重新添加仲裁盘,仲裁盘同样需要开启multi-writer开关。 修改客户机IP地址.
5.1 虚机克隆
1. RAC1停机
2. In vSphereClient, select the virtual machine, RAC1.
3. Right-click the name of the virtual machine and select Clone.
4. In the Clone Virtual Machine wizardon the Name and Location page, enter RAC2 for the Name.
Click Next. 5. On the Host / Cluster page, select a host or cluster. Click Next.
6. On the Specific Host page, select a unique ESX host (that is, one not running a RAC node virtual
machine). Click Next. 7. On the Datastore page, select a VMFS datastore. Click Next.
8. On the Disk Format page, select Same format as source. Click Next.
9. On the Guest Customization page, select customize using the customization wizard. 10. config IP address for eth0 and eth1
? 2014 VMware, Inc. All rights reserved.
Page 28 of 42
11. On the Ready to Complete page, click Finish.
? 2014 VMware, Inc. All rights reserved.
Page 29 of 42
5.2 配置仲裁盘
虚拟机克隆之后,指向仲裁盘的路径会失效,所以需要先在虚机配置里删除这个硬盘重建,同时把SCSI控制器类型改为paravirtual. 按照下述步骤配置RAC2: 删除共享盘
1. In vSphereClient, select a virtual machine.
2. Right-click the name of the virtual machine and select Edit Settings to display the Virtual Machine
Properties pane. 3. Select hard disk 2 and click Remove. In the Removal Options section, select Remove from virtual
machine and click OK. 再新建一次
1. In vSphereClient, select a virtual machine.
2. Right-click the name of a virtual machine and select Edit Settings to display the Virtual Machine
Properties pane. 3. Click Addto display the Add Hardware wizard.
4. In the Add Hardware wizard select Hard Disk for the Device Type, and click Next.
5. In the Disk section of the Select a Disk page, select Use an existing virtual disk and click Next. 6. On the Select Existing Disk page, enter the path to the first VMDK of the virtual machine (selected
in step 1) used for the CRS and voting datastores. Click Next. 7. On the Advanced Options page, in the Virtual Device Node section, select SCSI (1:0). In
theMode section, select Independent and Persistent. Click Next. 8. On the Ready to Complete page, click Finish. 9. Click OK.
? 2014 VMware, Inc. All rights reserved.
Page 30 of 42
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库在vmware vsphere esxi上安装oracle RAC(6)在线全文阅读。
相关推荐: