View previous topic :: View next topic |
Author |
Message |
phooka n00b
Joined: 18 Aug 2003 Posts: 57
|
Posted: Wed Feb 11, 2004 1:23 am Post subject: nfs mounting problems. |
|
|
I have read nearly every thread I could find, searched, and read the NFS how-to to get NFS working, all with no luck so far. I'm at my wits end.
Two machines, same private network. From the client I can do an 'rpcinfo -p server', and I get the list of rpc services indicating NFS is running and accessable by the client.
Quote: |
obsidian root # rpcinfo -p gentoo
program vers proto port
100000 2 tcp 111 portmapper
100000 2 udp 111 portmapper
100024 1 udp 32768 status
100024 1 tcp 32768 status
100003 2 udp 2049 nfs
100003 3 udp 2049 nfs
100003 2 tcp 2049 nfs
100003 3 tcp 2049 nfs
100021 1 udp 32770 nlockmgr
100021 3 udp 32770 nlockmgr
100021 4 udp 32770 nlockmgr
100021 1 tcp 32769 nlockmgr
100021 3 tcp 32769 nlockmgr
100021 4 tcp 32769 nlockmgr
100005 1 udp 1019 mountd
100005 1 tcp 1022 mountd
100005 2 udp 1019 mountd
100005 2 tcp 1022 mountd
100005 3 udp 1019 mountd
100005 3 tcp 1022 mountd
|
I have configured (during the several iterations of trying this) a hosts.allow and hosts.deny on the server:
Quote: |
dale@gentoo dale $ cat /etc/hosts.allow
portmap: 192.168.0.4
lockd: 192.168.0.4
rquotad: 192.168.0.4
mountd: 192.168.0.4
statd: 192.168.0.4
dale@gentoo dale $ cat /etc/hosts.deny
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL
|
portmap is running on client and server (per prior posts suggestions).
my exports file:
Quote: |
dale@gentoo dale $ cat /etc/exports
# /etc/exports: NFS file systems being exported. See exports(5).
/share obsidian(rw,sync,no_root_squash)
|
So the problem.. when I try to mount from the client, the mount hangs. Kill -9 won't fix it. Killing anything short of rebooting won't fix it.
However, on the server I see this in the log file:
Quote: |
Feb 10 19:50:42 [rpc.mountd] authenticated mount request from obsidian:847 for /share (/share)
|
So it appears to get that far. What is causing the mount to hang? And never successfully mount? I am lost.
Thx.
dale |
|
Back to top |
|
|
overdozed Tux's lil' helper
Joined: 05 Feb 2004 Posts: 77 Location: Munich/Germany
|
Posted: Wed Feb 11, 2004 4:04 am Post subject: |
|
|
got the same problem.
I m connecting with my gentoo box to an debian-nfs server.
My flatmates are able to mount without problems.
It s only my box where all applications accessing the mounted files crash unkillable.
iOnly tabcompleting in the mounted directorys smashes the bash :)
sometimes I can browse the files using xmms, but the player also doesnt respond anymore when triing to play them or earlier:
dont know too much bout reiserfs, but I know for sure the server is working,
Also I have a user with same uid as the owner of the nfs files on the server,
portmap running and nfs suppert for nfs the kernel.
I just realized I dont have nfs-utils installed
will give it a trie :) |
|
Back to top |
|
|
overdozed Tux's lil' helper
Joined: 05 Feb 2004 Posts: 77 Location: Munich/Germany
|
Posted: Wed Feb 11, 2004 4:43 am Post subject: |
|
|
no changes with nfs-utils.
I mounted without prolems, I browsed with console everything worked fine.
I tried aplay on one of the mp3
and the console crashed.
dmesg outpu:
Quote: | nfs warning: mount version older than kernel
nfs: server 192.168.1.1 not responding, still trying
nfs: server 192.168.1.1 not responding, still trying
|
my kernel is : linux-2.6.2-rc1-gentoo/
ACCEPT_KEYWORDS="~x86"
and the system class is completely uptodate
I have this problem for some weeks now and many parts of my system change frequently.
Any tips where to lock for this 8O |
|
Back to top |
|
|
phooka n00b
Joined: 18 Aug 2003 Posts: 57
|
Posted: Wed Feb 11, 2004 3:31 pm Post subject: |
|
|
In followup to this.. the client kernel log has this:
Feb 11 10:09:20 [kernel] nfs: server gentoo not responding, still trying |
|
Back to top |
|
|
overdozed Tux's lil' helper
Joined: 05 Feb 2004 Posts: 77 Location: Munich/Germany
|
Posted: Wed Feb 11, 2004 9:48 pm Post subject: |
|
|
I figured out this could have something todo with the order in which nfsd portmapper or nfsmount are started, triing to ind more about this ... |
|
Back to top |
|
|
tommyr1216 n00b
Joined: 13 Feb 2004 Posts: 14
|
Posted: Sat Feb 14, 2004 2:39 am Post subject: |
|
|
I've had this problem as well. Attempting to mount an nfs share would hang the system. After checking dmesg, I found an error saying that "NFSv3 not supported." Turns out I had forgotten to enable this when compiling the kernel. Check in File Systems --> Network File Systems and make sure you have support for Version 3 enabled.
~Tom |
|
Back to top |
|
|
overdozed Tux's lil' helper
Joined: 05 Feb 2004 Posts: 77 Location: Munich/Germany
|
Posted: Sat Feb 14, 2004 2:53 am Post subject: |
|
|
hmm, checked it once again, but thats not the problem here :(, ty |
|
Back to top |
|
|
tommyr1216 n00b
Joined: 13 Feb 2004 Posts: 14
|
Posted: Sat Feb 14, 2004 3:53 am Post subject: |
|
|
I've got it now. I forgot I had to do this as well:
rc-update add portmap default
reboot, or start portmap from /etc/init.d\
Your nfs should mount instantly afterwards. |
|
Back to top |
|
|
overdozed Tux's lil' helper
Joined: 05 Feb 2004 Posts: 77 Location: Munich/Germany
|
Posted: Sat Feb 14, 2004 4:12 am Post subject: |
|
|
hmm, I offcourse addet portmap to the runlevel, doesnt change much, also tried in different starting it after after the boot.
here comes the strange thing. My laptop connected to the nfs server via the same hub, has the same problems.
I just installed it fresh with gentoo-2004-stage.
also connected to this server but not over the hub are another gentoo laptop and a debian computer.
I got no idea what todo bout this and nfs should be soo easy |
|
Back to top |
|
|
tommyr1216 n00b
Joined: 13 Feb 2004 Posts: 14
|
Posted: Sat Feb 14, 2004 4:32 am Post subject: |
|
|
The only other thing I changed when I set up my NFS was to add the insecure option to /etc/exports on the server. This makes the server allow connections on ports above 1024. I'm not sure if this would help or not, but it might be worth a try. My exports file looks like this:
/usr/local/nfsshare client(rw,insecure,sync)
Other than that, I'm out of ideas. Sorry I couldn't be more help. |
|
Back to top |
|
|
overdozed Tux's lil' helper
Joined: 05 Feb 2004 Posts: 77 Location: Munich/Germany
|
Posted: Sat Feb 14, 2004 2:17 pm Post subject: |
|
|
actually the server is prettty strict there
# /etc/exports: the access control list for filesystems which may be exported
# to NFS clients. See exports(5).
/home/media/musik 192.168.1.*(ro)
/tmp/musik 192.168.1.*(ro)
/home/media/video 192.168.1.*(ro)
but its not mine :) |
|
Back to top |
|
|
bikini@funeral n00b
Joined: 01 Jun 2003 Posts: 21 Location: germany
|
Posted: Sun Feb 15, 2004 9:49 pm Post subject: same here |
|
|
I have the same problem.
I can share to my second computer without problems....
play movies from my main computer and what not.
But when i do the same thing with my second computer
(using my main computer as client) i get this:
nfs: server 192.168.10.20 not responding, still trying
nfs: server 192.168.10.20 OK
and sometimes this:
nfs warning: mount version older than kernel
portmap is on, mounting is not a problem. but performance
becomes miserable.
i dont have a clue how to figure this out.. |
|
Back to top |
|
|
Malloq n00b
Joined: 23 Sep 2003 Posts: 34 Location: Norway
|
Posted: Mon Feb 16, 2004 9:17 pm Post subject: clientside portmap |
|
|
Do you have portmap running on the clientside? |
|
Back to top |
|
|
overdozed Tux's lil' helper
Joined: 05 Feb 2004 Posts: 77 Location: Munich/Germany
|
Posted: Tue Feb 17, 2004 6:19 pm Post subject: |
|
|
I have portmap running everywhere.
I finally think its something with the user, or another permission thingy, hmm ...
I decidet to forgett about nfs and am now mounting via sshfs(lufs rox :) |
|
Back to top |
|
|
Thulle n00b
Joined: 11 Nov 2002 Posts: 70
|
Posted: Thu Feb 19, 2004 3:06 pm Post subject: |
|
|
Are you sure you really werent unable to mount? i get that freeze too, but if i wait _exactly_ 5½minutes, the mount is finished & works fine - it seems to be some timeout somewhere.. and its annoying:/ |
|
Back to top |
|
|
overdozed Tux's lil' helper
Joined: 05 Feb 2004 Posts: 77 Location: Munich/Germany
|
Posted: Thu Feb 19, 2004 5:49 pm Post subject: |
|
|
In your case I d say the portmapper isnt started,
sometimes I also wait 5 min untill it loads and then can make my apps crash :) |
|
Back to top |
|
|
Thulle n00b
Joined: 11 Nov 2002 Posts: 70
|
Posted: Sat Feb 21, 2004 8:19 am Post subject: |
|
|
ah, you have to start it on the client too.. works fine now;) |
|
Back to top |
|
|
overdozed Tux's lil' helper
Joined: 05 Feb 2004 Posts: 77 Location: Munich/Germany
|
Posted: Sun Feb 22, 2004 2:11 am Post subject: |
|
|
:( |
|
Back to top |
|
|
Trekkie n00b
Joined: 11 Oct 2003 Posts: 7 Location: Germany, Flensburg
|
Posted: Tue Feb 24, 2004 5:09 pm Post subject: |
|
|
overdozed wrote: | |
hi.... I know how you feel cause I've exactly the same problem......
since i had to update my local server to Kernel 2.6.* the NFS is not working anymore... mounting and directory listings works perfect, but when I try to access any data, the applications hangs.... I've tried several things but nothing worked until now.... _________________ Linux User Group Flensburg e.V.
http://www.lugfl.de |
|
Back to top |
|
|
stefanwa Tux's lil' helper
Joined: 09 Dec 2002 Posts: 140
|
Posted: Tue Feb 24, 2004 10:47 pm Post subject: |
|
|
I do have the same problem as Trekkie. Mounting and main directory listing is fine, but no way to actually access any files or cd into subdirs.
Good to know I'm not the only one though.
Steve |
|
Back to top |
|
|
Trekkie n00b
Joined: 11 Oct 2003 Posts: 7 Location: Germany, Flensburg
|
Posted: Thu Feb 26, 2004 2:23 pm Post subject: |
|
|
well after some testings here on my systems I'm really confused......
cause if I start tcpdump -i eth0 'port !ssh' on by Local Server to watch the traffic, my NFS works.. its really slow and I can see some timeouts but I get some data.....
if I terminate tcpdump again its all the same again !!
_________________ Linux User Group Flensburg e.V.
http://www.lugfl.de |
|
Back to top |
|
|
appetitus Apprentice
Joined: 28 Sep 2003 Posts: 210
|
Posted: Thu Feb 26, 2004 5:16 pm Post subject: |
|
|
Thulle wrote: | Are you sure you really werent unable to mount? i get that freeze too, but if i wait _exactly_ 5½minutes, the mount is finished |
That is the usual time delay for DNS to time out on a failed resolve.
The posters here are probably on some phony domain, have used their hostsnames in the NFS config files, but do not have their DNS setup to be authoritative. _________________ Being a Gentoo user means living in a house inhabited by a family of crazed carpenters. When you wake up, the house is different. Maybe there is a new turret, or some walls have moved, or perhaps someone has removed the floor under your bed. |
|
Back to top |
|
|
appetitus Apprentice
Joined: 28 Sep 2003 Posts: 210
|
Posted: Thu Feb 26, 2004 5:21 pm Post subject: Re: nfs mounting problems. |
|
|
phooka wrote: |
my exports file:
Quote: |
dale@gentoo dale $ cat /etc/exports
# /etc/exports: NFS file systems being exported. See exports(5).
/share obsidian(rw,sync,no_root_squash)
|
|
What is obsidian? Are you sure that NFS knows the correct IP for obsidian?
Check this out for help too.
http://nfs.sourceforge.net/nfs-howto/troubleshooting.html#SYMPTOM3 _________________ Being a Gentoo user means living in a house inhabited by a family of crazed carpenters. When you wake up, the house is different. Maybe there is a new turret, or some walls have moved, or perhaps someone has removed the floor under your bed. |
|
Back to top |
|
|
chocolatei n00b
Joined: 12 May 2004 Posts: 4 Location: uk
|
Posted: Wed May 12, 2004 6:43 pm Post subject: hang up with mount -t nfs |
|
|
I have a very similar problem to some of you.
When I do mount -t nfs server:/file /mountpoint
the particular bash that I type it into hangs. Ctrl-C Ctrl-Z and kill -9 ing the mount do nothing. However, if I kill -9 a process called rpciod then mount will stop being hung and the bash prompt returns. Odd eh?
It works fine after this.
I am using gentoo-gnu-linux_standard sources on both PCs. |
|
Back to top |
|
|
chocolatei n00b
Joined: 12 May 2004 Posts: 4 Location: uk
|
Posted: Wed May 12, 2004 6:48 pm Post subject: |
|
|
All I can say is install and run portmap on both server and client and use 192.168.1.43:/nfshome style rather than myserver:/nfshome because then it works. |
|
Back to top |
|
|
|