Documente Academic
Documente Profesional
Documente Cultură
Direct NFS
Yury & Oracle Community
Contributors list
From Twitter
John Piwowar (@jpiwowar)
Leighton L. Nelson
(@leight0nn)
Kevin Closson(@kevinclosson)
Guenadi Jilevski (@gjilevski)
Simon Haslam
(@simon_haslam)
neto from Brazil
(@netofrombrazil)
Frits Hoogland (@fritshoogland)
Martin Bach (@MartinDBA) https://dl.dropbox.com/u/28277
Gwen (Chen) Shapira 005/DNFS%20exp%2004.pptx
(@gwenshap)
Avi Miller (@Djelibeybi) 2012 Pythian
Why Pythian
Recognized Leader:
Global industry leader in data infrastructure managed services and consulting with
expertise in Oracle, Oracle Applications, MicrosotSQL Server, MySQL, big data and
systems administration
Work with over 200 multinational companies such as Forbes.com, Fox Sports,
Nordion and Western Union to help manage their complex IT deployments
Expertise:
One of the worlds largest concentrations of dedicated, full-time DBA expertise.
Employ 8 Oracle ACEs/ACE Directors
Hold 7 Specializations under Oracle Platinum Partner program, including Oracle
Exadata, Oracle GoldenGate & Oracle RAC
2012 Pythian
Why Direct NFS
Network IO
SPEED
Easy to use +RAC
2012 Pythian
k NFS d NFS
100% 300%
Oracle VM, PIO SLOB test, ram disk mounted via 127.0.0.1 backloop device, other bottlenecks but kernel have been excluded, db file sequential read aka
random reads
Direct storage 0.36 ms
2012 Pythian
It isnt about data files only !
File Type Supported
Control file YES Direct NFS: FAQ [ID 954425.1]
Data file YES
Redo log file YES RDBMS file type support matrix for
Direct NFS client
Archive/Flashback log file YES
Backup files YES
Temp file YES
Datapump dump file YES blog Direct NFS speeds up
Data Pump
OCR files NO
spfile YES
passwd file YES
ASM files YES blog Reasons for using ASM
on NFS
Voting files NO
Audit files NO
Database trace files NO
External tables NO
2012 Pythian
Direct NFS Concepts
Simplified
User
k NFS d NFS
IO Client IO Client IO Client IO Client IO Client IO Client
Oracle Oracle Oracle Oracle Oracle Oracle
process process process process process process
user mode
NFS client NFS client NFS client
kerne
l
NFS client
Kernel mode
kernel
File A File B File C File A File B File C
2012 Pythian
dNFS Setup simple version
cd $ORACLE_HOME/rdbms/lib
make -f ins_rdbms.mk dnfs_on
ls -l $ORACLE_HOME/lib/lib*od*11.so
-rw-r--r--. 1 oracle oinstall 60431 Sep 17 2011 $OH/lib/libnfsodm11.so << dnfs
-rw-r--r--. 1 oracle oinstall 60431 Oct 20 19:45 $OH/lib/libodm11.so # Oracle used
-rw-r--r--. 1 oracle oinstall 12259 Sep 17 2011 $OH/lib/libodmd11.so << no dnfs
http://www.pythian.com/news/34425/oracle-direct-nfs-how-to
-start/
odm stands for Oracle Disk Manager
2012 Pythian
How can the dNFS usage be
verified?
Direct NFS: FAQ [ID 954425.1]
2. alert.log
Direct NFS: channel id [0] path [IPnfs] to filer [KUKARACHA] via local [IPdb] is UP
Direct NFS: channel id [1] path [IPnfs] to filer [KUKARACHA] via local [IPdb] is UP
2012 Pythian
Direct NFS advanced
implementation
dNFS setup is documented
Step by Step - Configure Direct NFS Client on Linux [ID 762374.1]
Step by Step - Configure Direct NFS Client on Windows [ID 1468114.1]
=======================================================
Set filesystemio_options at least to directIO. ALL database files.
NIC
NIC`
RAC Node 1
4 TCP/IP connections
IO Client
Round
Robin
1Gbit Switc File A
NIC
Oracle
1Gbit h
1Gbit 1Gbit
NIC
NIC
process
1Gbit
NFS service
NIC
NIC
4 Gbit File B
RAC Node 2
1Gbit
Switc
NIC
IO Client
NIC
Oracle
1Gbit h
NIC
process 1Gbit
File C
NIC
NIC
2012 Pythian
dNFS oranfstab (things to remember)
2012 Pythian
Oracle Direct NFS configuration file explained
dNFS oranfstab (things to remember)
2012 Pythian
Troubleshooting & War stories
One DNFS disadvantage
mv libodm11.so libodm11.so_bak
ln -s libnfsodm11.so libodm11.so
New/current method
make -f ins_rdbms.mk dnfs_on
cat /etc/exports
2012 Pythian
...
ALTER DATABASE OPEN
Direct NFS: attempting to mount /u02 on filer KUKARACHA2 defined in oranfstab
Direct NFS: channel config is:
channel id [0] local [192.168.51.30] path [192.168.51.21]
Direct NFS: mount complete dir /u02 on KUKARACHA2 mntport 963 nfsport 2049
Direct NFS: Invalid filer wtmax 525232 on filer KUKARACHA2
Direct NFS: Filer wtmax 525232 must be an even multiple of 32768
Thread 1 opened at log sequence 26
...
2012 Pythian
dNFS: wtmax =
/proc/fs/nfsd/max_block_size
Pythians dNFS related blog posts
root@nfsfiler01 sysconfig# cat /proc/fs/nfsd/max_block_size
524288
root@nfsfiler01 sysconfig# echo 1048576 > /proc/fs/nfsd/max_block_size
root@nfsfiler01 sysconfig# cat /proc/fs/nfsd/max_block_size
1048576
...
ALTER DATABASE OPEN
Direct NFS: attempting to mount /u02 on filer KUKARACHA2 defined in oranfstab
Direct NFS: channel config is:
channel id [0] local [192.168.51.30] path [192.168.51.21]
Direct NFS: mount complete dir /u02 on KUKARACHA2 mntport 883 nfsport 2049
Direct NFS: channel id [0] path [192.168.51.21] to filer [KUKARACHA2] via local [192.168.51.30] is UP
Direct NFS: channel id [1] path [192.168.51.21] to filer [KUKARACHA2] via local [192.168.51.30] is UP
Beginning crash recovery of 1 threads
...
2012 Pythian
init.ora events to set
If you are confused and need more information
then set the following events and access NFS files
event "19392 trace name context forever, level 8" # kgnfs
@kevinclosson Oracle 11g, Direct NFS Client, An Oracle White Paper + http://bit.ly/QU3w82
@leight0nn http://blogs.griddba.com/2012/02/direct-nfs-speeds-up-data-pump.html
@rene_kundersma
https://blogs.oracle.com/XPSONHA/entry/using_dnfs_for_test_purposes
@yvelikanov http://www.pythian.com/news/tag/dnfs/
2012 Pythian
Your best friends OR things to keep in
mind
efficiency
2012 Pythian
Thank you and Q&A
To contact us
sales@pythian.com
1-877-PYTHIAN
To follow us
http://www.pythian.com/news/
http://www.facebook.com/pages/The-Pythian-
Group/163902527671
@pythian
@pythianjobs
http://www.linkedin.com/company/pythian
2012 Pythian