ORACLE Direct NFS installation
DNFS is a new feature introduced by Oracle 11g to improve the IO performance of the system with its own NFS. Compared with system-level NFS, DNFS reduces the consumption of network and IO transmission. The reasons for the low IO ability of ordinary NFS are:
1. It is difficult to realize multi-link for inefficient data transmission.
two。 The RPC stack IO of the system is implemented as a queue, which limits the data sent to the TCP layer
IO transmission from 3.oracle instance to nfs client is inefficient
The path of data transfer between NFS and DNFS:
Normal NFS:
DNFS
You can see that dnfs has less data transfer phase of TCP- > IP than nfs, and connects directly through RPC.
Installation process:
Environment NFS SERVER:172.10.10.10 PROD2 NFS CLIENT:172.10.10.20 PROD1
For the configuration of nfs, please refer to: https://docs.oracle.com/cd/E37670_01/E37355/html/ol_setupnfssvr_btrfs.html
1. Install softwar
PROD2#yum install nfs-utils-y
two。 Configure SERVER
1) create a shared directory PROD2#mkdir-p / u01/nfs_toragePROD2#vi / etc/exports2 on PROD2) modify exportsPROD2#cat / etc/exports/u01/nfs_torage * (rw,sync,no_wdelay,insecure,insecure_locks,no_root_squash)
Mounting options:
A. Https://docs.oracle.com/cd/E11882_01/install.112/e47689/post_inst_task.htm#LADBI1297
B.Mount Options for Oracle files for RAC databases and Clusterware when used with NFS on NAS devices (Doc ID 359515.1)
3) start the service PROD2# service rpcbind startPROD2# service nfs startPROD2# service nfslock startPROD2# chkconfig rpcbind onPROD2# chkconfig nfs onPROD2# chkconfig nfslock on
4) check the configuration of PROD2# exportfs-rvPROD2# showmount-e localhost
3. Configure client
1) create the mount path PROD1# mkdir-p / vol/nfs_oradtaPROD1# chown-R oracle:oinstall / vol/nfs_oradataPROD1# chmod-R 755 / vol/nfs_oradata
2) start the service PROD1# service rpcbind statusPROD1# chkconfig rpcbind onPROD1# service restart rpcbind
3) View server information PROD1#showmount-e PROD2
4) Manual mount format: mount-t nfs: PROD1#mount-t nfs PROD2:/u01/nfs_storage / vol/nfs_oradata
5) configure auto-mount PROD1#cat / etc/fstabPROD2:/u01/nfs_storage / vol/nfs_oradata nfs rw,bg,hard,nointr,tcp,vers=3,timeo=300,rsize=32768,wsize=32768,actimeo=0 00 or PROD1#vi / etc/rc.localmount-o rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,vers=3,timeo=600,actimeo=0,suid PROD2:/u01/nfs_storage / vol/nfs_oradata
4. Configure DNFS
1) when the DNFS configuration file is mounted, dnfs determines the mount point information by looking for the following file: $ORCLE_HOME/dbs/oranfstab/etc/orafnstab/etc/mtab content format is as follows: Server:NFS server name Path:NFS server IP or hostname Export: local mount point of the path Mount:NFS exported from the NFS server $vi / etc/oranfstabserver:PROD2path:172.10.10.10export:/u01/nfs_storagemount:/vol/nfs_oradata
2) modify odm library $sqlplus / as sysdbasql > shutdown immediate;$cd $ORACLE_HOME/rdbms/lib$make-f ins_rdbms.mk dnfs_onsql > startup
3) create the tablespace sql > create tablespace testnfs datfile'/ u01 size PROD1hand Testnfs01.dbf'Unim
4) check whether dnfs is effective $grep NFS / u01/ap/oracle/diag/rdbms/prod1/PROD1/trace/alert_PROD1.log
5. Views related to dsnfs
Vandals dnfsfolk serverstics vs. dnfsfolk fileswitting vs.dnfswarms
6. Disable dnfs
1)。 Delete the table space, stop the library drop tablespace testnfs including contents andatfiles;shutdown imediate2). Disable dnfs:cd $ORACLE_HOME/rdbms/libmake-f ins_rdbms.mk dnfs_of3). Start the database startup4). Delete related nfs configuration
Reference:
Step by Step-Configure Direct NFS Client (DNFS) on Linux (Doc ID 762374.1)