LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-02-2015, 02:19 PM   #1
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Rep: Reputation: 46
NFSv4 share issues


First I want to thank in the strongest of terms the people that help others on this site.

My issue is that I am trying to set up nfs shares from my nas4free box to be accessible, via manual mount when needed, by Debian Stretch clients, a mac-book client, and possibly some android devices. With eventual goal of automating the backup process. The problem is that even though the share are configured and the connecting attempt is made the nas4free claims that there is "No such file or directory"

From the nas4free(bsd) exports file as setup by the web-portal.
Code:
V4: /mnt/crasher/kingbee -network 192.168.7.0 -mask 255.255.255.192
When trying to mount the nfs4 share from the Debian Stretch client with
Code:
:~$ sudo mount -t nfs4  nasbee:/mnt/crasher/kingbee /media/kingbee
mount.nfs4: mounting nasbee:/mnt/crasher/kingbee failed, reason given by server: No such file or directory
:~$
Yet the share is there and is writable via rsync and ssh by the user from the Debian client.

What am I missing?
 
Old 09-02-2015, 02:44 PM   #2
hortageno
Member
 
Registered: Aug 2015
Distribution: Ubuntu 22.04 LTS
Posts: 240

Rep: Reputation: 67
Quote:
Originally Posted by rbees View Post
First I want to thank in the strongest of terms the people that help others on this site.

My issue is that I am trying to set up nfs shares from my nas4free box to be accessible, via manual mount when needed, by Debian Stretch clients, a mac-book client, and possibly some android devices. With eventual goal of automating the backup process. The problem is that even though the share are configured and the connecting attempt is made the nas4free claims that there is "No such file or directory"

From the nas4free(bsd) exports file as setup by the web-portal.
Code:
V4: /mnt/crasher/kingbee -network 192.168.7.0 -mask 255.255.255.192
When trying to mount the nfs4 share from the Debian Stretch client with
Code:
:~$ sudo mount -t nfs4  nasbee:/mnt/crasher/kingbee /media/kingbee
mount.nfs4: mounting nasbee:/mnt/crasher/kingbee failed, reason given by server: No such file or directory
:~$
Yet the share is there and is writable via rsync and ssh by the user from the Debian client.

What am I missing?
What's the IP of your PC?
 
Old 09-02-2015, 03:58 PM   #3
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Original Poster
Rep: Reputation: 46
the ip is in the network sub-net that is specified in the n4f exports
 
Old 09-02-2015, 04:04 PM   #4
hortageno
Member
 
Registered: Aug 2015
Distribution: Ubuntu 22.04 LTS
Posts: 240

Rep: Reputation: 67
Quote:
Originally Posted by rbees View Post
the ip is in the network sub-net that is specified in the n4f exports
That's not the answer to my question. There might might be a typo somewhere, for instance in the subnet mask.
 
Old 09-02-2015, 04:12 PM   #5
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Original Poster
Rep: Reputation: 46
Nope, its the same as dhcpd.conf on the dhcp server for the whole sub-net

The exports file in the n4f is generated by the web-portal so as long as the data is entered correctly it should be ok.
 
Old 09-03-2015, 06:55 AM   #6
sgrlscz
Member
 
Registered: Aug 2008
Posts: 123

Rep: Reputation: 84
I don't do a lot with BSD, but I think to your exports file needs to be changed to:

Code:
/mnt/crasher/kingbee -network 192.168.7.0 -mask 255.255.255.192
V4: / -network 192.168.7.0 -mask 255.255.255.192
The V4 line sets the root of the nfsv4 tree, and there can only be one nfsv4 root. So, you can have multiple V4 lines (to set security settings, etc. for different systems/networks), but they all must have the same root.
 
Old 09-03-2015, 07:32 AM   #7
rbees
Member
 
Registered: Mar 2004
Location: northern michigan usa
Distribution: Debian Squeeze, Whezzy, Jessie
Posts: 921

Original Poster
Rep: Reputation: 46
Thanks sgrlscz,

I played with the settings in the web-portal some more and got to work by getting rid of all the v4 stuff.

When I have time to really look into it maybe I can figure out why it was not working.
 
  


Reply



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
Mounting a Linux NFSv4 Share with Windows 2008 R2 Kerberos Server gmjs Linux - Enterprise 0 03-08-2012 04:05 PM
Does NFSv4 serve only files which are at least readable? (was: NFSv4 and SUID mount) Reuti Linux - Server 1 08-05-2011 04:13 PM
samba share issues sakthi.s Linux - Server 1 01-22-2010 06:08 AM
SMB Share Issues Soulful93 Linux - Networking 7 09-06-2005 06:28 PM
NFS share issues takisd Linux - Networking 0 03-17-2004 07:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:52 PM.

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
Open Source Consulting | Domain Registration