LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-24-2004, 03:29 PM   #1
frank2
LQ Newbie
 
Registered: Dec 2003
Posts: 14

Rep: Reputation: 0
NFS Mount problem


When i am trying to mount a NFS Volume from my workstation i get this error message:
"mount: RPC: Timed out".
But the funny thing is that if i restart the nfs-kernel-deamon on the server i get able to mount one nfs-share, but only one.
So if i restart the nfs-kernel-deamon another time i can mount yet another volume!
How can i mount all the shares at one time without restarting the daemon?. Any suggestions on how i can fix this?
 
Old 02-24-2004, 04:42 PM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
How many are you starting at boot time? The old rule of thumb is to start nfsd daemons at boot time or when you start up NFS on the server side.
 
Old 02-24-2004, 06:23 PM   #3
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
do you have portmaper and nfslock turned on?
 
Old 02-25-2004, 10:59 AM   #4
frank2
LQ Newbie
 
Registered: Dec 2003
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by trickykid
How many are you starting at boot time? The old rule of thumb is to start nfsd daemons at boot time or when you start up NFS on the server side.
I am mounting 3 shares.
The NFSD is started at mount .
 
Old 02-25-2004, 11:00 AM   #5
frank2
LQ Newbie
 
Registered: Dec 2003
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by frieza
do you have portmaper and nfslock turned on?
Yeah, here is a output of rpcinfo -p:

frank@picasso:~$ rpcinfo -p
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
100021 1 udp 32790 nlockmgr
100021 3 udp 32790 nlockmgr
100021 4 udp 32790 nlockmgr
100005 1 udp 32791 mountd
100005 1 tcp 32771 mountd
100005 2 udp 32791 mountd
100005 2 tcp 32771 mountd
100005 3 udp 32791 mountd
100005 3 tcp 32771 mountd
 
Old 02-25-2004, 06:26 PM   #6
linuxxed
Member
 
Registered: Feb 2004
Posts: 273

Rep: Reputation: 30
Re: NFS Mount problem

Quote:
Originally posted by frank2
When i am trying to mount a NFS Volume from my workstation i get this error message:
"mount: RPC: Timed out".
But the funny thing is that if i restart the nfs-kernel-deamon on the server i get able to mount one nfs-share, but only one.
So if i restart the nfs-kernel-deamon another time i can mount yet another volume!
How can i mount all the shares at one time without restarting the daemon?. Any suggestions on how i can fix this?
hi mate

what does your /etc/exports look like? I hope it has got all the IP addresses/mount etc correctly.

Second thing to look for is tcpwrappers. hosts.allow should have entries for all the daemons if you're denying it from hosts.deny.

Third is IP tables should be off on both server and client (if it is not set to accept all). This is because portmap randomly assigns the port. If you need firewall then there are ways to make daemons bind to one port. See how to to firewall and nfs.

Fourth is nfslock and portmap should be running on the client too.


i doubt 2,3,4 are your problem since you can mount one share or have i read it wrong?
 
Old 02-26-2004, 11:05 AM   #7
frank2
LQ Newbie
 
Registered: Dec 2003
Posts: 14

Original Poster
Rep: Reputation: 0
Re: Re: NFS Mount problem

Quote:
Originally posted by linuxxed
hi mate

what does your /etc/exports look like? I hope it has got all the IP addresses/mount etc correctly.

Second thing to look for is tcpwrappers. hosts.allow should have entries for all the daemons if you're denying it from hosts.deny.

Third is IP tables should be off on both server and client (if it is not set to accept all). This is because portmap randomly assigns the port. If you need firewall then there are ways to make daemons bind to one port. See how to to firewall and nfs.

Fourth is nfslock and portmap should be running on the client too.


i doubt 2,3,4 are your problem since you can mount one share or have i read it wrong?
Hi.

Here you got the exportfs file:

frank@picasso:~$ cat /etc/exports
/home/frank/nfs-volume/ 192.168.0.2(rw)
/mnt/hdg/ 192.168.0.2(rw)
/mnt/hde/ 192.168.0.2(rw)
-------------------------------------------------------------
hosts.allow:

portmap: 192.168.0.2
lockd: 192.168.0.2
rquotad: 192.168.0.2
mountd: 192.168.0.2
statd: 192.168.0.2
----------------------------------------
hosts.deny:

portmap: ALL
lockd: ALL
mountd: ALL
rquotad: ALL
statd: ALL
-----------------------

I dont have any firewall up on the server or client.
nfslock and portmap is up on the client and server.
---------------------------------------------------------------------------
Here you got an output from "showmount -a":

frank@picasso:~$ /sbin/showmount -a
All mount points on picasso:
192.168.0.2:/home/frank/nfs-volume
192.168.0.2:/home/frank/samba-share
192.168.0.2:/mnt/hde
192.168.0.2:/mnt/hdg
.......................................................................................
As you can se the line "192.168.0.2:/home/frank/samba-share" is there wich is not in the exports file.
 
Old 03-14-2004, 10:56 AM   #8
frank2
LQ Newbie
 
Registered: Dec 2003
Posts: 14

Original Poster
Rep: Reputation: 0
still dont work, sometimes it works perfectly but most times it just done work...
please help!
 
Old 03-29-2004, 09:48 AM   #9
frank2
LQ Newbie
 
Registered: Dec 2003
Posts: 14

Original Poster
Rep: Reputation: 0
When i am connected to the internet i can mount shares all the time, but when i disconnect i get "timed out", i can ping the machine i am trying to mount from and ssh, but not mount shares when it its disconnectet....
 
Old 03-29-2004, 04:41 PM   #10
ugge
Senior Member
 
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Any hints in the /var/log/messages?
 
Old 05-07-2004, 05:01 AM   #11
liutom
LQ Newbie
 
Registered: Oct 2003
Posts: 24

Rep: Reputation: 15
Hello !

I want to restart this thread because i hve the same problems...

I use NFS to serve 3 directorys...

on the client side I mount these Directorys in etc/fstab (in order to get them started during boot time)

but i also get an time out on the second and third NFS-mounts...
only my first directory is mounted after booting....

when i try to mount manually (as root i do: mount /mnt/data2) it work´s!!!
but it´l need a lot of time (min 10sec...)

so i can imagine that there is a timeout during boot....

but why happens this?
and what can we do???

should i write a script which will be automatically started after booting to boot my nfs directorys ???


I have no clue........ :-(


Thanks for Ideas!!!

Liu
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
NFS Mount Problem sroyc Red Hat 2 08-12-2005 12:29 AM
NFS Mount problem doug stand Linux - Networking 1 07-26-2005 11:01 AM
Nfs Mount Problem ]Trix[ Linux - Networking 2 12-19-2004 07:57 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:21 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration