Mount Options for Oracle files when used with NFS on NAS devices [ID 359515.1] |
||
|
||
|
Modified 04-FEB-2012 Type BULLETIN Status PUBLISHED |
|
In this Document
Purpose
Scope and Application
Mount Options for Oracle files when used with NFS on NAS devices
RAC
Single Instance
References
Applies to:
Oracle Server - Enterprise Edition - Version: 10.1.0.2 to 11.2.0.3 - Release: 10.1 to 11.2
Information in this document applies to any platform.
Oracle Clusterware, Oracle Real Application Clusters, NAS
Purpose
The purpose of this bulletin is to document the options with which the NAS systems should be mounted. This note does not cover the new dNFS feature that was introduced in 11g.
Scope and Application
This document is relevant to all environments using Oracle Clusterware & RAC.
Mount Options for Oracle files when used with NFS on NAS devices
RAC
In the table below
Operating System |
Mount options for Binaries ## |
Mount options for Oracle Datafiles |
Mount options for CRS Voting Disk and OCR |
Sun Solaris * |
rw,bg,hard,nointr,rsize=32768, vers=3,suid |
rw,bg,hard,nointr,rsize=32768, |
rw,bg,hard,nointr,rsize=32768, |
AIX (5L) ** |
rw,bg,hard,nointr,rsize=32768, vers=3,timeo=600 |
cio,rw,bg,hard,nointr,rsize=32768, |
cio,rw,bg,hard,intr,rsize=32768, |
HPUX 11.23 *** -- |
rw,bg,vers=3,proto=tcp,noac, |
rw,bg,vers=3,proto=tcp,noac, |
rw,bg,vers=3,proto=tcp,noac, |
Windows |
Not Supported |
Not Supported |
Not Supported |
Linux x86 |
rw,bg,hard,nointr,rsize=32768, |
rw,bg,hard,nointr,rsize=32768, |
rw,bg,hard,nointr,rsize=32768, |
Linux x86-64 # |
rw,bg,hard,nointr,rsize=32768, |
rw,bg,hard,nointr,rsize=32768, |
rw,bg,hard,nointr,rsize=32768, |
Linux - Itanium |
rw,bg,hard,nointr,rsize=32768, |
rw,bg,hard,nointr,rsize=32768, |
rw,bg,hard,nointr,rsize=32768, |
* NFS mount option “forcedirectio” is required on Solaris platforms when mounting the OCR/CRS files when using Oracle 10.1.0.4 or 10.2.0.2 or later (Oracle unpublished bug 4466428)
** AIX is only supported with NAS on AIX 5.3 TL04 and higher with Oracle 10.2.0.1 and later (NetApp)
*** NAS devices are only supported with HPUX 11.23 or higher ONLY
**** As per BUG 11812928, the 'intr' & 'nointr' are deprecated in OEL 5.6 kernels and up including Oracle Linux 6. It is harmless to still include it, but the "NFS: ignoring mount option: nointr" will appears. This message can be ingnored.
# These mount options are for Linux kernels 2.6 and above for older kernels please check Note 279393.1
Due to Unpublished bug 5856342, it is necessary to use the following init.ora parameter when using NAS with all versions of RAC on Linux (x86 & X86-64 platforms) until 10.2.0.4. This bug is fixed and included in 10.2.0.4 patchset.
filesystemio_options = DIRECTIO
Single Instance
Operating System |
Mount options for Binaries |
Mount options for Oracle Datafiles |
Sun Solaris * |
rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,proto=tcp,suid |
rw,bg,hard,rsize=32768,wsize=32768,vers=3,[forcedirectio or llock],nointr,proto=tcp,suid |
AIX (5L) ** |
rw,bg,hard,rsize=32768,wsize=32768,vers=3,intr,timeo=600,proto=tcp |
rw,bg,hard,rsize=32768,wsize=32768,vers=3,cio,intr,timeo=600,proto=tcp |
HPUX 11.23 **** |
rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,proto=tcp,suid |
rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,proto=tcp, suid, forcedirectio |
Windows |
Not Supported |
Not Supported |
Linux x86 |
rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcp |
rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcp,actimeo=0* |
Linux x86-64 # |
rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcp |
rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcp,actimeo=0* |
Linux - Itanium |
rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcp |
rw,bg,hard,rsize=32768,wsize=32768,vers=3,nointr,timeo=600,tcp |
* actime=0 or noac can be used
References
http://now.netapp.com/Knowledgebase/solutionarea.asp?id=kb7518
http://linux.oracle.com/pls/apex/f?p=102:2:3947951439689189::NO::P2_VC_ID:424
我的操作系统是Linux x86-64,因此我先将已挂在的盘umount下,按照新的选项重新挂载:
[root@xxxx-db-01 ~]# umount -l /orabak/
[root@xxxx-db-01 ~]# df -h
Filesystem 容量 已用 可用 已用% 挂载点
/dev/cciss/c0d0p6 64G 4.4G 56G 8% /
/dev/cciss/c0d0p1 190M 15M 166M 9% /boot
/dev/cciss/c0d0p5 39G 392M 37G 2% /data
none 16G 0 16G 0% /dev/shm
/dev/cciss/c0d0p3 29G 21G 6.6G 76% /home
x.x.x.x:/home/db_bak/
359G 38G 304G 11% /orabak
[root@xxxx-db-01 ~]# umount -l /orabak/
[root@xxxx-db-01 ~]# df -h
Filesystem 容量 已用 可用 已用% 挂载点
/dev/cciss/c0d0p6 64G 4.4G 56G 8% /
/dev/cciss/c0d0p1 190M 15M 166M 9% /boot
/dev/cciss/c0d0p5 39G 392M 37G 2% /data
none 16G 0 16G 0% /dev/shm
/dev/cciss/c0d0p3 29G 21G 6.6G 76% /home
[root@xxxx-db-01 ~]# mount -t nfs -o rw,bg,noac,hard,nointr,rsize=32768,wsize=32768,nolock,proto=tcp,actimeo=0,vers=3,timeo=600 x.x.x.x:/home/db_bak/ /orabak/
[root@xxxx-db-01 ~]# df -h
Filesystem 容量 已用 可用 已用% 挂载点
/dev/cciss/c0d0p6 64G 4.4G 56G 8% /
/dev/cciss/c0d0p1 190M 15M 166M 9% /boot
/dev/cciss/c0d0p5 39G 392M 37G 2% /data
none 16G 0 16G 0% /dev/shm
/dev/cciss/c0d0p3 29G 21G 6.6G 76% /home
x.x.x.x:/home/db_bak/
359G 38G 304G 11% /orabak
再次执行备份脚本,重新验证,发现报如下错误:
ORA-39000: bad dump file specification
ORA-31641: unable to create dump file "/orabak/export/curr/emspda2101.dmp"
ORA-27086: unable to lock file - already in use
Linux-x86_64 Error: 37: No locks available
再次分析刚才的mount选项,难道是noac参数的问题吗?
再次卸载nfs盘
umount -l /orabak/
按照如下选项重新mount nfs盘:
mount -t nfs -o rw,bg,hard,nointr,rsize=32768,wsize=32768,nolock,proto=tcp,actimeo=0,vers=3,timeo=600 x.x.x.x:/home/db_bak/ /orabak/
重新执行备份程序:
[oracle@xxxx-db-01 backup]$ ./expdp.sh &
[1] 9782
[oracle@xxxx-db-01 backup]$
Export: Release 10.2.0.5.0 - 64bit Production on Monday, 05 March, 2012 11:20:13
Copyright (c) 2003, 2007, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, Real Application Clusters, OLAP, Data Mining
and Real Application Testing options
Starting "SYSTEM"."SYS_EXPORT_SCHEMA_01": system/******** directory=exp_dir dumpfile=exp_dir:emspda21%U.dmp filesize=30g parfile=exp_par.txt logfile=exp_dir:emspda220120305.log
Estimate in progress using BLOCKS method...
Processing object type SCHEMA_EXPORT/TABLE/TABLE_DATA
Total estimation using BLOCKS method: 3.309 GB
Processing object type SCHEMA_EXPORT/USER
Processing object type SCHEMA_EXPORT/SYSTEM_GRANT
Processing object type SCHEMA_EXPORT/ROLE_GRANT
Processing object type SCHEMA_EXPORT/DEFAULT_ROLE
Processing object type SCHEMA_EXPORT/TABLESPACE_QUOTA
....................................
备份可以执行了,15分钟后备份完成!
参考文章:
Mount Options for Oracle files when used with NFS on NAS devices [ID 359515.1]
RMAN and/or Datapump Export Backup fails with ORA-27086 on NFS / NAS [ID 1187014.1]