![]() |
connecting openbsd to linux nfs mount - "unsupported protocol" error
hi everyone,
Im trying to connect an openbsd 3.7 machine to a nfs share point that is residing on a Gentoo linux box. I have all the services running (portmap, nfs, mountd). When i issue this command on my open bsd box: Code:
mount -t nfs 192.168.0.9:/server/sharedir /local/mountpointCode:
/local/mountpoint: Protocol not supportedhere is my exports entry on the server: Code:
/server/sharedir 192.168.0.0/255.255.255.0(rw,insecure) |
I hope /local/mountpoint exists.
It put logs in /var/log/message what error you got it...? Make sure nothing is blocking the nfs request via firewall or access tables Also try to use mount_nfs... |
ok in /var/log/messages it doesnt mention anything about the error message. Maybe i need to fix a client config option to get nfs to output some logs. Ive used mount_nfs and i still get the same problem. The local mount point does exist. I dont have a firewall setup or access lists on the machines.
Im sure its something simple, because NFS isnt really that complicated to setup to begin with. Thanks for you help so far, any other suggestions? |
SOLVED THE PROBLEM!!!!!!!
ok i figure out the problem...so here it is...
Ok from my scenerio i had a gut feeling that there was some protocol mismatch between the linux box and the openbsd box. So one theory was that the openbsd box may have been using a different version of NFS protocol then what the server was using. So i started digging into the /etc/init.d scripts on the Gentoo server and noticed the NFS script. Upon viewing it I saw that config options were being passed from another text file located in /etc/config.d/nfs So after viewing /etc/config.d/nfs script i saw a config option for rpc.mountd. This sounded like something that would be used to tweak NFS mounting. So i found the manpage which explains what RPC.MOUNT does and how to configure it. Here is the description of RC.MOUNT from the manpage: Code:
The rpc.mountd program implements the NFS mount protocol. When receiving a MOUNT request from an NFS client,So to get OPENBSD to connect to my Gentoo NFS server I set the NFS version to 2 on the server because apparently my Gentoo kernel wasnt compiled with NFSvr3. After doing this everything worked fine. Alternatively i could recompile the Gentoo kernel to accept a client using NFSvr3 however at this present time I dont have the time nor the reason to do that. Maybe in a future system upgrade ill consider that. here is my final /etc/config.d/nfs configuration: Code:
# Options to pass to rpc.mountd |
That is just good...
Just one thing when i said /var/log/message it was for NFS server and not the nfs client try to see that may be you had got hint eariler... |
| All times are GMT -5. The time now is 10:11 AM. |