Re: [SLUG] nfs and Debian what am I missing

From: Matt Miller (Matt.Miller@mptotalcare.com)
Date: Mon Aug 11 2003 - 10:40:01 EDT


On Mon, 2003-08-11 at 06:46, Mike Manchester wrote:
> I have a Debian client that used to do nfs shares to and from a RedHat
> 7.1 server. I have replaced the RedHat 7.1 with Debian Woody and now I
> am unable to do nfs shares. I'm using the same exports file on the sever
> that I was using before and nothing has changed on the client.
> I have the following in
> /etc/init.d
> /etc/init.d/mountnfs.sh /etc/init.d/nfs-kernel-server
> /etc/init.d/nfs-common /etc/init.d/umountnfs.sh
>
> I've restarted nfs-common and nfs-kernel-server. The howto speaks of
> rpc.mound or mountd and nfsd (which it was in Redhat) or rpc.nfsd but I
> can't find those on Debian. Did I not install somehting correctly?

You will find that both mountd and nfsd are invoked by
/etc/init.d/nfs-kernel-server.

$ egrep "nfsd|mountd" /etc/init.d/*

> rpcinfo -p on both machines shows that the client has nfs in the listing
> but the server does not have nfs in the listing. This is another reason
> I'm thinking something is missing.
> I do see ths process running. But I don't see any process running for
> nfs.
> root 19611 1 0 05:54 ? 00:00:00 /usr/sbin/rpc.mountd
> --no-nfs-version 3

As root, do the following --

    $ netstat -pnl|egrep "nfsd|mountd"
    # if the netstat command comes back empty, then nfsd/mountd is not #
    running
    
If they both appear to be running and listening, then do the next -

    $ showmount -e
    # This will show what your nfs server is currently exporting

If neither command returns any results, then I would assume you do not
have nfs server support in the kernel. If you are still running the
stock kernel and have not compiled your own kernel, then you should have
modules for nfsd.

As root --

    $ modprobe nfsd
    $ lsmod # to confirm successful loading of nfsd
    $ /etc/init.d/nfs-kernel-server start
    $ /etc/init.d/nfs-common start
    
Rerun the netstat and showmount commands above to confirm nfsd is
running. Add nfsd to /etc/modules to make the change persistent.

    $ echo "nfsd" >> /etc/modules

-- 

Matt Miller Systems Administrator MP TotalCare gpg public key id: 08BC7B06

-- Insanity in individuals is something rare - but in groups, parties, nations and epochs, it is the rule. -- Nietzsche


----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 16:26:06 EDT