Questions Tagged With nfshttp://linuxexchange.org/tags/nfs/?type=rssquestions tagged <span class="tag">nfs</span>enTue, 30 Oct 2012 14:08:05 -0400NFS Stale File Handle Problemhttp://linuxexchange.org/questions/2958/nfs-stale-file-handle-problem<p>Hi guys, I have the files for a website on a central machine and mount this directory on several other small servers around using nfs. problem is, I have started to get some strange errors recently, the whole system gets frozen and I get this error:</p> <p>Stale File Handle</p> <p>I havent been able to get enough information for debugging from the server itself, but I am hoping there would be a way to resolve this issue, is there anything in particular that I have to bear in mind when mounting file for a website to a central server?</p> <p>I there a better way to handle this situation? keeping the website files on one server and have all others share into same files?</p> <p>thanks in advance</p>baddestguyTue, 30 Oct 2012 14:08:05 -0400http://linuxexchange.org/questions/2958/nfs-stale-file-handle-problemnfsubuntuNFS over SSH. RPC Errorhttp://linuxexchange.org/questions/1287/nfs-over-ssh-rpc-error<p>Hi,</p> <p>I have seen many articles saying that to get rid of this error I should be using portmap, that's fine but how do I use it over ssh...</p> <p>I am trying to mount NFS over SSH. I have the server configured to export the share and I can mount it correctly over the network, however company policy is to ONLY allow ssh access.</p> <p>On the server side; ]# cat /etc/exports</p> <p>/home/Shared localhost(rw,no_root_squash,async)</p> <p>]# rpcinfo -p</p> <p>program vers proto port</p> <pre><code>100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100024 1 udp 49449 status 100024 1 tcp 36697 status 100021 1 udp 34934 nlockmgr 100021 3 udp 34934 nlockmgr 100021 4 udp 34934 nlockmgr 100021 1 tcp 37221 nlockmgr 100021 3 tcp 37221 nlockmgr 100021 4 tcp 37221 nlockmgr 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100003 4 udp 2049 nfs 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100003 4 tcp 2049 nfs 100005 1 udp 2051 mountd 100005 1 tcp 2051 mountd 100005 2 udp 2051 mountd 100005 2 tcp 2051 mountd 100005 3 udp 2051 mountd 100005 3 tcp 2051 mountd </code></pre> <p>The on the client side I use 2 ssh tunnels;</p> <p>]# ssh -f -N -L 52051:localhost:2051 my.server</p> <p>]# ssh -f -N -L 52049:localhost:2049 my.server</p> <p>I can telnet to these ports and receive a response. So now I try to mount;</p> <p>]# mount -t nfs -o nolock,port=52049,mountport=52051 localhost:/home/Shared /mnt/Shared</p> <p>mount.nfs: mount to NFS server 'localhost:/home/Shared' failed: RPC Error: Program not registered</p> <p>So it <em>seems</em> as if the problem is caused by mount talking to the local portmap, however I thought the mount options were supposed to stop that. Obviously I cannot forward portmapper from the server to the client's port 111 as that would disrupt the client's portmapper.</p> <p>I am using SUSE 11.2 for the client and Ubuntu 10.04 as the server.</p>Dave 1Tue, 24 Aug 2010 17:50:10 -0400http://linuxexchange.org/questions/1287/nfs-over-ssh-rpc-errorrpcnfssshlinuxwhat is RPC error program not registered error while mounting NFS on boot can't mount at boothttp://linuxexchange.org/questions/304/what-is-rpc-error-program-not-registered-error-while-mounting-nfs-on-boot-cant-mount-at-boot<p>what is RPC error program not registered error when mounting NFS on boot can't mount at boot using FSTAB</p> <p>I added fstab entry as</p> <p>host.foo.com:/nfsshare /pub nfs defaults 0 0</p> <p>at the boot time it report RPC failed program not registered. what i do?</p>SanilWed, 05 May 2010 15:01:55 -0400http://linuxexchange.org/questions/304/what-is-rpc-error-program-not-registered-error-while-mounting-nfs-on-boot-cant-mount-at-bootnfsrpcerror