From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,80e4e2ece91e0423 X-Google-Attributes: gidfee84,public From: Ross Maloney Subject: Re: Problem accessing PC files using NFS Date: 1997/07/13 Message-ID: <33C95352.554C@cs.curtin.edu.au>#1/1 X-Deja-AN: 256569159 References: <33C0343B.210@cs.curtin.edu.au> Organization: Curtin University of Technology Reply-To: x409@cs.curtin.edu.au Newsgroups: comp.unix.osf.osf1 Eric Werme wrote: > > Ross Maloney writes: > > >I am having difficulty in using the NFS supplied with dUnix v 3.2c to > >access the files on a PC. > > >NFS was setup on the Alpha using the standard nfssetup script. The PC > >(with network name Pluto) is running SOSS, the public domain NFS > >server. When SOSS is put into verbose mode, the message: > > >PMAPPROC_GETPORT --> prog = 100003, ver = 3 : --> NO PORT REGISTERED > > >is displayed on the PC in response to the command: > > >mount -t nfs -o intr,rw,rsize=1024,wsize=1024 Pluto:/c /mnt > > Include option vers=2 (or nfsv2) and things should work (or get much further). > It appears that SOSS has no idea of what NFS V3 is all about. > > >This appears to add support to the suspicion of there being a problem > >in the RPC mechanism of dUnix. I also notice that there is no mention > >of port 111 in the /etc/services file of dUnix. > > Port 111 is portmap, a "well known" address. I don't know what it's not > in /etc/services - never noticed that before! > > >Hence my questions: What is really happening and how is the problem > >overcome? > > The mount command is checking to see if the PC supports NFS V3. The PC > should send back a message saying that isn't available and what versions > are registered, then mount will fall back to V2. I'm not certain why it > isn't, but I'm not certain what happens if mount doesn't get a reply to > its query. What should happen is something like: > > clnt 56% tcpdump -Nts300 -p host svr & > [2] 25337 > tcpdump: listening on tu0 > Using kernel BPF filter > > clnt 57% rpcinfo -u svr nfs > program 100003 version 2 ready and waiting > program 100003 version 3 ready and waiting > > clnt 58% > > clnt.3ed93e62 > svr.pmap-v2: 56 call getport prog "nfs" V0 prot UDP port 0 > svr.3ed93e62 > clnt.pmap-v2: 28 reply getport 2049 > > clnt.3fd93e62 > svr.nfs-v0: 40 call null > svr.3fd93e62 > clnt.nfs-v0: 32 reply RPC_PROGVERSMISMATCH error, low 2 high 3 > > clnt.40d93e62 > svr.pmap-v2: 56 call getport prog "nfs" V2 prot UDP port 0 > svr.40d93e62 > clnt.pmap-v2: 28 reply getport 2049 > > clnt.41d93e62 > svr.nfs-v2: 40 call null > svr.41d93e62 > clnt.nfs-v2: 24 reply null > > clnt.42d93e62 > svr.pmap-v2: 56 call getport prog "nfs" V3 prot UDP port 0 > svr.42d93e62 > clnt.pmap-v2: 28 reply getport 2049 > > clnt.43d93e62 > svr.nfs-v3: 40 call null > svr.43d93e62 > clnt.nfs-v3: 24 reply null > > "pmap" is portmap at port 111. > > The Dunix FAQ has notes on configuring a system to use tcpdump, something > I'd strongly recommend to keep an eye on SOSS. > -- > <> Eric (Ric) Werme <> This space under reconstruction <> > <> <> <> A solution has been found and it lies in the mount command used. Eric Werme was partially correct in that the nfsv2 parameter is required. The other parameter required is port=2049. The use of nfsv2 or port=2049 alone is not enough. Thus the command: mount -t nfs -o rw,nfsv2,port=2049 Pluto:/c /mnt is that required. From the man page for mount, the wsize and rsize buffer parameters are filled in by the kernel if not specified and the values used are possibly 512 for each. When I accessed TIFF graphics files across the NFS link, then it was necessary to explicitly specify values of 1024 for the wsize and rsize buffers. This mount command and the above comments also apply to the shareware Tropic NSF server that I obtained from ftp://archie.au/pc/coast/win95/winsock/trn3230b.zip which performs the same file servicing function under Windows NT as that done by SOSS under MS-DOS, both executing on a PC. Ross =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+= Ross Maloney = voice: +61 (08) 9364 1927 + Graduate Student = Department of Computer Science + Curtin University of Technology = email: x409@cs.curtin.edu.au Perth, WA. + AUSTRALIA = =+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=