昨天,使用openfiler創建nas存儲系統,並安裝oracle軟件,前面一切順利,到創建數據庫時報ora錯誤,原來使用nfs安裝oracle數據庫時,mount選項有特殊要求,整理總結如下,以備查:
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,
wsize=32768,proto=tcp,
noac,vers=3,suid
rw,bg,hard,nointr,rsize=32768,
wsize=32768,proto=tcp,vers=3,
timeo=600
cio,rw,bg,hard,nointr,rsize=32768,
wsize=32768,proto=tcp,noac,
vers=3,timeo=600
cio,rw,bg,hard,intr,rsize=32768,
wsize=32768,tcp,noac,
vers=3,timeo=600
rw,bg,hard,nointr,rsize=32768,
wsize=32768,tcp, vers=3,
timeo=600, actimeo=0
rw,bg,hard,nointr,rsize=32768,
wsize=32768,tcp,noac,vers=3,
timeo=600
* 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
# 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 NASOperating 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,intr,
timeo=600,proto=tcp
rw,bg,hard,rsize=32768,
wsize=32768,vers=3,cio,intr,
timeo=600,proto=tcp
* actime=0 or noac can be used
按照上面所示,設置參數,結果仍然報錯ora-27086,錯誤信息如下:
[oraten@yue ~]$ oerr ora 27086 27086, 00000, "unable to lock file - already in use" // *Cause: the file is locked by another process, indicating that it is // currently in use by a database instance. // *Action: determine which database instance legitimately owns this file.重啟openfiler,成功解決問題,看來是之前mount不當導致在openfiler端有鎖一直沒有釋放。
雖然oracle支持nfs,但使用nfs的情景比較少,多數使用nfs來備份數據庫或者存放歸檔