Solved

Exportfs -a in ubuntu

Posted on 2014-03-11
10
411 Views
Last Modified: 2014-03-27
I used exportfs -a  command during NFS configuration , but I get the output shown in the screenshot.
I wonder if this command is no longer needed.

Thanks

nfs
0
Comment
Question by:jskfan
  • 3
  • 2
  • 2
  • +2
10 Comments
 
LVL 34

Assisted Solution

by:Seth Simmons
Seth Simmons earned 125 total points
ID: 39922369
it means a required option was not specified so it assumed a default
if you add no_subtree_check in the mount definition in your exports file the message should go away

this should help more with nfs options; scroll half way down the page for the subtree options

http://manpages.ubuntu.com/manpages/lucid/man5/exports.5.html
0
 
LVL 21

Assisted Solution

by:Mazdajai
Mazdajai earned 125 total points
ID: 39922407
This is the default behavior for nfs-utils -

subtree_check forces NFS to ensure mount request against a file residing in the parent directory is also exported. It has not been used widely because it may have negative impact when a file is move or rename. If you are unsure about subtree_check implication then I suggest shutting it off -

/mountA 172.16.27.0/24(rw,sync,no_subtree_check)

Open in new window

0
 
LVL 13

Assisted Solution

by:Sandy
Sandy earned 125 total points
ID: 39923035
Try below

#fuser -km <mountpoint>

this will show what all pid's are blocking the fs to be get released.

#fuser -km <mountpoint>

#umount <mountpoint>

TY/SA
0
U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

 

Author Comment

by:jskfan
ID: 39923304
but the NFS setup worked…

after I restarted the nfs-kernel-server service, then
 I installed the NFS client and mounted the folder, it worked regardless of the output from exports -a command..
0
 

Author Comment

by:jskfan
ID: 39923318
no_subtree_check gave me the output shown in the snapshot:

nfs
0
 
LVL 34

Expert Comment

by:Seth Simmons
ID: 39923420
did you pay attention to what was stated?
i said you put in the mount definition of your exports file; mazdajai gave an example
you don't use on the command line
0
 
LVL 21

Expert Comment

by:Mazdajai
ID: 39923705
Copy and paste the code in my last thread and don't forget to change the mount point.
0
 
LVL 27

Accepted Solution

by:
skullnobrains earned 125 total points
ID: 39932527
i did not find the ubuntu manpage but referring to http://unixhelp.ed.ac.uk/CGI/man-cgi?exportfs

you probably want "exportfs -a -o no_subtree_check "
0
 

Author Closing Comment

by:jskfan
ID: 39958460
I will check it later…Thanks
0
 
LVL 27

Expert Comment

by:skullnobrains
ID: 39958816
you can safely ignore the message anyway
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Google Drive is extremely cheap offsite storage, and it's even possible to get extra storage for free for two years.  You can use the free account 15GB, and if you have an Android device..when you install Google Drive for the first time it will give…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question