Operating System - HP-UX
1829102 Members
2339 Online
109986 Solutions
New Discussion

How to NFS share a filesystem without recycling the NFS daemon

 
swarup kundu
Advisor

How to NFS share a filesystem without recycling the NFS daemon

Hi
can you please let me know any one that how I will NFS share a filesystem without restarting NFS daemon.
5 REPLIES 5
VK2COT
Honored Contributor

Re: How to NFS share a filesystem without recycling the NFS daemon

Hello,

You definitely do not need to restart the
NFS daemons.

a) vi /etc/exports and add new NFS file system
to export;

b) Run:

exportfs -a

One comparative overview on NFS between
various Unices:

http://www.cites.uiuc.edu/wsg/resources/unixguide/nfs.html

Cheers,

VK2COT
VK2COT - Dusan Baljevic
swarup kundu
Advisor

Re: How to NFS share a filesystem without recycling the NFS daemon

Thanks Dusan for clarifying .That means if I edit exports file to unshare a filesystem , I need not to restart the NFS daemon by /sbin/init.d/nfs.server stop/start or in client side nfs.client stop/start.
Heiner E. Lennackers
Respected Contributor

Re: How to NFS share a filesystem without recycling the NFS daemon

To unshare a directory you have to use "exportfs -u /path/of/dir" or "exportfs -au" to unshare all.
Then you can edit the exports file and remove the dir from it.
if this makes any sense to you, you have a BIG problem
A. Clay Stephenson
Acclaimed Contributor

Re: How to NFS share a filesystem without recycling the NFS daemon

Editing the /etc/exports file is not sufficient; you must also execute the exportfs command.

exportfs /mydir

Now if /mydir is already exported and you want to change some of the export options, edit the exports file and then exportfs -u /mydir (to unexport it) and exportfs /mydir/
If it ain't broke, I can fix that.
whiteknight
Honored Contributor

Re: How to NFS share a filesystem without recycling the NFS daemon


hi,
Please also refer to this NFS guide as well

Install & configure NFS
http://docs.hp.com/en/5992-0714/ch02.html

WK
please assign points
Problem never ends, you must know how to fix it