LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 06-12-2017, 03:21 PM   #1
Vilius
Member
 
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193

Rep: Reputation: 16
NFS mp option ?


Hello,

SLES 11 Sp4.

I want nfs not to export empty mount points automatically, I want it to do exportfs after data filesystems are mounted (mounting data filesystems on my box is done manually).
So I found this option mp:
Code:
# man exports
       mountpoint=path

       mp     This option makes it possible to only export a directory if it has successfully been mounted.  If no path is given (e.g.  mountpoint  or  mp)  then
              the  export  point  must  also be a mount point.  If it isn't then the export point is not exported.  This allows you to be sure that the directory
              underneath a mountpoint will never be exported by accident if, for example, the filesystem failed to mount due to a disc error.
I tried to use it:
Quote:
# cat /etc/exports
/data1 host1(mp=/data1,rw,no_root_squash,sync,no_subtree_check)
After reboot /data1 is not mounted so I expect nfs not to export it, but nfs exports it anyway:
Code:
# exportfs
/data1
                host1.domain.com
"export -ua" works fine - unexports everything.
I tried using nfsv3 nfsv4 - same result.

Any ideas where is the problem ?

Thanks,
Vilius M.
 
Old 06-15-2017, 02:45 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,844

Rep: Reputation: 161Reputation: 161
If no 'no_subtree_check' option, does it work fine?
 
Old 06-16-2017, 06:29 AM   #3
Vilius
Member
 
Registered: Jan 2006
Location: Lithuania
Distribution: Arch, Debian
Posts: 193

Original Poster
Rep: Reputation: 16
No, same result.
 
Old 06-19-2017, 02:42 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,844

Rep: Reputation: 161Reputation: 161
What's output of 'showmount -e'?
 
  


Reply


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] What's the point of NFS export option rw? Eadwyre Linux - Server 7 10-05-2016 12:13 AM
Help on Negating the Consequences of NFS's async Option mutput7 Linux - Server 2 06-03-2013 06:47 PM
Which is best share option nfs ,samba ,ftp jayakumar01 Linux - Server 4 05-28-2012 06:55 PM
nfs option root_squash maheshp86 Linux - Hardware 1 07-16-2010 05:30 AM
NFS: "remount" showing up as NFS option kenneho Linux - Newbie 0 11-18-2008 05:25 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

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