|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
OpenBSD 5.5 and Solaris 10 NFS
Hello all, I am having a rough time trying to get a fresh OpenBSD 5.5 amd64 install to mount an NFS share from a Solaris 10 Sparc server.
The showmount command works and then I can mount the share successfully but as soon as I cd into the directory and try to ls it hangs and eventually gives an NFS timeout. I can't kill any of the processes forcing a reboot. While shutting down the kernel panics and drops me to the debugger. I can provide the output if anyone wishes. I don't have any problems mounting the shares under other operating systems like NetBSD, FreeBSD, and Windows 7. Any ideas what is wrong? |
|
||||
Hello, and welcome!
OpenBSD's built-in NFS client only supports the NFS Version 2 and 3 protocols. According to Oracle, the server and clients can be restricted to using Version 4 by configuration settings in the Solaris configuration file /etc/default/nfs. You may want to ensure you permit Version 3, which is the default protocol used by mount_nfs(8). But Oko is right; a LOT more information about the network environment would be helpful. It's hard for us to help you when we're over here, way far away at the other end of the Internet. We only have what you tell us to try to help you. Some of the things we might want to know:
Luckily, everything of interest about the OpenBSD components and the hardware you are using for OpenBSD can pretty much be answered by providing a dmesg(8). Last edited by jggimi; 12th July 2014 at 01:45 AM. Reason: clarity, clarity, clarity. One typo, too. |
|
|||
Thanks for the quick replies. Oko's suggestion of disabling pf worked Although I'm still not clear on how pf allowed the mount to happen but not function.
|
|
||||
I'm glad to learn you have a root cause.
NFS uses ports indirectly. NFS is one of a number of RPC services that can use a variety of port numbers. To find out the port numbers, the client contacts the portmap daemon listening on the server (at port 111 for both UDP and TCP) to learn what destination port numbers to use for further communication. With the -p option of the rpcinfo(8) command, you can have your OpenBSD client list all of the port numbers offered by the portmap daemon running on your Solaris server. When I probe one of my NFS servers, I see: Code:
$ rpcinfo -p netbook program vers proto port 100000 2 tcp 111 portmapper 100000 2 udp 111 portmapper 100005 1 udp 901 mountd 100005 3 udp 901 mountd 100005 1 tcp 747 mountd 100005 3 tcp 747 mountd 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100026 1 udp 714 bootparam $ |
|
||||
Quote:
Code:
[root@athena ~]# rpcinfo -p gaia program vers proto port service 100000 4 tcp 111 portmapper 100000 3 tcp 111 portmapper 100000 2 tcp 111 portmapper 100000 4 udp 111 portmapper 100000 3 udp 111 portmapper 100000 2 udp 111 portmapper 100000 4 7 111 portmapper 100000 3 7 111 portmapper 100000 2 7 111 portmapper 100005 1 udp 4002 mountd 100005 3 udp 4002 mountd 100005 1 tcp 4002 mountd 100005 3 tcp 4002 mountd 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100024 1 udp 4000 status 100024 1 tcp 4000 status 100021 0 udp 4001 nlockmgr 100021 0 tcp 4001 nlockmgr 100021 1 udp 4001 nlockmgr 100021 1 tcp 4001 nlockmgr 100021 3 udp 4001 nlockmgr 100021 3 tcp 4001 nlockmgr 100021 4 udp 4001 nlockmgr 100021 4 tcp 4001 nlockmgr Last edited by Oko; 12th July 2014 at 06:49 AM. |
|
||||
I would rather assume astouffer's PF configuration needs revision.
Quote:
I suppose that an admin could script dynamic PF configuration changes with rpcinfo(8) and PF's anchor facility, but I'm not aware of anyone who has bothered. Last edited by jggimi; 12th July 2014 at 03:26 PM. Reason: typos |
|
||||
Unfortunately the age of NFS shows. It has never been designed to work well with the firewalls. In my experience most people don't run firewalls on NFS server/clients and automatic assumption is that server and clients are on the same subnet. I am not one of those people. I run firewall on all NFS both clients and servers and I have even NFS exported throught VPN which is filtered. Forcing NFS to use specific ports is the best thing in my experience but depending on the host OS you can hit many bugs when you try to force such behavior.
|
|
|||
The need for mounting NFS is just temporary to migrate some home directories to the OpenBSD box. For the sake of completeness here is the output from rpcinfo
Code:
# rpcinfo -p sunfire program vers proto port 100000 4 tcp 111 portmapper 100000 3 tcp 111 portmapper 100000 2 tcp 111 portmapper 100000 4 udp 111 portmapper 100000 3 udp 111 portmapper 100000 2 udp 111 portmapper 100024 1 udp 32778 status 100024 1 tcp 32772 status 100133 1 udp 32778 100133 1 tcp 32772 1073741824 1 tcp 32773 100021 1 udp 4045 nlockmgr 100021 2 udp 4045 nlockmgr 100021 3 udp 4045 nlockmgr 100021 4 udp 4045 nlockmgr 100021 1 tcp 4045 nlockmgr 100021 2 tcp 4045 nlockmgr 100021 3 tcp 4045 nlockmgr 100021 4 tcp 4045 nlockmgr 100001 2 udp 32780 rstatd 100001 3 udp 32780 rstatd 100001 4 udp 32780 rstatd 100068 2 udp 32781 100068 3 udp 32781 100068 4 udp 32781 100068 5 udp 32781 100083 1 tcp 32778 100002 2 tcp 32779 rusersd 100002 3 tcp 32779 rusersd 100002 2 udp 32782 rusersd 100002 3 udp 32782 rusersd 100011 1 udp 32783 rquotad 300598 1 udp 32787 300598 1 tcp 32782 805306368 1 udp 32787 805306368 1 tcp 32782 100249 1 udp 32788 100249 1 tcp 32783 100005 1 udp 61866 mountd 100005 1 tcp 33836 mountd 100005 2 udp 61866 mountd 100005 2 tcp 33836 mountd 100005 3 udp 61866 mountd 100005 3 tcp 33836 mountd 100003 2 udp 2049 nfs 100003 3 udp 2049 nfs 100227 2 udp 2049 100227 3 udp 2049 100003 2 tcp 2049 nfs 100003 3 tcp 2049 nfs 100227 2 tcp 2049 100227 3 tcp 2049 |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Oracle Solaris goes to 11 | J65nko | News | 0 | 10th November 2011 11:49 PM |
All awk's on Solaris are broken! | s0xxx | Solaris | 1 | 20th January 2010 10:49 PM |
Solaris by Megadeth was way more fun, Solaris 8 hanging on boot | bleepingnetwork | Solaris | 2 | 18th November 2009 07:39 PM |
Kde on Solaris | whispersGhost | Solaris | 25 | 28th July 2008 07:06 PM |
Fat 32 from Solaris | whispersGhost | Solaris | 17 | 9th June 2008 09:08 PM |