LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-22-2002, 04:22 PM   #1
tge
LQ Newbie
 
Registered: Mar 2002
Location: Southampton County, VA
Distribution: RH 7.1
Posts: 13

Rep: Reputation: 0
NFS - not in /proc/filesystems


Hello,

Trying to get nfs going. Have read NFS-HOWTO, O'Reilly NAG NFS chapter and postings on this site. distro RH 7.1.

When I do,
cat /proc/filesystems
it does NOT show nfs.

When I do
rpm -qa |grep nfs
I get
nfs-utils-0.3.1-5
which means, I think, that the package is installed.


So, how do I get the kernel to recognize nfs? Will insmod do the trick? And if use insmod, is that a permanent configuration,
i.e. will nfs be back if I have to reboot?

Modules I found:
/lib/modules/2.4.2-2/kernel/fs/nfsd/nfsd.o
/lib/modules/2.4.2.-2/kernel/fs/nfs/nfs.o

Is one of these what I need?

Thanks

Tom Eischeid
 
Old 03-23-2002, 07:30 AM   #2
The_real_BoB
LQ Newbie
 
Registered: Mar 2002
Distribution: Redhat 7.2
Posts: 7

Rep: Reputation: 0
What are you trying to install: a client or a server?

client:
mount -t nfs servername:mountpoint_server local_mountpoint
example:
# mount -t nfs idifix:/mnt/cdrom /root/cdrom

server:
adjust your /etc/exports
# /usr/sbin/exportfs -a -v
or
# /etc/rc.d/init.d/nfs start


(Above example is on my Redhat 7.2)
 
Old 03-24-2002, 01:29 PM   #3
tge
LQ Newbie
 
Registered: Mar 2002
Location: Southampton County, VA
Distribution: RH 7.1
Posts: 13

Original Poster
Rep: Reputation: 0
Hello Real Bob,

I have gone back and implemented your suggestions, which I
was in the process of doing earlier.

However, when I attempt to mount the server directory on
the client, I get an error.

e.g. if I type

mount -t nfs svr_name:/svr_directory /client_dir

it returns

mount: svr_name:svr_directory failed, reason given by server: Permission denied.

The /etc/exports file on the server lists the svr_directory
with read-only access by IP address, e.g.
/svr_directory 10.10.10.1(ro)

rpc.mount and nfsd show in a px aux list.

I still think my problem is that the kernel on the client and the server do not list nfs in cat /proc/filesystems.

Both the O'Reilly Network Admin Guide and the NFS HOWTO state
that the kernel needs nfs support and use the
cat /proc/filesystems command for determining if it is there.

Also, on both machines, ipchains -L shows
Chain input (policy ACCEPT):
Chain forward (policy ACCEPT):
Chain output (policy ACCEPT):

I have read that firewalling sometimes interferes with nfs
so I opened it up.

I have also run exportfs -a -v on the server and it
acknowledges reexporting the directories to the kernel.
I guess what puzzles me is why it would say that if the
cat /proc/filesystems does not list nfs.

Thanks for any more words of wisdom.

Tom Eischeid
 
Old 03-26-2002, 10:56 AM   #4
The_real_BoB
LQ Newbie
 
Registered: Mar 2002
Distribution: Redhat 7.2
Posts: 7

Rep: Reputation: 0
Hmm

When I do
#cat /proc/filesystems
on my router it doesn't say anything of nfs and i can mount nfs-dirs.

You can try to adjust your /etc/exports to
/svr_directory *(ro)

I had once the same error and that was because I typed the wrong servername. Check if the servername is in your /etc/hosts file.

Hope this helps.

BoB
 
Old 03-27-2002, 05:08 PM   #5
tge
LQ Newbie
 
Registered: Mar 2002
Location: Southampton County, VA
Distribution: RH 7.1
Posts: 13

Original Poster
Rep: Reputation: 0
Hello Real Bob,

nfs is working now. Thanks for your help.

I put a bunch of "echo .... " > /tmp/nfs-start.out
statements in the nfs startup file.
Uses /etc/rc.d/init.d/nfs in RH.

Apparently the client also wants an /etc/exports file.
I thought the server needed the /etc/exports file to see
which directories it could export when someone did a
mount -t nfs server:/nfsdir
from the client. What is the client doing with it?

I'm not sure what the client is using /etc/exports for in
this case since all it has in it (on the client) is
/nfs-dir <server-IP-addr>(ro)

But the
service start nfs
will fail if /etc/exports is not there.
It also has to be > 0 bytes.

Right now I have two machines with an nfs directory
mounted from the other (not the same ones) and all
seems to be OK.

Thanks for your help. I have about 10 years of Unix,
(and not much networking) but only 6 months of Linux so
a lot of this is new. Now on to NIS.

Tom
 
Old 03-27-2002, 05:59 PM   #6
Sixpax
Member
 
Registered: Mar 2002
Distribution: Mandrake 8.1
Posts: 386

Rep: Reputation: 30
The client doesn't need to run any nfsd processes, just the server. The reason you are having to create a /etc/exports file is because you are starting up an nfs server on the client... the server looks for /etc/exports.

I can't remember what daemons the client needs other than portmap... even rpc.mountd is only needed by the server.
 
Old 03-28-2002, 06:09 PM   #7
tge
LQ Newbie
 
Registered: Mar 2002
Location: Southampton County, VA
Distribution: RH 7.1
Posts: 13

Original Poster
Rep: Reputation: 0
Sixpax,

Based on my reading, that's what I thought, i.e. the server needs
the nfsd and mount -t nfs on the client takes care of that end.

So, on the client, I did
service nfs stop

and then
mount -t nfs server:/nfs-dir /nfs-dir-client

Now it works fine. And the client only shows (ps aux):
[rpciod]
[lockd]
which mount apparently started.

I kept records as I set this up,
so I am going to uninstall nfs and start over.
I will understand this.

Thanks for your help.

Tom
 
  


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 write access denied on one of two filesystems TomF Linux - Security 2 02-23-2005 08:48 PM
Mounting NFS Filesystems at startup, always fails.. stellarmarine1 Linux - Networking 7 02-03-2005 12:40 PM
no NFS in /proc/filesystems how to add NFS? BobNz Linux - Software 4 07-08-2004 02:40 AM
Unmounting NFS filesystems: Cannot MOUNTPROG RPC: RPC ErnstVikenstein Linux - General 4 05-31-2003 12:10 AM
unmounting NFS filesystems failed??? matjaz85 Linux - General 1 05-02-2002 06:19 PM


All times are GMT -5. The time now is 01:43 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration