LinuxQuestions.org
Review your favorite Linux distribution.
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 08-22-2015, 05:49 PM   #1
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Rep: Reputation: 38
Problems with nfs4 mount using mhddfs and/or fsid


Hi,

I'm trying to share out 2 directories via NFS but am having some issues. I can share both directories individually, but not at the same time. Here's my initial /etc/exports:
Code:
/MyPool/Movies          192.168.0.21(ro,sync,no_subtree_check,fsid=2,all_squash,anonuid=2502,anongid=3107)
/var/lib/plexmediaserver/Transcode     192.168.0.21(rw,sync,no_subtree_check,all_squash,anonuid=120,anongid=129)
/MyPool is the mount point for my mhddfs pool.

With this, I can mount /var/lib/plexmediaserver/Transcode without any issues:
Code:
root@odroid-server:~# mount -t nfs4 -o proto=tcp,port=2049 192.168.0.254:/var/lib/plexmediaserver/Transcode /var/lib/plexmediaserver/Transcode
root@odroid-server:~#
But trying to mount /MyPool/Movies always fails:
Code:
root@odroid-server:~# mount -t nfs4 -o proto=tcp,port=2049 192.168.0.254:/MyPool/Movies /MyPool/Movies
mount.nfs4: mounting 192.168.0.254:/MyPool/Movies failed, reason given by server: No such file or directory
root@odroid-server:~#
If I change the fsid setting for /MyPool/Movies to 0:
Code:
/MyPool/Movies          192.168.0.21(ro,sync,no_subtree_check,fsid=0,all_squash,anonuid=2502,anongid=3107)
/var/lib/plexmediaserver/Transcode      192.168.0.21(rw,sync,no_subtree_check,all_squash,anonuid=120,anongid=129)
Then I can mount that directory correctly:
Code:
root@odroid-server:~# mount -t nfs4 -o proto=tcp,port=2049 192.168.0.254:/ /MyPool/Movies
root@odroid-server:~#
But, that setting somehow screws up the export of /var/lib/plexmediaserver/Transcode:
Code:
root@odroid-server:~# mount -t nfs4 -o proto=tcp,port=2049 192.168.0.254:/var/lib/plexmediaserver/Transcode /var/lib/plexmediaserver/Transcode
mount.nfs4: mounting 192.168.0.254:/var/lib/plexmediaserver/Transcode failed, reason given by server: No such file or directory
root@odroid-server:~#
Even though it's exported exactly the same.

From the first example above, if I drop the Movies sud-directory and just share the mhddfs mount point, /MyPool, that works, but I don't want to share out the rest of the pool sub-directories.
Code:
/MyPool         192.168.0.21(ro,sync,no_subtree_check,fsid=2,all_squash,anonuid=2502,anongid=3107)
/var/lib/plexmediaserver/Transcode      192.168.0.21(rw,sync,no_subtree_check,all_squash,anonuid=120,anongid=129)
Code:
root@odroid-server:~# mount -t nfs4 -o proto=tcp,port=2049 192.168.0.254:/MyPool /MyPool
root@odroid-server:~# mount -t nfs4 -o proto=tcp,port=2049 192.168.0.254:/var/lib/plexmediaserver/Transcode /var/lib/plexmediaserver/Transcode
root@odroid-server:~#
Is this a bug in the NFS4 implementation or something I'm missing.

Cheers.
 
Old 08-25-2015, 02:41 PM   #2
dijetlo
Senior Member
 
Registered: Jan 2009
Location: RHELtopia....
Distribution: Solaris 11.2/Slackware/RHEL/
Posts: 1,491
Blog Entries: 2

Rep: Reputation: Disabled
Is "MyMovies" listed in your export file or are you only exporting "MyPool"?
 
Old 08-25-2015, 06:23 PM   #3
MQMan
Member
 
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 581

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by dijetlo View Post
Is "MyMovies" listed in your export file or are you only exporting "MyPool"?
The sub-directory is Movies, and I pasted the exact export file above, "/MyPool/Movies".

After further research, I know why I can't mount /var/lib/plexmediaserver/Transcode once I set "fsid=0" on /MyPool/Movies. So now it's just down to why I can't mount /MyPool/Movies with my initial set-up.

Cheers.
 
Old 06-09-2016, 12:08 AM   #4
kephir4eg
LQ Newbie
 
Registered: Sep 2010
Posts: 2

Rep: Reputation: 0
deleted

Last edited by kephir4eg; 06-09-2016 at 12:10 AM.
 
  


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
NFS4 mount takes long time zkab Debian 3 04-03-2014 12:38 PM
[SOLVED] Fedora 16 unable to NFS4 mount on client geoffleach Fedora 15 01-05-2012 03:57 PM
nfs4 - mount.nfs4: access denied by server while mounting edwin11 Linux - Networking 1 12-07-2010 10:06 AM
NFS4 mount is read-only? larold Linux - Enterprise 1 07-13-2010 12:45 PM
[SOLVED] can't mount via NFS4 rmahn Linux - Server 4 09-10-2009 08:35 AM

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

All times are GMT -5. The time now is 09:44 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