LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-18-2001, 02:29 PM   #1
thetruevoice
Member
 
Registered: Feb 2001
Posts: 51

Rep: Reputation: 15
Nfs


I made my 1st atttempt at nfs last night to setup shares between my 2 linux boxes. In the howto i was readin it seemed fairly simple but i couldnt get it to work. Ill mess with it somemore tonight. but if anyone can see something obvious im doing wrong please say so.

on the server (god, 192.168.0.1)

i added this to /etc/exports

/usr/local 192.168.0.1 (ro) 192.168.0.2 (ro)
/home 192.168.0.1 (rw) 192.168.0.2 (rw)


hosts.deny looks like this

ALL:ALL

hosts.allow is....

swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/swat
portmap: 192.168.0.1 , 192.168.0.2
lockd: 192.168.0.1 , 192.168.0.2
rquotad: 192.168.0.1 , 192.168.0.2
mountd: 192.168.0.1 , 192.168.0.2
statd: 192.168.0.1 , 192.168.0.2

then on the client box (callandor 192.168.0.2)
i tried to run...

mount god.picklesworth.com: /home /mnt/home

and it came back with this error

unable to recieve cconnection refused


**i just reliazed something. Does NFS look into /etc/hosts or /etc/lmhosts or any of those files. if not, did this not work because i tried to mount god.picklesworth.com instead of mount 192.168.0.1?
 
Old 09-22-2001, 01:29 AM   #2
siddiqu
Member
 
Registered: Mar 2001
Location: India
Posts: 332

Rep: Reputation: 30
hi..


Enabel tcpdump on both the machines and check the logs

1. Request is coming to ur mail machine ???
2.If it is coming why it is refusing the connection ??
3. First try to mount the partitiions Locally and check what error u are getting?

post the logs we can find the problem
siddiqu.T
 
Old 09-22-2001, 04:24 AM   #3
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
Re: Nfs

Quote:
Originally posted by thetruevoice
i added this to /etc/exports

/usr/local 192.168.0.1 (ro) 192.168.0.2 (ro)
/home 192.168.0.1 (rw) 192.168.0.2 (rw)
Be careful with your spaces!! You are actually giving 192.168.0.1 & 192.168.0.2 read/write access to /usr/local, and everyone else read only access, your /usr/local line should read
Code:
/usr/local   192.168.0.1(ro)   192.168.0.2(ro)
Quote:
Originally posted by thetruevoice
hosts.allow is....

swat stream tcp nowait.400 root /usr/sbin/tcpd /usr/sbin/swat
portmap: 192.168.0.1 , 192.168.0.2
lockd: 192.168.0.1 , 192.168.0.2
rquotad: 192.168.0.1 , 192.168.0.2
mountd: 192.168.0.1 , 192.168.0.2
statd: 192.168.0.1 , 192.168.0.2
Shouldn't there be some mention of your nfs daemon here?

As for /etc/hosts - I would make sure its setup anyway, if its not then you will need to make sure that you always use IP addresses everywhere, otherwise things will fail and there will be no mapping between the names you are using and IP addresses.

HTH

Jamie...
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 06:16 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 05:18 AM
SuSE 9.0 NFS client with RHL 7.3 NFS server ocjacob Linux - Networking 0 02-01-2005 02:01 PM
fast encrypted NFS but slow regular NFS cazzazullu Linux - Networking 0 10-19-2004 11:08 AM
nfs client should it use tcp or udp to nfs serve rportmapper andersonas Linux - Networking 2 06-30-2004 01:05 PM

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

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