Tuesday, July 24, 2012

Solaris: mounting NFS filesystems at startup

By default Solaris doesn't mount NFS partitions when it starts.

Fix it with:

svcadm enable network/nfs/client
 
Alternatively only mount the NFS partition when it's needed.  Add this to
/etc/auto_master:
 
/mnt            auto_cpan       -ro,-nobrowse
 
Then create the file /etc/auto_cpan:
 
 +auto_cpan
CPAN -ro,actimeo=0 gateway:/var/www/mirrors/CPAN
 
 

No comments:

Post a Comment