1828667 Members
1785 Online
109984 Solutions
New Discussion

exportfs

 
SOLVED
Go to solution
Ryan Ma
Frequent Advisor

exportfs

Last time I reboot my server and I found that client cannot mount the directory from my server through NFS.

After I submit the command "exportfs -a", the problem is solved.

How can I set so that the directory will keep exprot after reboot?
4 REPLIES 4
Hartmut Lang
Trusted Contributor
Solution

Re: exportfs

The filesystems are automatically exported on reboot. This is done through the nfs-startup scripts:
/sbin/init.d/nfs.server.

See /etc/rc.log to check if the nfs.server script is called and is errorfree.

You should see lines like:

"Start NFS server subsystem"
...
"Reading in /etc/exports"

in /etc/rc.log.

Hardy
Hooi Siew Hoong_1
Frequent Advisor

Re: exportfs

Hi,

If you set up the server as a NFS server, the file /etc/exports will be automatically be exported after a reboot.

Make sure your /etc/rc.config.d/nfsconf is set up properly.
Example
NFS_CLIENT=1
NFS_SERVER=1
NUM_NFSD=4
NUM_NFSIOD=4

The file whereby the command "exportfs -a" will run after a system reboot is at /sbin/init.d/nfs.server

Michael Tully
Honored Contributor

Re: exportfs

Hi,

Have a look here where it gives a step by step guide:

http://docs.hp.com/cgi-bin/onlinedocs.py?mpn=B1031-90048&service=hpux&path=../B1031-90048/00/00/1&title=Installing%20and%20Administering%20NFS%20Services

*Configuring and Administering the NFS Automounter

HTH
-Michael
Anyone for a Mutiny ?
Ryan Ma
Frequent Advisor

Re: exportfs

Thank you so much.
After reading /etc/rc.log, I know the root problem...

The directory in /etc/exports is not exist because it is mounted by MC/SG.

Thanks for your help.