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? |
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.
|
do you have portmaper and nfslock turned on?
|
Quote:
The NFSD is started at mount . |
Quote:
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 |
Re: NFS Mount problem
Quote:
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? |
Re: Re: NFS Mount problem
Quote:
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. |
still dont work, sometimes it works perfectly but most times it just done work...
please help! |
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....
|
Any hints in the /var/log/messages?
|
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. |