成功安裝Oracle 11gR2 for Linux RAC,使用NFS作為共享儲存
文章來源:
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
# SCAN
192.168.2.201 rac-scan.localdomain rac-scan
#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 /shared_config mkdir /shared_grid mkdir /shared_home mkdir /shared_data
Add the following lines to the /etc/exports file.
/shared_config *(rw,sync,no_wdelay,insecure_locks,no_root_squash) /shared_grid *(rw,sync,no_wdelay,insecure_locks,no_root_squash) /shared_home *(rw,sync,no_wdelay,insecure_locks,no_root_squash) /shared_data *(rw,sync,no_wdelay,insecure_locks,no_root_squash)
Run the following command to export the NFS shares.
chkconfig nfs on service nfs restart
On both RAC1 and RAC2 create the directories in which the Oracle software will be installed.
mkdir -p /u01/app/11.2.0/grid mkdir -p /u01/app/oracle/product/11.2.0/db_1 mkdir -p /u01/oradata mkdir -p /u01/shared_config chown -R oracle:oinstall /u01/app /u01/app/oracle /u01/oradata /u01/shared_config chmod -R 775 /u01/app /u01/app/oracle /u01/oradata /u01/shared_config
Add the following lines to the "/etc/fstab" file.
nas1:/shared_config /u01/shared_config nfs rw,bg,hard,nointr,tcp,vers=3,timeo=600,rsize=32768,wsize=32768,actimeo=0,nolock 0 0 nas1:/shared_grid /u01/app/11.2.0/grid nfs rw,bg,hard,nointr,tcp,vers=3,timeo=600,rsize=32768,wsize=32768,actimeo=0,nolock 0 0 nas1:/shared_home /u01/app/oracle/product/11.2.0/db_1 nfs rw,bg,hard,nointr,tcp,vers=3,timeo=600,rsize=32768,wsize=32768,actimeo=0,nolock 0 0 nas1:/shared_data /u01/oradata nfs rw,bg,hard,nointr,tcp,vers=3,timeo=600,rsize=32768,wsize=32768,actimeo=0,nolock 0 0
Mount the NFS shares on both servers.
mount /u01/shared_config mount /u01/app/11.2.0/grid mount /u01/app/oracle/product/11.2.0/db_1 mount /u01/oradata
Make sure the permissions on the shared directories are correct.
chown -R oracle:oinstall /u01/shared_config chown -R oracle:oinstall /u01/app/11.2.0/grid chown -R oracle:oinstall /u01/app/oracle/product/11.2.0/db_1 chown -R oracle:oinstall /u01/oradata
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/90618/viewspace-1061865/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 使用NFS作為Glance儲存後端NFS後端
- NFS共享儲存服務NFS
- linux nfs共享儲存服務詳細解釋。LinuxNFS
- 【BUILD_ORACLE】Oracle 19c RAC搭建(三)使用UDEV配置共享儲存UIOracledev
- linux7 靜默安裝 11GR2 RACLinux
- vmware設定共享儲存(RAC)
- Oracle 11g RAC安裝--基於openfiler儲存+多路徑+udev方式Oracledev
- Linux下Oracle 11.2.0.1 RAC安裝筆記LinuxOracle筆記
- centos7配置nfs共享儲存服務CentOSNFS
- Oracle 共享儲存掛載Oracle
- 操作規範(四)——Linux 5.4安裝Oracle 11gR2LinuxOracle
- oracle linux使用安裝盤製作本地yumOracleLinux
- Helm3安裝Redis、RabbitMQ、ElasticSearch等並使用阿里雲CNFS作為網路儲存並共享NASRedisMQElasticsearch阿里NFS
- Oracle Linux 7.1 靜默安裝Oracle 18c RACOracleLinux
- Solaris 10.5 安裝Oracle 11gR2Oracle
- Oracle 19c RAC on Linux 7.6安裝手冊OracleLinux
- Linux 提權-NFS 共享LinuxNFS
- Oracle RAC 11gR2開啟歸檔Oracle
- Linux伺服器---安裝nfsLinux伺服器NFS
- oracle RAC 更換儲存遷移資料Oracle
- Oracle 11g RAC Silent Install For NFSOracleNFS
- Laravel 使用 Elasticsearch 作為日誌儲存LaravelElasticsearch
- 實戰:用“廉價”的NFS作為K8S後端儲存NFSK8S後端
- Oracle 10g RAC 資料儲存更換Oracle 10g
- Oracle RAC NFS掛載檔案系統OracleNFS
- Oracle 11G RAC叢集安裝(3)——安裝OracleOracle
- 配置Kubernetes共享使用Ceph儲存
- oracle rac資料庫的安裝Oracle資料庫
- vgant 安裝oracle資料庫racOracle資料庫
- centos7 安裝ORACLE 11.2.0.4.0 RACCentOSOracle
- Solaris下Oracle RAC 11.2.0.4 安裝方法Oracle
- 配置linux為儲存Linux
- k8s使用rbd作為儲存K8S
- ORACLE 11GR2 RAC的網路規劃解析Oracle
- Linux 環境下安裝 Nexus 私服儲存庫Linux
- Linux安裝oracleLinuxOracle
- Linux檔案共享(FTP+NFS)LinuxFTPNFS
- 在Linux中,如何配置NFS共享?LinuxNFS
- CentOS 6.X 上安裝配置 NFS 目錄共享CentOSNFS