[nfs-discuss] Debugging NFS client?
Thomas Haynes wrote: > snoop -o /root/os2jg.snoop -x0,2000 clientname servername > > There shouldn't be any other traffic flowing, so lets capture it all. > > The clientname and servername will limit things to just those two machines. > > And the -x will capture most of the pay load. > > You can then do > > snoop -i /root/os2jg.snoop > > to look at output. > > And you can also use -V and -v for verbosity. This helped me discover that the server box's firewall was dropping connection requests to !ssh ports. Doh. OpenSolaris is now mounting my NFSv4 server's filesystem! Now to start fixing my own bugs... > Wireshark also understands snoop. Hey, that's good to know. > By the way, even though NFSv4 does not require the mount protocol, the > implementation of mount on OpenSolaris will actually send mountd > requests to get the name space. Noted. Thankfully, with the firewall issue solved, it appears my lack of rpcbind/mount usage did not faze OpenSolaris in the least. Hopefully life will be as good with other OS's... Thanks, Jeff
[nfs-discuss] Debugging NFS client?
On Feb 20, 2009, at 7:06 PM, Jeff Garzik wrote: > > I have written a NFSv4 server[1], and am trying to get OpenSolaris > talking to it. My server passes citi's newpynfs tests and talks > successfully to Linux. However, mounting from OpenSolaris 2008.11 > simply blocks and never returns: > >mount -F nfs -o vers=4 bd:/ /bd try this: mount -F nfs -o port=2049,vers=4 bd:/ /bd Robert.
[nfs-discuss] Debugging NFS client?
Hi. I poked around for "OpenSolaris / Mailing Lists / NFS", and this is what I found :) If this is an inappropriate place for questions, please let me know. I have written a NFSv4 server[1], and am trying to get OpenSolaris talking to it. My server passes citi's newpynfs tests and talks successfully to Linux. However, mounting from OpenSolaris 2008.11 simply blocks and never returns: mount -F nfs -o vers=4 bd:/ /bd (SIGINT/Ctrl-C return me to shell, as expected) I tried all manner of URLs and the 'public' option as well, with the same results (mount blocks and never returns). Tracing my NFSv4 server, it never even receives a TCP connection from the client. Nor does snoop "rpc nfs" on the OpenSolaris client show anything. This OpenSolaris/x86 system successfully mounts a Linux NFSv4 server, so I know that networking and NFSv4 _do_ work on the OpenSolaris client. What are the best methods to debug the mount process? If it matters, my NFSv4 server does not register itself with rpcbind / mount / portmap / etc. services. It just listens on port 2049, and processes connections. Thanks, Jeff [1] http://linux.yyz.us/projects/nfsv4.html
[nfs-discuss] Debugging NFS client?
Jeff Garzik wrote: > Hi. I poked around for "OpenSolaris / Mailing Lists / NFS", and this > is what I found :) If this is an inappropriate place for questions, > please let me know. No, it is a good place... > > I have written a NFSv4 server[1], and am trying to get OpenSolaris > talking to it. My server passes citi's newpynfs tests and talks > successfully to Linux. However, mounting from OpenSolaris 2008.11 > simply blocks and never returns: > > mount -F nfs -o vers=4 bd:/ /bd > > (SIGINT/Ctrl-C return me to shell, as expected) > > I tried all manner of URLs and the 'public' option as well, with the > same results (mount blocks and never returns). > > Tracing my NFSv4 server, it never even receives a TCP connection from > the client. Nor does snoop "rpc nfs" on the OpenSolaris client show > anything. snoop -o /root/os2jg.snoop -x0,2000 clientname servername There shouldn't be any other traffic flowing, so lets capture it all. The clientname and servername will limit things to just those two machines. And the -x will capture most of the pay load. You can then do snoop -i /root/os2jg.snoop to look at output. And you can also use -V and -v for verbosity. Wireshark also understands snoop. > > This OpenSolaris/x86 system successfully mounts a Linux NFSv4 server, > so I know that networking and NFSv4 _do_ work on the OpenSolaris client. > > What are the best methods to debug the mount process? > > If it matters, my NFSv4 server does not register itself with rpcbind / > mount / portmap / etc. services. It just listens on port 2049, and > processes connections. > By the way, even though NFSv4 does not require the mount protocol, the implementation of mount on OpenSolaris will actually send mountd requests to get the name space. You could do a showmount -e against the server and see if that hangs as well. A more complete snoop trace could help. Let us know what you see and we'll try to help some more. > Thanks, > > Jeff > > > > [1] http://linux.yyz.us/projects/nfsv4.html > ___ > nfs-discuss mailing list > nfs-discuss at opensolaris.org
