NFS共享儲存
1.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)
2.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 /software/app/11.2.0/grid
mkdir -p /software/app/oracle/product/11.2.0/db_1
mkdir -p /software/oradata
mkdir -p /software/shared_config
chown -R oracle:oinstall /software/app /software/app/oracle /software/oradata /software/shared_config
chmod -R 775 /software/app /software/app/oracle /software/oradata /software/shared_config
3.Add the following lines to the "/etc/fstab" file. #開機自動掛載
nas1:/shared_config /software/shared_config nfs rw,bg,hard,nointr,tcp,vers=3,timeo=600,rsize=32768,wsize=32768,actimeo=0 0 0
nas1:/shared_grid /software/app/11.2.0/grid nfs rw,bg,hard,nointr,tcp,vers=3,timeo=600,rsize=32768,wsize=32768,actimeo=0 0 0
nas1:/shared_home /software/app/oracle/product/11.2.0/db_1 nfs rw,bg,hard,nointr,tcp,vers=3,timeo=600,rsize=32768,wsize=32768,actimeo=0 0 0
nas1:/shared_data /software/oradata nfs rw,bg,hard,nointr,tcp,vers=3,timeo=600,rsize=32768,wsize=32768,actimeo=0 0 0
4.Mount the NFS shares on both servers.
mount /software/shared_config
mount /software/app/11.2.0/grid
mount /software/app/oracle/product/11.2.0/db_1
mount /software/oradata
5.Make sure the permissions on the shared directories are correct.
chown -R oracle:oinstall /software/shared_config
chown -R oracle:oinstall /software/app/11.2.0/grid
chown -R oracle:oinstall /software/app/oracle/product/11.2.0/db_1
chown -R oracle:oinstall /software/oradata
檔案系統 容量 已用 可用 已用% 掛載點
/dev/sda2 142G 107G 29G 79% /
/dev/sda6 66G 48G 16G 76% /data
/dev/sda3 48G 20G 25G 45% /software
/dev/sda1 190M 14M 167M 8% /boot
tmpfs 16G 537M 16G 4% /dev/shm
/dev/mapper/mpath2 2.0T 2.0T 0G 100% /backup
/dev/mapper/oraclep1 1008G 661G 297G 70% /software/oradata01
rac1:/shared_grid 142G 107G 29G 79% /software/app/11.2.0/grid
rac1:/shared_home 142G 107G 29G 79% /software/app/oracle/product/11.2.0/db_1
rac1:/shared_config 142G 107G 29G 79% /software/shared_config
rac1:/shared_data 142G 107G 29G 79% /software/oradata
none 16G 128K 16G 1% /var/lib/xenstored
/dev/mapper/mpath3 2.0T 1.2T 645G 66% /software/oradata02
#/software/oradata01 192.168.3.0/24(rw,sync,no_root_squash)
#/1TB 192.168.3.0/24(rw,sync,no_root_squash)
#/one 192.168.3.0/24(rw,sync,no_root_squash)
#/two 192.168.3.0/24(rw,sync,no_root_squash)
#/three 192.168.3.0/24(rw,sync,no_root_squash)
#/five 192.168.3.0/24(rw,sync,no_root_squash)
#/six 192.168.3.0/24(rw,sync,no_root_squash)
/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)
/software/oradata01 *(rw,sync,no_wdelay,insecure_locks,no_root_squash)
/software/oradata02 *(rw,sync,no_wdelay,insecure_locks,no_root_squash)
/backup 192.168.3.0/24(rw,sync,no_root_squash)
檔案系統 容量 已用 可用 已用% 掛載點
/dev/sda2 76G 16G 57G 22% /
/dev/sda6 132G 87G 39G 69% /data
/dev/sda3 48G 23G 22G 52% /software
/dev/sda1 190M 20M 161M 11% /boot
tmpfs 16G 0 16G 0% /dev/shm
rac1:/shared_data 142G 107G 29G 79% /software/oradata
rac1:/shared_grid 142G 107G 29G 79% /software/app/11.2.0/grid
rac1:/software/oradata01
1008G 661G 297G 70% /software/oradata01
rac1:/shared_config 142G 107G 29G 79% /software/shared_config
rac1:/shared_home 142G 107G 29G 79% /software/app/oracle/product/11.2.0/db_1
none 16G 128K 16G 1% /var/lib/xenstored
rac1:/software/oradata02
2.0T 1.2T 645G 66% /software/oradata02
192.168.3.21:/backup 2.0T 1.3T 666G 66% /backup
#/software/oradata01 192.168.3.0/24(rw,sync,no_root_squash)
#/1TB 192.168.3.0/24(rw,sync,no_root_squash)
#/one 192.168.3.0/24(rw,sync,no_root_squash)
#/two 192.168.3.0/24(rw,sync,no_root_squash)
#/three 192.168.3.0/24(rw,sync,no_root_squash)
#/five 192.168.3.0/24(rw,sync,no_root_squash)
#/six 192.168.3.0/24(rw,sync,no_root_squash)
/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)
/software/oradata01 *(rw,sync,no_wdelay,insecure_locks,no_root_squash)
/software/oradata02 *(rw,sync,no_wdelay,insecure_locks,no_root_squash)
/backup 192.168.3.0/24(rw,sync,no_root_squash)
/backup/expdp 192.168.3.0/24(rw,sync,no_root_squash)
LABEL=/1 / ext3 defaults 1 1
LABEL=/data /data ext3 defaults 1 2
LABEL=/software /software ext3 defaults 1 2
LABEL=/boot1 /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
LABEL=SWAP-sda5 swap swap defaults 0 0
# 192.168.3.21:/one /one nfs defaults 0 0
# 192.168.3.21:/1TB /1TB nfs defaults 0 0
# 192.168.3.21:/two /two nfs defaults 0 0
# 192.168.3.21:/three /three nfs defaults 0 0
# 192.168.3.21:/five /five nfs defaults 0 0
# 192.168.3.21:/six /six nfs defaults 0 0
rac1:/shared_config /software/shared_config nfs rw,bg,hard,nointr,tcp,vers=3,timeo=600,rsize=32768,wsize=32768,actimeo=0 0 0
rac1:/shared_grid /software/app/11.2.0/grid nfs rw,bg,hard,nointr,tcp,vers=3,timeo=600,rsize=32768,wsize=32768,actimeo=0 0 0
rac1:/shared_home /software/app/oracle/product/11.2.0/db_1 nfs rw,bg,hard,nointr,tcp,vers=3,timeo=600,rsize=32768,wsize=32768,actimeo=0 0 0
rac1:/shared_data /software/oradata nfs rw,bg,hard,nointr,tcp,vers=3,timeo=600,rsize=32768,wsize=32768,actimeo=0 0 0
rac1:/software/oradata01 /software/oradata01 nfs rw,bg,hard,nointr,tcp,vers=3,timeo=600,rsize=32768,wsize=32768,actimeo=0 0 0
192.168.3.21:/backup /backup nfs defaults 0 0 #這就開機自動掛載了
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/29654823/viewspace-1769221/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- NFS共享儲存服務NFS
- centos7配置nfs共享儲存服務CentOSNFS
- 虛擬共享儲存:選iSCSI還是NFS?NFS
- DRBD + Heratbeat + NFS 高可用檔案共享儲存NFS
- RAC歸檔配置方案:使用NFS共享儲存儲存歸檔檔案NFS
- linux nfs共享儲存服務詳細解釋。LinuxNFS
- NFS儲存服務及部署NFS
- 建立NFS型別的儲存NFS型別
- 共享儲存之ISCSI
- 成功安裝Oracle 11gR2 for Linux RAC,使用NFS作為共享儲存OracleLinuxNFS
- NFS磁碟共享NFS
- Oracle 共享儲存掛載Oracle
- UDEV管理RAC共享儲存dev
- 共享儲存器優化優化
- openfiler配置rac共享儲存
- 使用NFS作為Glance儲存後端NFS後端
- kunbernetes-基於NFS的儲存NFS
- vmware設定共享儲存(RAC)
- 【CUDA學習】共享儲存器
- redhat as 4配置ISCSI共享儲存Redhat
- k8s動態儲存篇--NFSK8SNFS
- NFS儲存rman備份時的mount選項NFS
- LVM FS NFS CIFS NAS 等儲存概念解析LVMNFS
- Linux下搭建iSCSI共享儲存Linux
- 共享儲存器bank conflict
- 檔案共享之nfsNFS
- 配置 NFS 共享目錄NFS
- Debian 搭建 NFS 共享NFS
- openfiler配置共享儲存shared storage及如何在客戶機發現使用共享儲存卷
- mmap共享儲存對映(儲存I/O對映)系列詳解
- 配置Kubernetes共享使用Ceph儲存
- 虛擬機器做ISCSI共享儲存虛擬機
- NFS網路檔案共享NFS
- linux nfs 共享目錄LinuxNFS
- AIX下NFS共享設定AINFS
- Linux 提權-NFS 共享LinuxNFS
- 【VMware vSphere】沒有共享儲存的ESXi主機之間如何共享本地儲存上的ISO檔案。
- k8s使用emptyDir,hostPath,nfs,pv,pvc做儲存K8SNFS