首页 > Linux操作系统 > Linux操作系统 > 安装Oracle RAC使用NFS作为共享存储

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

原创 Linux操作系统 作者:Xuziwen20 时间:2012-07-28 11:39:28 0 删除 编辑


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

  # Public   rac1.localdomain        rac1   rac2.localdomain        rac2

  #Private   rac1-priv.localdomain   rac1-priv   rac2-priv.localdomain   rac2-priv

  #Virtual   rac1-vip.localdomain    rac1-vip   rac2-vip.localdomain    rac2-vip

  #NAS   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博客 ” ,链接:,如需转载,请注明出处,否则将追究法律责任。

上一篇: 数据库迁移实验
下一篇: 没有了~
请登录后发表评论 登录


  • 博文量
  • 访问量