安装Oracle RAC使用NFS作为共享存储

文章来源:http://www.oracle-base.com/articles/10g/OracleDB10gR2RACInstallationOnLinuxUsingNFS.php

  1.The /etc/hosts file must contain the following information.

  127.0.0.1       localhost.localdomain   localhost

  # Public

  192.168.2.101   rac1.localdomain        rac1

  192.168.2.102   rac2.localdomain        rac2

  #Private

  192.168.0.101   rac1-priv.localdomain   rac1-priv

  192.168.0.102   rac2-priv.localdomain   rac2-priv

  #Virtual

  192.168.2.111   rac1-vip.localdomain    rac1-vip

  192.168.2.112   rac2-vip.localdomain    rac2-vip

  #NAS

  192.168.2.101   nas1.localdomain        nas1

  2.create shared disks

  First we need to set up some NFS shares. In this case we will do this on the RAC1 node, but you can do the on a NAS or a third server if you have one available. On the RAC1 node create the following directories.

  mkdir /share1

  mkdir /share2Add the following lines to the /etc/exports file.

  /share1                  *(rw,sync,no_wdelay,insecure_locks,no_root_squash)

  /share2                  *(rw,sync,no_wdelay,insecure_locks,no_root_squash)Run the following command to export the NFS shares.

  chkconfig nfs on

  service nfs restartOn both RAC1 and RAC2 create some mount points to mount the NFS shares to.

  mkdir /u01

  mkdir /u02Add the following lines to the "/etc/fstab" file. The mount options are suggestions from Kevin Closson.

  nas1:/share1  /u01  nfs  rw,bg,hard,nointr,tcp,vers=3,timeo=300,rsize=32768,wsize=32768,actimeo=0  0 0

  nas1:/share2  /u02  nfs  rw,bg,hard,nointr,tcp,vers=3,timeo=300,rsize=32768,wsize=32768,actimeo=0  0 0Mount the NFS shares on both servers.

  mount /u01

  mount /u02Create the shared CRS Configuration and Voting Disk files.

  touch /u01/crs_configuration

  touch /u01/voting_diskCreate the directories in which the Oracle software will be installed.

  mkdir -p /u01/crs/oracle/product/10.2.0/crs

  mkdir -p /u01/app/oracle/product/10.2.0/db_1

  mkdir -p /u01/oradata

  chown -R oracle:oinstall /u01 /u02

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/27199141/viewspace-737938/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/27199141/viewspace-737938/

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值