You are on page 1of 2

6/10/2016

Installingandconfigringnfsserverstepbysteppart2

Installingandconfigringnfsserverstepbysteppart2
Nowexportthefiletonetwork
Ifyoualreadystartedtheservicesbeforecreatingan/etc/exportsfile,youcanalsousetheexportfscommand
tomanuallyexportanynewresourcesaddedtothe/etc/exportsfile.
Syntax:exportfs[options]
Options:
aExportsorunexportsalldirectories
rReexportsalldirectories
uUnexportsoneormoredirectories
vProvidesverboseoutput
Step1:Hereiswhatamanualexportofresourceswouldlooklike:
#exportfsavr
exporting*:/opt/company_data
exporting*:/home
Step2.Alternatively,youcanalsogetthesameeffectbyrestartingonlytheNFSservice,whichinturnrestarts
alldaemons:
#servicenfsrestart
ShuttingdownNFSmountd:[OK]
ShuttingdownNFSdaemon:[OK]
ShuttingdownNFSquotas:[OK]
ShuttingdownNFSservices:[OK]
StartingNFSservices:[OK]
StartingNFSquotas:[OK]
StartingNFSdaemon:[OK]
StartingNFSmountd:[OK]
NowthatalltheresourceshavebeenexportedproperlyandtheNFSservicehasbeenstarted,youcanusethe
rpcinfocommandtoverifythatallthepartsoftheNFSservicearerunningproperly.
Syntax:rpcinfop[host]
Youcanviewbothlocalandremoteconnectioninformationwiththerpcinfocommand.Becauseyouarelooking
forinformationaboutthelocalserver,youdonthavetospecifyahostwhencallingthecommand.Viewthe
currentrunningnfsdaemons:
#rpcinfop
programversprotoportservice
1000004tcp111portmapper
1000003tcp111portmapper
1000002tcp111portmapper
1000004udp111portmapper
1000003udp111portmapper
1000002udp111portmapper
1000241udp41853status
http://redhatenterpriselinux.blogspot.com/2012/07/installingandconfigringnfsserver_23.html#.V1uHV_krKUk

1/2

6/10/2016

Installingandconfigringnfsserverstepbysteppart2

1000241tcp40535status
1000111udp875rquotad
1000112udp875rquotad
1000111tcp875rquotad
1000112tcp875rquotad
1000034tcp2049nfs
1000034udp2049nfs
1000211udp32769nlockmgr
1000213udp32769nlockmgr
1000214udp32769nlockmgr
1000211tcp32803nlockmgr
1000213tcp32803nlockmgr
1000214tcp32803nlockmgr
Whereyouseethenfsdaemonrunning,noticethatonlyversion4islisted.Thereasonisthatyoudisabledall
otherversionsintheconfigfile.Althoughsomeoftheotherdaemonslisteduseotherversionsaswell,you
shouldverifythatatleastthenfsdaemonshowsversion4.
Installingandconfigringnfsserverstepbysteppart3
PostedbyAbdulRaziqat3:05PM
Labels:NFS

http://redhatenterpriselinux.blogspot.com/2012/07/installingandconfigringnfsserver_23.html#.V1uHV_krKUk

2/2

You might also like