DB:Oracle 10.2.0.1
------------------------------------------------------------
今天在做数据迁移,为了减少落地次数,就挂了个NFS目录来用,结果不巧遇到ORA-27054的错误,虽然知道这错误和NFS的挂载参数有关,也知道是Bug,但是还是小折腾了一会。
最开始的时候直接挂载,没有带任何参数,自然就出错了:
Export: Release 10.2.0.1.0 - 64bit Production on Sunday, 31 March, 2013 16:48:17
Copyright (c) 2003, 2005, Oracle. All rights reserved.
Connected to: Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - 64bit Production
With the Partitioning, OLAP and Data Mining options
ORA-39001: invalid argument value
ORA-39000: bad dump file specification
ORA-31641: unable to create dump file "/dumpdir/ISTAML.20130331.dmp"
ORA-27054: NFS file system where the file is created or resides is not mounted with correct options
Additional information: 6
于是按照要求,使用必须参数,重新挂载该目录:
[fxqdb1@root]# umount /dumpdir
[fxqdb1@root]# mount -o rw,bg,hard,intr,proto=tcp,vers=3,rsize=65535,wsize=65535,timeo=600 10.0.0.2:/dumpdir /dumpdir
[fxqdb1@root]# mount
node mounted mounted over vfs date options
-------- --------------- --------------- ------ ------------ ---------------
/dev/hd4 / jfs2 Dec 18 20:20 rw,log=/dev/hd8
/dev/hd2 /usr jfs2 Dec 18 20:20 rw,log=/dev/hd8
/dev/hd9var /var jfs2 Dec 18 20:20 rw,log=/dev/hd8
/dev/hd3 /tmp jfs2 Dec 18 20:20 rw,log=/dev/hd8
/dev/hd1 /home jfs2 Dec 18 20:21 rw,log=/dev/hd8
/proc /proc procfs Dec 18 20:21 rw
/dev/hd10opt /opt jfs2 Dec 18 20:21 rw,log=/dev/hd8
/dev/oradatalv /oradata jfs2 Dec 18 20:21 rw,log=/dev/hd8
/dev/dbbaklv /dbbak jfs2 Dec 18 20:21 rw,log=/dev/loglv00
/dev/tivolilv /tivoli jfs2 Dec 18 20:21 rw,log=/dev/hd8
/dev/fxqdbbak /fxqdbbak jfs2 Dec 18 20:30 rw,log=/dev/loglv01
/dev/fslv00 /ptf jfs2 Dec 18 20:31 rw,log=/dev/hd8
10.0.0.2 /dumpdir /dumpdir nfs3 Mar 31 16:51 bg,hard,intr,rsize=65535,wsize=65535,sec=sys,rw
以为会OK,结果还是报同样的错,最后没办法就把该NFS文件系统写入到系统的filesystems配置文件中,在重新挂载,问题搞定:
[fxqdb1@root]# smitty mknfsmnt Add a File System for Mounting Type or select values in entry fields. Press Enter AFTER making all desired changes. [Entry Fields] * Pathname of mount point [/dumpdir] / * Pathname of remote directory [/dumpdir] * Host where remote directory resides [10.0.0.2] Mount type name [] * Security method [sys] + * Mount now, add entry to /etc/filesystems or both? both + * /etc/filesystems entry will mount the directory no + on system restart. * Mode for this NFS file system read-write + * Attempt mount in foreground or background background + Number of times to attempt mount [] # Buffer size for read [65535] # Buffer size for writes [65535] # NFS timeout. In tenths of a second [] # NFS version for this NFS filesystem any + Transport protocol to use any + Internet port number for server [] # * Allow execution of setuid and setgid programs yes + in this file system? * Allow device access via this mount? yes + * Server supports long device numbers? yes + * Mount file system soft or hard hard + Minimum time, in seconds, for holding [3] # attribute cache after file modification Allow keyboard interrupts on hard mounts? yes + Maximum time, in seconds, for holding [60] # attribute cache after file modification Minimum time, in seconds, for holding [30] # attribute cache after directory modification Maximum time, in seconds, for holding [60] # attribute cache after directory modification Minimum & maximum time, in seconds, for [] # holding attribute cache after any modification The maximum number of biod daemons allowed [6] # to work on this file system * Use acls on this mount? no + Number of NFS retransmits [] # * Exchange POSIX pathconf information? no + * Inherit group IDs? no + 或者 [fxqdb1@root]# /usr/sbin/mknfsmnt -f '/dumpdir' -d '/dumpdir' -h '10.0.0.2' -M 'sys''-B' '-a' -t 'rw' -w 'bg' -b '65535' -c '65535' '-Y' '-Z' '-X' '-H' '-j' '-q' '-g' |
Mount Options for Oracle files when used with NFS on NAS devices [ID 359515.1] | 转到底部 |
修改时间:2012-11-19类型:BULLETIN状态:PUBLISHED优先级:2 |
|