LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   NFS Mount problem (https://www.linuxquestions.org/questions/linux-networking-3/nfs-mount-problem-150057/)

frank2 02-24-2004 03:29 PM

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?

trickykid 02-24-2004 04:42 PM

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.

frieza 02-24-2004 06:23 PM

do you have portmaper and nfslock turned on?

frank2 02-25-2004 10:59 AM

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 .

frank2 02-25-2004 11:00 AM

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

linuxxed 02-25-2004 06:26 PM

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?

frank2 02-26-2004 11:05 AM

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.

frank2 03-14-2004 10:56 AM

still dont work, sometimes it works perfectly but most times it just done work...
please help!

frank2 03-29-2004 09:48 AM

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....

ugge 03-29-2004 04:41 PM

Any hints in the /var/log/messages?

liutom 05-07-2004 05:01 AM

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


All times are GMT -5. The time now is 05:29 AM.