Failure to connect to NFS shares - portmapper problem on suse 8.1 client
Hi! i'm working on my little home network; and have set up the server with suse 8.1; and can connect (i.e ping and ssh) to/from it to the workstation. Now I'm trying to set up NFS to share two partitions in the network when my workstation and laptop is booted with linux. However I'm having no luck in connecting the shared partitions. The error messages I get; when trying to connect the shares localy on the worksation through yast is: "Error. Unable to mount the NFS entries from /etc/fstab" If I try to do it manualy; i.e "mount -t nfs 192.162.5.10:/local /media/lokal" I get this: "mount: RPC: Feil i portmapper - RPC: Kan ikke sende" translated to english this should be something like this "mount: RPC: Error in portmapper - RPC: can not send" On the server (192.168.5.10 hostname yoda.local) etc/exports and the nfs daemon are running. rpcinfo -p gives this: 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100005 1 udp 32772 mountd 100005 1 tcp 32772 mountd 100005 2 udp 32772 mountd 100005 2 tcp 32772 mountd 100005 3 udp 32772 mountd 100005 3 tcp 32772 mountd 100024 1 udp 32773 status 100024 1 tcp 32773 status If I try to start the nfs daemon in /etc/init.d/nfs I get this: linux:/home/larsf # /etc/init.d/nfs restart Remove Net File System (NFS) done Importing Net File System (NFS)mount: RPC: Programmet ikke registrert mount: RPC: Programmet ikke registrert failed linux:/home/larsf # /etc/init.d/nfs start Importing Net File System (NFS)mount: RPC: Programmet ikke registrert mount: RPC: Programmet ikke registrert failed I.e It says: The program (nfs) is not registered! What to do about this? regards larsf
What filesystem are you mounting (reiser, xfs, ext2, etc)? If it is reiserfs, it may help to change it to another type. See earlier discussions in this list. Op zaterdag 5 juli 2003 20:56, schreef Lars Forseth:
Hi!
i'm working on my little home network; and have set up the server with suse 8.1; and can connect (i.e ping and ssh) to/from it to the workstation.
Now I'm trying to set up NFS to share two partitions in the network when my workstation and laptop is booted with linux. However I'm having no luck in connecting the shared partitions.
The error messages I get; when trying to connect the shares localy on the worksation through yast is: "Error. Unable to mount the NFS entries from /etc/fstab"
If I try to do it manualy; i.e "mount -t nfs 192.162.5.10:/local /media/lokal" I get this: "mount: RPC: Feil i portmapper - RPC: Kan ikke sende" translated to english this should be something like this "mount: RPC: Error in portmapper - RPC: can not send"
On the server (192.168.5.10 hostname yoda.local) etc/exports and the nfs daemon are running.
rpcinfo -p gives this: 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100005 1 udp 32772 mountd 100005 1 tcp 32772 mountd 100005 2 udp 32772 mountd 100005 2 tcp 32772 mountd 100005 3 udp 32772 mountd 100005 3 tcp 32772 mountd 100024 1 udp 32773 status 100024 1 tcp 32773 status
If I try to start the nfs daemon in /etc/init.d/nfs I get this:
linux:/home/larsf # /etc/init.d/nfs restart Remove Net File System (NFS) done Importing Net File System (NFS)mount: RPC: Programmet ikke registrert mount: RPC: Programmet ikke registrert failed linux:/home/larsf # /etc/init.d/nfs start Importing Net File System (NFS)mount: RPC: Programmet ikke registrert mount: RPC: Programmet ikke registrert failed
I.e It says: The program (nfs) is not registered!
What to do about this?
regards larsf
-- Richard Bos Without a home the journey is endless
Richard Bos wrote:
What filesystem are you mounting (reiser, xfs, ext2, etc)? If it is reiserfs, it may help to change it to another type. See earlier discussions in this list.
Op zaterdag 5 juli 2003 20:56, schreef Lars Forseth:
No need to change filesystem, I'd say.. I have been told that with reiserFS IP-addresses don't work, but instead use hostnames to connect.. Just add the servers hostname to your /etc/host 192.168.5.10 servername.domainname And retry then.. Worked with me on both 8.1 and 8.2pro P_S
On Saturday 05 July 2003 20:22, P_S wrote:
Richard Bos wrote:
What filesystem are you mounting (reiser, xfs, ext2, etc)? If it is reiserfs, it may help to change it to another type. See earlier discussions in this list.
Op zaterdag 5 juli 2003 20:56, schreef Lars Forseth:
No need to change filesystem, I'd say.. I have been told that with reiserFS IP-addresses don't work, but instead use hostnames to connect..
That's an interesting idea. How wvactly would the IP/hostname interraction figure wrt an fs issue? Dylan -- Sweet moderation Heart of this nation Desert us not We are between the wars - Billy Bragg
Dylan wrote:
That's an interesting idea. How wvactly would the IP/hostname interraction figure wrt an fs issue?
Beats me, but nearly similar situation I had earlier was solved with the solution I provided. If I am correct you also then suggested to move away from reiser... http://lists.suse.com/archive/suse-linux-e/2003-Jan/3937.html P_S
On Saturday 05 July 2003 21:22, P_S wrote:
Richard Bos wrote:
What filesystem are you mounting (reiser, xfs, ext2, etc)? If it is reiserfs, it may help to change it to another type. See earlier discussions in this list.
Op zaterdag 5 juli 2003 20:56, schreef Lars Forseth:
No need to change filesystem, I'd say.. I have been told that with reiserFS IP-addresses don't work, but instead use hostnames to connect..
Just add the servers hostname to your /etc/host
192.168.5.10 servername.domainname
is there already (would I be able to ping/ssh without?
And retry then..
Worked with me on both 8.1 and 8.2pro
P_S
regards larsf -- ----------------------------------------------- Lars Forseth Nord-Trøndelag Fylkeskommune http://folk.uio.no/forseth ------------------------------------------------
On Saturday 05 July 2003 21:13, Richard Bos wrote:
What filesystem are you mounting (reiser, xfs, ext2, etc)? If it is reiserfs, it may help to change it to another type. See earlier discussions in this list.
It's Reiser
Op zaterdag 5 juli 2003 20:56, schreef Lars Forseth:
Hi!
i'm working on my little home network; and have set up the server with suse 8.1; and can connect (i.e ping and ssh) to/from it to the workstation.
Now I'm trying to set up NFS to share two partitions in the network when my workstation and laptop is booted with linux. However I'm having no luck in connecting the shared partitions.
The error messages I get; when trying to connect the shares localy on the worksation through yast is: "Error. Unable to mount the NFS entries from /etc/fstab"
If I try to do it manualy; i.e "mount -t nfs 192.162.5.10:/local /media/lokal" I get this: "mount: RPC: Feil i portmapper - RPC: Kan ikke sende" translated to english this should be something like this "mount: RPC: Error in portmapper - RPC: can not send"
On the server (192.168.5.10 hostname yoda.local) etc/exports and the nfs daemon are running.
rpcinfo -p gives this: 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100005 1 udp 32772 mountd 100005 1 tcp 32772 mountd 100005 2 udp 32772 mountd 100005 2 tcp 32772 mountd 100005 3 udp 32772 mountd 100005 3 tcp 32772 mountd 100024 1 udp 32773 status 100024 1 tcp 32773 status
----------------------------------------------- Lars Forseth Nord-Trøndelag Fylkeskommune http://folk.uio.no/forseth ------------------------------------------------
Lars Forseth wrote:
If I try to start the nfs daemon in /etc/init.d/nfs I get this:
linux:/home/larsf # /etc/init.d/nfs restart Remove Net File System (NFS) done Importing Net File System (NFS)mount: RPC: Programmet ikke registrert mount: RPC: Programmet ikke registrert failed linux:/home/larsf # /etc/init.d/nfs start Importing Net File System (NFS)mount: RPC: Programmet ikke registrert mount: RPC: Programmet ikke registrert failed
I.e It says: The program (nfs) is not registered!
Hmm, here is no nfs-daemon. In /etc/init.d/nfs is only a mount-command to mount all nfs-types in fstab. If you want to start the nfs-server, you have to look for /etc/init.d/nfsserver (8.2, in 8.0 i hope it is the same). -- Andreas
Hi! From my first post:
If I try to do it manualy; i.e "mount -t nfs 192.162.5.10:/local /media/lokal" I get this: "mount: RPC: Feil i portmapper - RPC: Kan ikke sende" translated to english this should be something like this "mount: RPC: Error in portmapper - RPC: can not send"
On the server (192.168.5.10 hostname yoda.local) etc/exports and the nfs daemon are running.
On Saturday 05 July 2003 21:34, Andreas Winkelmann wrote:
Lars Forseth wrote:
If I try to start the nfs daemon in /etc/init.d/nfs I get this:
linux:/home/larsf # /etc/init.d/nfs restart Remove Net File System (NFS) done Importing Net File System (NFS)mount: RPC: Programmet ikke registrert mount: RPC: Programmet ikke registrert
failed linux:/home/larsf # /etc/init.d/nfs start Importing Net File System (NFS)mount: RPC: Programmet ikke registrert mount: RPC: Programmet ikke registrert
failed
I.e It says: The program (nfs) is not registered!
Hmm, here is no nfs-daemon. In /etc/init.d/nfs is only a mount-command to mount all nfs-types in fstab. If you want to start the nfs-server, you have to look for /etc/init.d/nfsserver (8.2, in 8.0 i hope it is the same).
OK! My error; I'm a newbie when it comes to networks and linux. But nfsd daemon is running on the server! Its the clients which has problems seeing/mounting the shared partitions! (Or so it seems to me). I have just been experiomenting with my laptop also; same problem there! I have checked hosts: and the server is correctly listetd there: se below! regards larsf hosts file on my workstation/laptop Same in the server. # # hosts This file describes a number of hostname-to-address # mappings for the TCP/IP subsystem. It is mostly # used at boot time, when no name servers are running. # On small systems, this file can be used instead of a # "named" name server. # Syntax: # # IP-Address Full-Qualified-Hostname Short-Hostname # 127.0.0.1 localhost # special IPv6 addresses ::1 localhost ipv6-localhost ipv6-loopback fe00::0 ipv6-localnet ff00::0 ipv6-mcastprefix ff02::1 ipv6-allnodes ff02::2 ipv6-allrouters ff02::3 ipv6-allhosts 192.168.5.11 linux.local linux 192.168.5.10 yoda.local yoda 192.168.5.12 tux.local tux
On Sat, 2003-07-05 at 20:56, Lars Forseth wrote:
linux:/home/larsf # /etc/init.d/nfs start Importing Net File System (NFS)mount: RPC: Programmet ikke registrert mount: RPC: Programmet ikke registrert
Is portmapper running on the client as well as the server? Are either machine protected by firewalls? Are you letting through the relevant ports (111, high udp ports)?
On Sunday 06 July 2003 02:03, Anders Johansson wrote:
On Sat, 2003-07-05 at 20:56, Lars Forseth wrote:
linux:/home/larsf # /etc/init.d/nfs start Importing Net File System (NFS)mount: RPC: Programmet ikke registrert mount: RPC: Programmet ikke registrert
Is portmapper running on the client as well as the server? Are either machine protected by firewalls? Are you letting through the relevant ports (111, high udp ports)?
Yes! Portmapper is running. And yes both had firewall2 running (external interface ppp0, internal eth0), now turned off! No luck still. But I tried something else; I startet this morning NFS server on my workstation and exportet my home dir. Then started NFS client on the server; and lo and behold it worked! I could mount my home dir on the workstation to the server (mounted as /media/home). Go figure, but I still suspect something is wrong with the portmapper on my workstation. Se next post for more on this! Regards larsf -- ----------------------------------------------- Lars Forseth Nord-Trøndelag Fylkeskommune http://folk.uio.no/forseth ------------------------------------------------
Op zondag 6 juli 2003 09:58, schreef Lars Forseth:
But I tried something else; I startet this morning NFS server on my workstation and exportet my home dir. Then started NFS client on the server; and lo and behold it worked! I could mount my home dir on the workstation to the server (mounted as /media/home). Go figure, but I still suspect something is wrong with the portmapper on my workstation.
And what is the filesystem type of /home? -- Richard Bos Without a home the journey is endless
On Sunday 06 July 2003 11:39, Richard Bos wrote:
Op zondag 6 juli 2003 09:58, schreef Lars Forseth:
But I tried something else; I startet this morning NFS server on my workstation and exportet my home dir. Then started NFS client on the server; and lo and behold it worked! I could mount my home dir on the workstation to the server (mounted as /media/home). Go figure, but I still suspect something is wrong with the portmapper on my workstation.
And what is the filesystem type of /home?
Reiser! So far I do'nt think the filesystem has anything to do with my problems! In the boot.msg file (in my workstation) I get the same error message as when I manualy try to mount the nfs shares (those on my server that is), i.e RPC: The program is not registered. This happens because I have the shares in the workstations /etc/fstab file. I tried to reinstall the portmapper rpm and ran SuSEconfig afterwards; still no luck. I can not moun nfs shares on my server to my workstation, but can mount my workstations home dir on my server as a NFS share. rpcinfo -p now reports the same output on both server and workstation. Also on my laptop its not possible to do the mounting of the nfs shares on the server! But I ca'nt for the life of me se what the difference between the two machines is! (I.e the setup of the nfs server and shares). Firewall and no firewall seems not to matter much! regards larsf
-- Richard Bos Without a home the journey is endless
-- ----------------------------------------------- Lars Forseth Nord-Trøndelag Fylkeskommune http://folk.uio.no/forseth ------------------------------------------------
participants (6)
-
Anders Johansson
-
Andreas Winkelmann
-
Dylan
-
Lars Forseth
-
P_S
-
Richard Bos