LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 06-06-2009, 07:35 AM   #1
chymeira
Member
 
Registered: Dec 2008
Location: CH/IL
Distribution: Slackware 13.1 Fedora 12
Posts: 73

Rep: Reputation: 16
nfs problem


hello
i am having a problem setting up nfs server \ client on my two fedora 10 machines .
ive read a lot of stuff online , but i cant get it to work .
can u provide me with a good tutorial for fedora 10 ?
thank you very much .
 
Old 06-06-2009, 08:13 AM   #2
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
What exactly is the problem? What have you done so far?
 
Old 06-06-2009, 08:51 AM   #3
chymeira
Member
 
Registered: Dec 2008
Location: CH/IL
Distribution: Slackware 13.1 Fedora 12
Posts: 73

Original Poster
Rep: Reputation: 16
well i followed all the instructions in :
http://optics.csufresno.edu/~kriehn/...howto/nfs.html
but when i want to mount :
mount -t nfs 192.168.0.4:/home/user /tmp/user

i get : mount failed .

is there something special for fedora 10 that i have to change ?
thank you very much
 
Old 06-06-2009, 09:38 AM   #4
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Let's check if everything is running:
If you could type the output of:
1) rpcinfo -p (from the server)
2) rpcinfo -p server_ip (from the client)
 
Old 06-06-2009, 01:01 PM   #5
chymeira
Member
 
Registered: Dec 2008
Location: CH/IL
Distribution: Slackware 13.1 Fedora 12
Posts: 73

Original Poster
Rep: Reputation: 16
this is what i got when i ran : rpcinfo -p on the server :
program vers proto port service
100000 4 tcp 111 portmapper
100000 3 tcp 111 portmapper
100000 2 tcp 111 portmapper
100000 4 udp 111 portmapper
100000 3 udp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 42557 status
100024 1 tcp 57494 status
100011 1 udp 773 rquotad
100011 2 udp 773 rquotad
100011 1 tcp 776 rquotad
100011 2 tcp 776 rquotad
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 4 udp 2049 nfs
100021 1 udp 4001 nlockmgr
100021 3 udp 4001 nlockmgr
100021 4 udp 4001 nlockmgr
100021 1 tcp 4001 nlockmgr
100021 3 tcp 4001 nlockmgr
100021 4 tcp 4001 nlockmgr
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100003 4 tcp 2049 nfs
100005 1 udp 45202 mountd
100005 1 tcp 47207 mountd
100005 2 udp 45202 mountd
100005 2 tcp 47207 mountd
100005 3 udp 45202 mountd
100005 3 tcp 47207 mountd


but when i ran : rpcinfo -p server_ip on my client i got :
rpcinfo : cant contact portmapper : RPC : Unknown host

thx again for fast replies .
 
Old 06-06-2009, 01:12 PM   #6
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Have you edited tcp_wrappers on the server?


In /etc/hosts.deny

Code:
portmap:ALL
lockd:ALL
rpcbind:ALL
mountd:ALL
rquotad:ALL
statd:ALL

And /etc/hosts.allow

Code:
portmap: 192.168.0.1
rpcbind: 192.168.0.1
lockd: 192.168.0.1
rquotad: 192.168.0.1 
mountd: 192.168.0.1 
statd: 192.168.0.1
192.168.0.1 is just an example - obviously you need the ip address of the client

Also on the server you can use system-config-securitylevel to make sure that the ports responsible for nfs are open.

What's your /etc/sysconfig/nfs?

edit: I don't think you will need the portmap lines in allow/deny.conf files. It was used on CentOS - Fedora uses rpcbind.

Last edited by sycamorex; 06-06-2009 at 01:15 PM.
 
Old 06-06-2009, 02:01 PM   #7
chymeira
Member
 
Registered: Dec 2008
Location: CH/IL
Distribution: Slackware 13.1 Fedora 12
Posts: 73

Original Poster
Rep: Reputation: 16
my hosts.deny / allow look exactly like that .
in my system-config-securitylevel i only have the line : --service=ssh

in my /etc/sysconfig/nfs everything is commented , except for the lines i added according to the tutorial i linked above .

Thank you very much .
 
