7/29/2019 NFS Presentation
1/25
NetworkFileSystem
7/29/2019 NFS Presentation
2/25
/etc/rmtab =itisusedtosaveremotelymountedfilesystem
/etc/dfs/dfstab=itisusedtosavethelocalsharedfilesystemitwillreadwhensystembootingandrequestcomingfrom
client(when runthemountcommandfromclient)
/etc/dfs/sharetab=itisusedtosavethe
sharecommandoutput /etc/dfs/fstypes =itisusedtosavetheremotelymountedfilesystem types.
7/29/2019 NFS Presentation
3/25
Mountd daemonserviceisstartedby
svc:/network/nfs/serverMountd daemonisonlyrequiredfor
NFS2/NFS3.
NFSuseswellknownportwithportno2049.
7/29/2019 NFS Presentation
4/25
NFSServerfiles
/etc/dfs/dfstab /etc/dfs/sharetsb
/etc/dfs/fstypes
/etc/rmtab
/etc/nfs/nfslog.conf
/etc/default/nfslogd
7/29/2019 NFS Presentation
5/25
NFSServerdaemon
Mountd
Nfsd
Statd
Lockd
Nfslogd
7/29/2019 NFS Presentation
6/25
NFSServerdaemons
Svc:/network/nfs/server
Svcadm enable
svc:/network/nfs/server
Svcadm disable
svc:/network/nfs/server
7/29/2019 NFS Presentation
7/25
NFSServercommands
Share
Unshare
Shareall
Unshareall
Dfshares
Dfmounts
7/29/2019 NFS Presentation
8/25
ShareFnfs oro /export/home
Toseemountpointsofclientfrom
serverside
#dfmounts #rmmounts
7/29/2019 NFS Presentation
9/25
ServerSharingoptions
ShareFnfs oro directory
ShareFnfs oro rw=client1directory
ShareFnfs oroot=client2directory
ShareFnfs oanon=0directory
#share/export/sys44_dataro
7/29/2019 NFS Presentation
10/25
ServerUnshareing option
ShareFnfs pathname
ShareFnfs /export/sys44_data
7/29/2019 NFS Presentation
11/25
DisplaycurrentlysharedNFS
Resources #dfsharesFnfs host
#shareFnfs oro /export/nfs
#dfshares
7/29/2019 NFS Presentation
12/25
TodisplayNFSMounted
Resources Thedfmountsshowsremotely
mountedNFSResourceinformation
Dfmounts[Fnfs][server]
7/29/2019 NFS Presentation
13/25
ManagingNFSclientfiles
Nfs clientfiles
/etc/vfstab
/etc/mnttab
/etc/dfs/fstypes
7/29/2019 NFS Presentation
14/25
NFSClientDaemons
Statd
Workswithlockd daemontoprovide
crashrecoveryfunctionsforthelockmanager
lockd supportrecord-lockingoperationson
NFSfiles
7/29/2019 NFS Presentation
15/25
Mamaging NFSclientfiles
Svc:/network/nfs/clientservice
Svcadm restart
svc:/network/nfs/client
7/29/2019 NFS Presentation
16/25
ListofNFSclientcommands
Dfshares
Mmout
Umount
Mountall
Umountall Dfmounts
7/29/2019 NFS Presentation
17/25
dfsharessys44
7/29/2019 NFS Presentation
18/25
NFSdefaultmountoptions
7/29/2019 NFS Presentation
19/25
ThenfslogdDaemon
ItisconvertrawdatafromtheloggingoperationintoASCII
Resolvetheip addresstohostnameand
UIDs tologinnames. Mapsthefilehandlestopathnamestables
Ifthisdaemonisnotrunningthechangesarenottrackedtothemappingsinthefilehandle-to-pathtable
7/29/2019 NFS Presentation
20/25
SnoopSnoopSnoopSnoop
Itisusedtoviewthenetworktraffic
betweentwosystems.
Itisnetworkingtroubleshootingtools.
7/29/2019 NFS Presentation
21/25
Commands
Snoopsys1sys2
itwilldisplaythetrafficbetweek 2pcs
Snoopdhme0broadcastToexaminetheframeworkforethernetinterface
Snoopvdhme0broadcasttoviewonlybroadcastpacketsonthe
hme0 interface
7/29/2019 NFS Presentation
22/25
CacheFS
Itisusedtoperformancetheremote
filesystem
ItallowsyoutobeaclientahomedirectorywhichismountedviaNFS
fromanNFSserver.
7/29/2019 NFS Presentation
23/25
ToseeToseeToseeToseedeamonsdeamonsdeamonsdeamons ofofofofnfsnfsnfsnfs::::
#ps ef |grep nfs
#share //readtheentriesfrom/sharetab
#shareall //readtheentriesfrom/dfstab
Whenweapply#share,then/sharetabautomaticallyupdates.
Tomakereadonly:Tomakereadonly:Tomakereadonly:Tomakereadonly:
#shareFnfs oro /sai
#share
7/29/2019 NFS Presentation
24/25
Issue1:Issue1:Issue1:Issue1: Ifserviceisdisable,itwillnotshareIfserviceisdisable,itwillnotshareIfserviceisdisable,itwillnotshareIfserviceisdisable,itwillnotshare
A:checkouttheservicesofNFS&
#svcs a|grep nfs
Ifnetworkpbm:
#svcadm enablenetwork/nfs/server
#share
Ifdeamon pbm:
Juststartthedeamon
#cd /usr/lib/nfs
#filemountd
#./mountd
ToseeportnumToseeportnumToseeportnumToseeportnum
#netstat a|grep infs
7/29/2019 NFS Presentation
25/25