Re: Auto mounting the nfs file systems. (71 Views)
Reply
Frequent Advisor
Kuntal Gupta
Posts: 50
Registered: ‎08-04-2010
Message 1 of 2 (76 Views)

Auto mounting the nfs file systems.

Dear HPUX lovers,

 

I have Zero knowledge in nfs.

 

After rebooting a NFS server I have to  execute the command

# exportfs -i /<fs1>

# exportfs -i /<fs2>

...so on

 to make the fs available to nfs client.

 

I want that after rebooting this should be done automatically.

 

Pls suggest how to do this?

 

I can't test it right away.

 

The suggestions will be kept until next opertunity comes.

 

Regards...

 

Kuntal

 



Please use plain text.
Esteemed Contributor
Modris Bremze
Posts: 337
Registered: ‎09-11-2009
Message 2 of 2 (71 Views)

Re: Auto mounting the nfs file systems.

/etc/exports file should be processed at boot time automatically. If the exported filesystems are mounted some time later, then some kind of script/automation might be required to exportfs them after they are mounted. And exportfs -a exports all filesystems in /etc/exports, so you don't have to exporfs them one by one.

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation