LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-13-2005, 09:10 AM   #1
paddyjoy
Member
 
Registered: Apr 2005
Location: Sydney
Distribution: FC5
Posts: 174

Rep: Reputation: 30
Sharing directories with NFS


Hope someone can help me out with this problem I'm having with NFS.

I have a machine running FC4 and for some reason I can't get it to export a filesystem. In my /etc/exports file I have
Code:
/paddy 192.168.0.0/24(rw,sync,nohide,no_root_squash)
I then run
Code:
exportfs -r
but the file doesn't get exported ie it doesn't show up when I run
Code:
exportfs -v
It's really strange because there are no error messages in /var/log/messages and I have it working perfectly on another FC4 machine. Anyone have any ideas what could be causing this?

Paddy
 
Old 08-13-2005, 12:23 PM   #2
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
I'll ask the obvious questions...

Do you have nfsd, portmap, rpcimapd, mountd and so on enabled? Are you sure the network address is correct (and not, say, 192.168.1.0)?
 
Old 08-13-2005, 06:42 PM   #3
paddyjoy
Member
 
Registered: Apr 2005
Location: Sydney
Distribution: FC5
Posts: 174

Original Poster
Rep: Reputation: 30
Thanks yes I m sure I have the ip address right because I can share a directory on computer A and mount it on computer B but I can't get it to work in the other direction! I have all the correct services running but I have just noticed this error in the output of dmesg.

nfsd: unexporting all filesystems
RPC: failed to contact portmap (errno -5).
nfsd: last server has exited
nfsd: unexporting all filesystems
RPC: error 5 connecting to server localhost
RPC: failed to contact portmap (errno -5).

Any ideas? The portmap service is defo running
 
Old 08-13-2005, 09:23 PM   #4
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Is a firewall on computer A active? (/sbin/iptables -L)

Have you modified selinux to enable nfs sharing? (man nfs_selinux)
 
Old 08-13-2005, 10:54 PM   #5
fortezza
Member
 
Registered: Mar 2003
Location: Colorado
Distribution: Fedora Core 4
Posts: 297

Rep: Reputation: 30
Just got it working myself

I just barely got NFSv4 working on Fedora Core 3, two commands are really usefully when troubleshooting

1. rpcinfo -p ( see nfs services )
2. netstat -tupa ( see active connections and listening ports ).
I run these on both sides to make sure the server is listening and that the client sent its connection request when doing a mount command.

This site is a walkthrough for Gentoo, but it worked for my on Fedora ( except for the Firewall part ) - http://gentoo-wiki.com/HOWTO_Share_Directories_via_NFS

Bon Chance!
 
Old 08-14-2005, 02:48 AM   #6
paddyjoy
Member
 
Registered: Apr 2005
Location: Sydney
Distribution: FC5
Posts: 174

Original Poster
Rep: Reputation: 30
Thanks for the help, there is no firewall on either computer but I haven't done anything with selinux. I think I might have to have a read up about that. I know on computer b I turned it off completly when I was installing fedora so that would explain why computer b works ok!
Paddy
 
Old 08-14-2005, 03:06 AM   #7
paddyjoy
Member
 
Registered: Apr 2005
Location: Sydney
Distribution: FC5
Posts: 174

Original Poster
Rep: Reputation: 30
Got it working, wohoo! Selinux was enables on machine b.

Thanks for the help again,
Paddy
 
  


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
Export directories via NFS nifflerX Linux - Networking 3 07-07-2005 01:21 AM
error exporting nfs directories wastingtime Linux - Networking 1 06-04-2005 04:22 AM
export directories via NFS on redhat 8.0 nifflerX Linux - Networking 1 01-16-2004 02:09 AM
NIS/NFS and sharing home directories grebo Linux - Networking 1 09-21-2001 11:21 PM
NFS mounting directories 98steve600 Linux - General 1 01-24-2001 06:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:59 PM.

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