Old 06-06-2009, 02:06 PM   #8
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by chymeira View Post
in my system-config-securitylevel i only have the line : --service=ssh
You need to tick NFS4 to open the ports
 
Old 06-06-2009, 02:13 PM   #9
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Quote:
Originally Posted by chymeira View Post
in my /etc/sysconfig/nfs everything is commented , except for the lines i added according to the tutorial i linked above .

Thank you very much .
Can you post the output of you sysconfig/nfs? Sorry, I'm being lazy
 
Old 06-06-2009, 02:27 PM   #10
chymeira
Member
 
Registered: Dec 2008
Location: CH/IL
Distribution: Slackware 13.1 Fedora 12
Posts: 73

Original Poster
Rep: Reputation: 16
#
# Define which protocol versions mountd
# will advertise. The values are "no" or "yes"
# with yes being the default
#MOUNTD_NFS_V1="no"
#MOUNTD_NFS_V2="no"
#MOUNTD_NFS_V3="no"
#
#
# Path to remote quota server. See rquotad(8)
#RQUOTAD="/usr/sbin/rpc.rquotad"
# Port rquotad should listen on.
#RQUOTAD_PORT=875
# Optinal options passed to rquotad
#RPCRQUOTADOPTS=""
#
#
# Optional arguments passed to in-kernel lockd
#LOCKDARG=
# TCP port rpc.lockd should listen on.
#LOCKD_TCPPORT=32803
# UDP port rpc.lockd should listen on.
#LOCKD_UDPPORT=32769
#
#
# Optional arguments passed to rpc.nfsd. See rpc.nfsd(8)
# Turn off v2 and v3 protocol support
#RPCNFSDARGS="-N 2 -N 3"
# Turn off v4 protocol support
#RPCNFSDARGS="-N 4"
# Number of nfs server processes to be started.
# The default is 8.
#RPCNFSDCOUNT=8
# Stop the nfsd module from being pre-loaded
#NFSD_MODULE="noload"
#
#
# Optional arguments passed to rpc.mountd. See rpc.mountd(8)
#RPCMOUNTDOPTS=""
# Port rpc.mountd should listen on.
#MOUNTD_PORT=892
#
#
# Optional arguments passed to rpc.statd. See rpc.statd(8)
#STATDARG=""
# Port rpc.statd should listen on.
#STATD_PORT=662
# Outgoing port statd should used. The default is port
# is random
#STATD_OUTGOING_PORT=2020
# Specify callout program
#STATD_HA_CALLOUT="/usr/local/bin/foo"
#
#
# Optional arguments passed to rpc.idmapd. See rpc.idmapd(8)
#RPCIDMAPDARGS=""
#
# Set to turn on Secure NFS mounts.
#SECURE_NFS="yes"
# Optional arguments passed to rpc.gssd. See rpc.gssd(8)
#RPCGSSDARGS=""
# Optional arguments passed to rpc.svcgssd. See rpc.svcgssd(8)
#RPCSVCGSSDARGS=""
#

according to the tutorial is have to edit the following line :
STATD=PORT4000
 
Old 06-06-2009, 02:49 PM   #11
sycamorex
LQ Veteran
 
Registered: Nov 2005
Location: London
Distribution: Slackware64-current
Posts: 5,836
Blog Entries: 1

Rep: Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251Reputation: 1251
Try specifying the following ports in /etc/sysconfig/nfs:
Quote:
STATD_PORT=4000
STATD_OUTGOING_PORT=4004
LOCKD_TCPPORT=4001
LOCKD_UDPPORT=4001
MOUNTD_PORT=4002
RQUOTAD_PORT=4003
Then you need to open the following ports in your server firewall: 111- rpcbind uses it, 2049 - for NFS, and 4000-4004 for the above mentioned RPC services. I'm not sure if you need to open all of them. Perhaps, someone can correct me.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NFS problem whit AIX nfs server . uglumen Solaris / OpenSolaris 1 10-17-2008 06:10 AM
NFS problem nooni Linux - Newbie 1 03-11-2008 04:30 PM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
Lan configuration problem - NFS boot problem - RX&TX packets errors 242VDM242 Linux - Networking 4 11-25-2004 01:35 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:58 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration