LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-03-2006, 04:20 PM   #1
RedBoot
LQ Newbie
 
Registered: Dec 2005
Distribution: SUSE Linux v 10
Posts: 22

Rep: Reputation: 15
Question NFS the way to go?


I've got two Ubuntu 5.10 workstations in a classroom and a SuSE 10 machine that I want to have be a server.

I want the server to provide file storage for the two Ubuntu PCs. As an experiment, I tried to setup NFS. Seemed to setup the parameters okay, but the NFS client (my test client was a 4th machine running SuSE, too just to eliminate the dual-distro issue) can't see any NFS servers.

Is NFS the best or easiest way to do what I want?

If not, what should I use?

If so, how can I get NFS to work? Here's some details:

I used the SuSE 10.0 Yast2 Network NFS Server setup and another SuSE 10.0 PC setup as NFS client. At the client I click on Add server, it looks for NFS servers for about a minute and comes back with a blank list.
So attempting command line I do:

cat /etc/exports
/shared/ *(rw,root_squash,sync) 192.168.1.24/24 (rw,root_squash,sync)

exportfx -r

showmount -e
Export list for linuxsrv:
/shared )everyone)

Still doesn't work.

I checked the "open firewall" box. Firewall shows NFS server and NFS client listed. I also tried many other configuations. Nada.

Not sure what to try next...

Last edited by RedBoot; 03-03-2006 at 04:22 PM.
 
Old 03-03-2006, 04:27 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
yeah, NFS is probably the best option, and it's generally really easy to set up.

on the client machine run "showmount -e nfs_server" to see what the client can make of the server over the network. also check you can ping it etc... in terms of firewalling, also try running "iptables -L" on both machines to see if there are any rules which might be blocking it.

also though, you've specified the network technically wrong, you should have 192.168.1.0/24, but i doubt that that would actually cause a problem.
 
Old 03-05-2006, 05:37 PM   #3
RedBoot
LQ Newbie
 
Registered: Dec 2005
Distribution: SUSE Linux v 10
Posts: 22

Original Poster
Rep: Reputation: 15
I tried what you suggested.

iptables -L | grep nfs gives:
Quote:
LOG udp -- anywhere anywhere limit: avg 3/min burst 5 state NEW udp dpt:nfs LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-RPC '
ACCEPT udp -- anywhere anywhere udp dpt:nfs
LOG tcp -- anywhere anywhere limit: avg 3/min burst 5 state NEW tcp dpt:nfs LOG level warning tcp-options ip-options prefix `SFW2-INext-ACC-RPC '
ACCEPT tcp -- anywhere anywhere tcp dpt:nfs
showmount -e nfs_server when run from the server OR from the client gives:
Quote:
showmount: can't get address for nfs)server
To see what the client is doing when I try to activate NFS, I used Ethereal and sniffed packets from client (I did this from server so I know the 2 machines can communicate over the LAN) For about two minutes it sends UDP broadcast (255) packets that are the Portmap protocol and say:
Quote:
[RPC retransmission of #136]V2 CALLIT Call
I could be wrong, but it seems to me that the client is doing SOMETHING.

Any other suggestions will be tried and appreciated.
 
Old 03-06-2006, 02:56 AM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
you didn't seriously literally run "showmount -e nfs_server" did you? you need to actaully point it at the server address... that was just an example...
 
Old 03-06-2006, 12:07 PM   #5
RedBoot
LQ Newbie
 
Registered: Dec 2005
Distribution: SUSE Linux v 10
Posts: 22

Original Poster
Rep: Reputation: 15
Yes. I guess that shows how desperate I am.

In my first post I showed what I got with showmount -e.
I get the same result with showmount -e linuxsrv.site Which is: /shared (everyone)

I'll try the showmount -e linuxsrv.site on the client a bit later and let you know.
 
Old 03-06-2006, 08:37 PM   #6
RedBoot
LQ Newbie
 
Registered: Dec 2005
Distribution: SUSE Linux v 10
Posts: 22

Original Poster
Rep: Reputation: 15
Okay,
I tried it and here goes;
Quote:
showmount -e linuxsrv
Export list for linuxsrv:
/shared (everyone)
That looked promising, so I referred to my "Linux Administration; A Beginner's Guide" for commands to use. (Remember, I had been using SuSE's Yast GUI) So I got:
Quote:
mount -o rw,bg,soft linuxsrv:/shared /shared
mount: backgrounding "linuxsrv:/shared"
Tried to access /shared. No deal. I tried to do without the "bg" portion and got:
Quote:
mount -o rw,soft linuxsrv:/shared /shared
mount: mount point /shared does not exist
Oops. That's right, I have to mkdir /shared!

So I do a ls on /shared and it works! (I see a bogus file I placed there for testing)

Now I try to save a new file to the /shared directory and I get an error. I'm thinking when I mkdir the /shared directory, the default permissions were for the root only so I need to chmod 777.

To make this permanent, would you agree that I need to enter into the /etc/fstab file?
Quote:
linuxsrv:/shared /shared nfs rw,bg,intr,soft 0 0
Thanks. So much for using the GUI.
 
  


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
SUSE NFS client can't detect an NFS server RedBoot SUSE / openSUSE 4 01-19-2009 11:56 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
SuSE 9.0 NFS client with RHL 7.3 NFS server ocjacob Linux - Networking 0 02-01-2005 01:01 PM
nfs client should it use tcp or udp to nfs serve rportmapper andersonas Linux - Networking 2 06-30-2004 12:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:39 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