LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 04-07-2008, 12:57 PM   #1
ionic_slim
LQ Newbie
 
Registered: Nov 2007
Posts: 9

Rep: Reputation: 0
NFS double mount question


I mounted a NFS share to a local mount point on my workstation and attempted to share the mount point with the NFS share out(firewall issues). My issue is that when any system mounts my workstation's NFS share it mounts fine but nothing is in the directory. What gives here and is it even possible to perform a double NFS mount?
 
Old 04-08-2008, 05:52 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Are you using NFS version 4? Look at the man exports man page. In particular the mountpath=/<path> option which won't export the path unless it has a mounted filesystem on it. I think that you may be exporting the directory before the file system is mounted on it.
 
Old 04-08-2008, 09:14 AM   #3
ionic_slim
LQ Newbie
 
Registered: Nov 2007
Posts: 9

Original Poster
Rep: Reputation: 0
The exported file system off the workstation has the exported NFS share from another server mounted fine. I'm using NFS3.
 
Old 04-09-2008, 03:13 AM   #4
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Taking a look at the manpage, I see that since I used nfs as the filesystem, I am using nfs v3 mode. The mountpoint= & mp= options in /etc/exports should work for nfs v3 from my reading of my manpage. It sounds like it helps prevent having an export mounted over (on the middle server) because the end client was mounted the directory before the mount on the originating server took place. If that could happen, then it could be a matter of timing whether you see the files on one end client but not another.

You might try a bit of an experiment. Touch a file in the directory you use as the mount point (that is also exported). On a system where this would appear empty, does that test file show up? If it does, the only way that can be the case is if the unmounted directory is being shared.

I'm also curious what the files in /proc/fs/nfsd/ show on a client where this mount is working and where it isn't. A bit beyond my depth here, but I wonder if the FSID differs (assuming it is remotely defined).

---

Other than that, I don't know enough of the details of how nfs & the rpc's work on such an indirect share. Could the firewall cause a problem. I would think that if that was the case you would get access errors instead of seeing an empty directory. But would the original server (or the firewall in between) operate with rpc calls from the middle server or or the one on the end.

Last edited by jschiwal; 04-09-2008 at 03:17 AM.
 
Old 01-09-2010, 01:18 AM   #5
jerryliu
LQ Newbie
 
Registered: Jan 2010
Posts: 4

Rep: Reputation: 0
I have similar requirements, want to mount a mountpoint at middle server eventual point to another physical server, like: server A(mount)-->server B(mount)-->server C.

Any solution? pls help.
 
Old 01-09-2010, 12:13 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by jerryliu View Post
I have similar requirements, want to mount a mountpoint at middle server eventual point to another physical server, like: server A(mount)-->server B(mount)-->server C.

Any solution? pls help.
There migh be, jerryliu...why don't you look in your other thread, and don't hijack someone elses. This thread is over a year old, and not yours.
 
  


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
how to mount a nfs mount from linux client to AIX nfs server dennyqian AIX 13 04-11-2016 11:30 PM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
Can't mount nfs share from fstab but can mount it manually - help Mountain Linux - Networking 1 03-30-2008 08:34 PM
USB drive mount double mount issue pazzport Ubuntu 3 10-10-2005 08:28 PM
can't access ntfs mount through nfs mount bezoomny Linux - Networking 9 04-14-2004 10:25 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 11:40 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
Open Source Consulting | Domain Registration