Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: nospam@zk3.dec.com (Eric Werme - replace nospam with werme)
Subject: Re: nfs
Date: 1999/10/08	[thread overview]
Message-ID: <7tl323$4fg$1@nntpd.lkg.dec.com> (raw)
In-Reply-To: 37F884F5.715740D6@dec533au2.biologie.Uni-Osnabrueck.DE

Siggi Engelbrecht <engel@dec533au2.biologie.Uni-Osnabrueck.DE> writes:

>trying to set up nfs mounts between a dec alpha/osf3.2d and a dec
>alpha/t64u4.0f machine ..
> - edit /etc/exports
> - setting up nfs via nfs_manual_setup

>showmount -e indicates expected filesystem

>mount command gives the following message:

>mount -t nfs <server name>:<exported filesystem on server>  <mount point
>on client>

>NFS Portmap: RPC: Program not registered
>NFS Portmap: RPC: Program not registered

Well!  You seem to have stirred up a bit of a hornet's nest vis-a-vis
configuration, but no one has done a decent job answering your question.

First, when "NFS doesn't work" and everything else does, do:

	rpcinfo -p <server>

For an NFS mount to work you must see entries for portmap, mountd, and
nfs, e.g.: [bracketed notes are the programs that support the RPC program]

$ rpcinfo -p
   program vers proto   port
    100000    2   tcp    111  portmapper	[portmap]
    100000    2   udp    111  portmapper
    100007    2   tcp   1024  ypbind
    100007    2   udp   1027  ypbind
    100007    1   tcp   1024  ypbind
    100007    1   udp   1027  ypbind
    100005    1   udp   1035  mountd		[mountd]
    100005    3   udp   1035  mountd
    200023    1   udp   1035  exportmap
    100005    1   tcp    969  mountd
    100005    3   tcp    969  mountd
    100003    2   udp   2049  nfs		[nfsd]
    100003    2   tcp   2049  nfs
    100003    3   udp   2049  nfs
    100003    3   tcp   2049  nfs
    100011    1   udp   1040  rquotad
    100068    2   udp   1041  rpc.cmsd
    100068    3   udp   1041  rpc.cmsd
    100068    4   udp   1041  rpc.cmsd
    100083    1   tcp   1029  rpc.ttdbserverd
    100024    1   udp   1165  status		[rpc.statd]
    100024    1   tcp   4899  status
    100021    1   tcp   1561  nlockmgr		[rpc.lockd]
    100021    3   tcp   1561  nlockmgr
    100021    4   tcp   1561  nlockmgr
    100021    2   tcp   1561  nlockmgr
    100020    3   tcp   1561  llockmgr
    100021    1   udp   1885  nlockmgr
    100021    3   udp   1885  nlockmgr
    100021    4   udp   1885  nlockmgr
    100021    2   udp   1885  nlockmgr
    100020    3   udp   1885  llockmgr

Your users will complain if status and nlockmgr are not listed too, but
at least a mount, cat, cp, etc. will work.

If a server daemon has coredumped, it may still be listed in the above, but
not really be there.  You can verify a service is available via:

$ rpcinfo -u <server> nfs
program 100003 version 2 ready and waiting
program 100003 version 3 ready and waiting

>NFS Portmap: RPC: Program not registered

Comes from this line in mount.c:

	clnt_pcreateerror("NFS Portmap");

It prints when the server is not running nfsd.  BTW, in V5.0 this is:

	sprintf(str_tmp, "\
Cannot get NFS port from portmap server at %s", host);
	clnt_pcreateerror(str_tmp);

Which I hope will be a lot more clear.

That "showmount -e" worked says mountd was running.  That mount failed
says that nfsd is not running.

You could start nfsd manually or do the more complete:

	nfs stop; nfs start

(You should use the stop to stop mountd.)


_Personal_ thoughts on configuration tools.

GUIs have their place.  If fact, if you had used it, it would have
started nfsd for you.  However, they hide a lot of details and knowledge
from people using them.  This can be good, especially for customers who
don't want to be "poking around under the hood".  It can be bad when
you need to diagnose what went wrong.

I understand NFS intimately and often do things like:

	mfs -s 120000 /mfs ; echo /mfs >> /etc/exports

and only occasionally use a single '>'.  :-)  In the long run it saves
me time.  For systems I reinstall often, I have scripts that do a
series of "rcmgr set" commands for rc.config and "cp" commands for
the other /etc config files.

One of the key reasons for using GUIs is that telephone support becomes
easier.  If I maintained a system used by 1,000 people, I'd probably
use them myself.  A downside is that there must be a limited number
of GUIs, or else adminstering a Unix system is as complex as remember
all the commands, config files and their interaction.  It's still
too easy to get lost within the GUI tree.

In this particular case, the GUI would have helped you.  However, all
the old Unix ASCII files still exist.  Unix configuration (at least
NFS configuration!) will remain within reach of ed(1) and single user
mode.  As far as I'm concerned, use which works best.

One caveat - When people don't use the GUI, I insist they know how to use
rpcinfo and tcpdump.  See the Tru64 FAQ for tcpdump info.
--
<>    Eric (Ric) Werme    <> The above is unlikely to contain    <>
<>    ROT-13 addresses:   <> official claims or policies of      <>
<>   <jrezr@mx3.qrp.pbz>  <> Compaq Computer Corp.               <>
<>  <jrezr@zrqvnbar.arg>  <> http://people.ne.mediaone.net/werme <>



  parent reply	other threads:[~1999-10-08  4:00 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-10-04  4:00 nfs Siggi Engelbrecht
1999-10-04  4:00 ` nfs Javier de Burgos
1999-10-04  4:00   ` nfs Richard Eckman
1999-10-04  4:00   ` nfs Marco Benton
1999-10-06  4:00     ` nfs Johan Schoofs
1999-10-05  4:00       ` nfs Serguei Patchkovskii
1999-10-05  4:00       ` nfs Marco Benton
1999-10-07  4:00     ` nfs Peter da Silva
     [not found]     ` <7te0g0$iap$1@news3.belgium.eu.net>
1999-10-07  4:00       ` nfs Peter da Silva
1999-10-07  4:00     ` nfs Peter da Silva
1999-10-07  4:00       ` nfs Marco Benton
1999-10-11  4:00         ` nfs Eric Werme - replace nospam with werme
1999-10-08  4:00     ` nfs Eric Werme - replace nospam with werme
1999-10-08  4:00 ` Eric Werme - replace nospam with werme [this message]
  -- strict thread matches above, loose matches on Subject: below --
1997-08-05  4:00 nfs Martyn Brown
1995-05-10  4:00 NFS Holger Burde
1995-05-14  4:00 ` NFS Peter Mayne
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox