Solved

Exportfs -a in ubuntu

Posted on 2014-03-11
10
402 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
 

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
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
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 26

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 26

Expert Comment

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This document is written for Red Hat Enterprise Linux AS release 4 and ORACLE 10g.  Earlier releases can be installed using this document as well however there are some additional steps for packages to be installed see Metalink. Disclaimer: I hav…
Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

707 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now