LinuxQuestions.org
Help answer threads with 0 replies.
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 11-11-2004, 04:23 PM   #1
Fenster
Member
 
Registered: Jul 2004
Location: Ireland
Distribution: Fedora Core 2
Posts: 70

Rep: Reputation: Disabled
Trouble setting up NFS...


I have two machines: A laptop and desktop.

The laptop is running Fedora Core 2 and my desktop Fedora Core 3, more or less straight out of the box. All NFS-related services are enabled on both.

I set up my laptop as an NFS server, as I've a lot of files I want to transfer to my desktop. I'm sharing my /home folder and its all mounted cleanly and set to accept connections from my laptop.

/etc/exports:
/home/mark 192.168.0.2(rw,sync) 192.168.0.1(rw,sync)

/etc/hosts.deny:
ALL:ALL

/etc/hosts.allow:
portmap: 192.168.0.2 , 192.168.0.1
lockd: 192.168.0.2 , 192.168.0.1
rquotad: 192.168.0.2 , 192.168.0.1
mountd: 192.168.0.2 , 192.168.0.1
statd: 192.168.0.2 , 192.168.0.1

It mounts cleanly to /mnt/share. 0.2 is my laptop and 0.1 my desktop. Unless I've missed something, they should mount cleanly.

I've set my desktop to mount the shared folder to /home/mark/laptop in /etc/fstab:

192.168.0.2/mnt/share /home/mark/laptop nfs proto=tcp

I checked my boot-up log...NFS is started without errors and no error is mentioned as far as the above mounting goes, but nothing shows in /laptop. At this point I'm clueless so I turn it over to the good people here.
 
Old 11-11-2004, 11:05 PM   #2
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
I believe you need a colon in there.
# device mountpoint fs-type options dump fsckorder
...
master.foo.com:/home /mnt nfs rw 0 0
...

I stole this example from: http://nfs.sourceforge.net/nfs-howto...ml#REMOTEMOUNT

In general, best to use mount to manually check it before making it persistent with /etc/fstab.
 
Old 11-12-2004, 07:45 AM   #3
Fenster
Member
 
Registered: Jul 2004
Location: Ireland
Distribution: Fedora Core 2
Posts: 70

Original Poster
Rep: Reputation: Disabled
You were right, I was missing one. However, its still failing to mount:

mount to NFS server '192.168.0.2' failed.
 
Old 11-12-2004, 01:16 PM   #4
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
How 'bout you try 'rpcinfo -p' and check it against this link:
http://nfs.sourceforge.net/nfs-howto/server.html

What about the firewall?
 
Old 11-12-2004, 01:54 PM   #5
Fenster
Member
 
Registered: Jul 2004
Location: Ireland
Distribution: Fedora Core 2
Posts: 70

Original Poster
Rep: Reputation: Disabled
I've a Softwall hardware firewall runing seperately to these-they plug into the hub and from there the hub plugs into a firewall (old box I've nothing better to do with), so I don't consider than an issue.

I think the machine at fault is my laptop. I was blaming that, couldn't find a thing wrong and tried running rpcinfo on my desktop:

[root@fenster mark]# /usr/sbin/rpcinfo -p
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32768 status
100024 1 tcp 32768 status
 
Old 11-13-2004, 07:25 PM   #6
RHELL
Member
 
Registered: Feb 2004
Location: Outermost mingetty
Distribution: RHEL3,RH4U4,Sol9, Sol10
Posts: 321

Rep: Reputation: 31
According to the sourceforge link I posted, there should be an entry for nfs and one for mountd, in addition to those for portmapper.
Are the daemon's running?
Troubleshooting here:
http://nfs.sourceforge.net/nfs-howto...eshooting.html
 
  


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
trouble in setting up NFS server in Sun Solaris soumyadeep Solaris / OpenSolaris 7 03-03-2005 02:47 AM
NFS trouble N_A_J_M Linux - General 18 02-23-2004 01:17 PM
NFS trouble doralsoral Linux - Software 0 01-20-2004 02:28 PM
a little nfs trouble saturn_vk Linux - Networking 1 03-31-2003 01:34 AM
Trouble with NFS frkstein Linux - General 5 01-12-2003 10:55 PM

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

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