LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > *BSD
User Name
Password
*BSD This forum is for the discussion of all BSD variants.
FreeBSD, OpenBSD, NetBSD, etc.

Notices


Reply
  Search this Thread
Old 04-29-2018, 09:59 AM   #1
philippe972
LQ Newbie
 
Registered: Aug 2014
Location: France
Distribution: Fedora Ubuntu Various distros in Virtualbox
Posts: 28

Rep: Reputation: Disabled
Problem with OpenBSD as nfs client


Hi,

First, im new with OpenBSD 6.3 that i run in Virtualbox.

I try to setup a NFS share :
server is Fedora workstation 28
- exports file looks like this
Code:
/home/filip/Documents 192.168.1.1238 (rw)
/home/filip/Public 192.168.1.128 (rw)
Of course NFS is active on the server

client is Openbsd 6.3 and i have this message when i try to mount a share :

Code:
filip@openbsd:~$ sudo mount -t nfs 192.168.1.85:/home/filip/Documents /mnt/nfs_Documents/
NFS Portmap: RPC: Program not registered
I will be happy to find a solution after long time on google without succes.
Thanks for help
Philippe.
 
Old 04-29-2018, 11:16 AM   #2
jggimi
Member
 
Registered: Jan 2016
Distribution: None. Just OpenBSD.
Posts: 158

Rep: Reputation: 53
First, assuming this invalid address is a copy/paste typo both here and in your post on misc@, and is not actually in your exports(5) file:
Quote:
Originally Posted by philippe972 View Post
Code:
/home/filip/Documents 192.168.1.1238 (rw)
Please follow this advice from misc@, which requested you use rpcinfo(8) to discover what could be seen by the client on the server at 192.168.1.85.

$ rpcinfo -p 192.168.1.85

When NFS/RPC connections are not blocked, you should obtain output that looks something like this, which I have obtained from a nearby NFS server here.
Code:
   program vers proto   port
    100000    2   tcp    111  portmapper
    100000    2   udp    111  portmapper
    100005    1   udp    632  mountd
    100005    3   udp    632  mountd
    100005    1   tcp    752  mountd
    100005    3   tcp    752  mountd
    100003    2   udp   2049  nfs
    100003    3   udp   2049  nfs
    100003    2   tcp   2049  nfs
    100003    3   tcp   2049  nfs
 
Old 04-29-2018, 12:01 PM   #3
philippe972
LQ Newbie
 
Registered: Aug 2014
Location: France
Distribution: Fedora Ubuntu Various distros in Virtualbox
Posts: 28

Original Poster
Rep: Reputation: Disabled
Hi jggimi

My export file on server was correct
Code:
/home/filip/Documents 192.168.1.128 (rw)
probably a mistake by typing my post

And this is the output of rpcinfo :
Code:
filip@openbsd:~$ rpcinfo -p 192.168.1.85
   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  51927  status
    100024    1   tcp  46983  status
    100005    1   udp  20048  mountd
    100005    1   tcp  20048  mountd
    100005    2   udp  20048  mountd
    100005    2   tcp  20048  mountd
    100005    3   udp  20048  mountd
    100005    3   tcp  20048  mountd
    100003    3   tcp   2049  nfs
    100003    4   tcp   2049  nfs
    100227    3   tcp   2049
    100021    1   udp  57813  nlockmgr
    100021    3   udp  57813  nlockmgr
    100021    4   udp  57813  nlockmgr
    100021    1   tcp  40445  nlockmgr
    100021    3   tcp  40445  nlockmgr
    100021    4   tcp  40445  nlockmgr
 
Old 04-29-2018, 12:39 PM   #4
jggimi
Member
 
Registered: Jan 2016
Distribution: None. Just OpenBSD.
Posts: 158

Rep: Reputation: 53
Thank you. This indicates that RPC/Portmap is running, and the services are available.

I will guess that your mount is failing because you are mounting the filesystem as root, using sudo. There is no map for root defined in your posted exports file, and the Fedora NFS server maps root to user "nobody" by default, according to:

https://fedoraproject.org/wiki/Admin...uide_Draft/NFS

But this is a wild guess.

Last edited by jggimi; 04-29-2018 at 12:46 PM. Reason: clarity
 
Old 04-29-2018, 01:21 PM   #5
philippe972
LQ Newbie
 
Registered: Aug 2014
Location: France
Distribution: Fedora Ubuntu Various distros in Virtualbox
Posts: 28

Original Poster
Rep: Reputation: Disabled
Acordind to the link below, i modify my exports file to

Code:
/home/filip/Documents 192.168.1.128 (rw,no_root_squash)
and restart the server but this don't solve the problem

Code:
filip@openbsd:~$ mount 192.168.1.85:/home/filip/Documents /mnt/nfs_Documents/
NFS Portmap: RPC: Program not registered
Code:
filip@openbsd:~$ sudo mount 192.168.1.85:/home/filip/Documents /mnt/nfs_Documents/
NFS Portmap: RPC: Program not registered
 
Old 04-29-2018, 01:22 PM   #6
jggimi
Member
 
Registered: Jan 2016
Distribution: None. Just OpenBSD.
Posts: 158

Rep: Reputation: 53
Some local testing indicates that mounting as root without user mapping should be successful. Sorry for misleading you above.

You might continue by replying to your thread on the misc@ mailing list.
 
Old 04-29-2018, 01:39 PM   #7
philippe972
LQ Newbie
 
Registered: Aug 2014
Location: France
Distribution: Fedora Ubuntu Various distros in Virtualbox
Posts: 28

Original Poster
Rep: Reputation: Disabled
Thanks for your help jggimi.

I will continue on misc@
 
Old 04-30-2018, 08:47 PM   #8
philippe972
LQ Newbie
 
Registered: Aug 2014
Location: France
Distribution: Fedora Ubuntu Various distros in Virtualbox
Posts: 28

Original Poster
Rep: Reputation: Disabled
[SOLVED]

With help of misc@ i found the solution :
just add the TCP option to fstab file on the client
 
Old 04-30-2018, 09:05 PM   #9
jggimi
Member
 
Registered: Jan 2016
Distribution: None. Just OpenBSD.
Posts: 158

Rep: Reputation: 53
I'm glad you found a solution.
 
  


Reply

Tags
nfs, openbsd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] NFS mount fails (times out): NFS server is in DMZ, NFS client is in intranet Hiroshi Linux - Networking 2 05-24-2010 10:22 AM
nfs client problem pug2694328 Linux - Server 6 01-23-2009 11:05 AM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
nfs client on knoppix 3.9 - problem mounting nfs drive Rod Butcher Linux - Networking 1 09-21-2005 04:18 AM
OpenBSD : DHCP Client Problem fnoyan *BSD 1 09-29-2004 02:58 PM

LinuxQuestions.org > Forums > Other *NIX Forums > *BSD

All times are GMT -5. The time now is 11:44 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration