From: Dumas Patrice Subject: tunneling of nfs and nfs locks Date: Tue, 19 Mar 2002 16:12:29 +0100 Sender: nfs-admin@lists.sourceforge.net Message-ID: <20020319161229.B10434@zeus.centre-cired.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Received: from boukha.centre-cired.fr ([193.51.120.234]) by usw-sf-list1.sourceforge.net with esmtp (Exim 3.31-VA-mm2 #1 (Debian)) id 16nLK9-0004sK-00 for ; Tue, 19 Mar 2002 07:14:53 -0800 Received: from zeus.centre-cired.fr ([193.51.120.192]) by boukha.centre-cired.fr (8.9.3+Sun/jtpda-5.3.3) with ESMTP id QAA21353 for ; Tue, 19 Mar 2002 16:14:19 GMT Received: (from dumas@localhost) by zeus.centre-cired.fr (8.11.6/8.11.6) id g2JFCTi10490 for nfs@lists.sourceforge.net; Tue, 19 Mar 2002 16:12:29 +0100 To: nfs@lists.sourceforge.net Errors-To: nfs-admin@lists.sourceforge.net List-Help: List-Post: List-Subscribe: , List-Id: Discussion of NFS under Linux development, interoperability, and testing. List-Unsubscribe: , List-Archive: Hi, I have a redhat 7.2 with nfs-utils 0.3.1, linux 2.4.7-10, mount-2.11g, portmap 4.0. The lockd is in the kernel. I use sec_rpc-1.13 to forward the rpc connections (http://www.math.ualberta.ca/imaging/snfs/) I have a file /file_on_remote on the "remote" host, I want to mount it on the "local" host. I use the following /etc/fstab entry: local:/file_on_remote /file_on_remote nfs rw,mountprog=201000,nfsprog=200003 I have a running rpc_psrv serveur which forwards the rpc requests with rpc numbers 201000 and 200003 to host "remote" ; service 201000 is forwarded as 100005 on "remote" and 200003 as 100003. after mount /file_on_remote I can access the files which are on remote in /file_on_remote, but the locking mechanism doesn't work (I test it with mutt, as it reports that he couldn't make a lock, maybe there could be cleaner ways to test for it...). Is it normal that the locking fails in this situation (nfs forwarded) ? What could I do to have it work ? This may be unrelated, or not : there is a strange thing which happen when I do, on "local": umount /file_on_remote It responds: Cannot MOUNTPROG RPC: RPC: Programm not registered The filesystem seems to be cleanly unmounted, however. more info /etc/exports on "remote" (ip of remote is 193.51.xxx.yyy) /file_on_remote 193.51.xxx.yyy(rw) rpcinfo on "remote" gives [root@remote nfs-utils-0.3.1]# rpcinfo -p program no_version protocole no_port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100011 1 udp 986 rquotad 100011 2 udp 986 rquotad 100011 1 tcp 989 rquotad 100011 2 tcp 989 rquotad 100005 1 udp 32769 mountd 100005 1 tcp 32769 mountd 100005 2 udp 32769 mountd 100005 2 tcp 32769 mountd 100005 3 udp 32769 mountd 100005 3 tcp 32769 mountd 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100021 1 udp 32770 nlockmgr 100021 3 udp 32770 nlockmgr 100021 4 udp 32770 nlockmgr 100024 1 udp 35165 status 100024 1 tcp 46514 status and on "local" [root@local nfs-utils-0.3.1]# rpcinfo -p program no_version protocole no_port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100024 1 udp 1024 status 100024 1 tcp 1024 status 201000 3 udp 1036 200003 3 udp 1036 100021 1 udp 1037 nlockmgr 100021 3 udp 1037 nlockmgr 100021 4 udp 1037 nlockmgr Pat _______________________________________________ NFS maillist - NFS@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nfs