77范文网 - 专业文章范例文档资料分享平台

在vmware vsphere esxi上安装oracle RAC(6)

来源:网络收集 时间:2019-04-09 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

# --------------------------------------------------- # 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)在线全文阅读。

在vmware vsphere esxi上安装oracle RAC(6).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/zonghe/583803.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: