From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,5f57a0d006dbf74c X-Google-Attributes: gidfee84,public From: nospam@zk3.dec.com (Eric Werme - replace nospam with werme) Subject: Re: nfs Date: 1999/10/08 Message-ID: <7tl323$4fg$1@nntpd.lkg.dec.com> X-Deja-AN: 534437936 References: <37F884F5.715740D6@dec533au2.biologie.Uni-Osnabrueck.DE> Organization: Digital Equipment Corporation Reply-To: (Replace nobody with werme) nobody@zk3.dec.com Newsgroups: comp.unix.osf.osf1 Siggi Engelbrecht 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 : 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 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 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 <> <> <> Compaq Computer Corp. <> <> <> http://people.ne.mediaone.net/werme <>