About NFS automount
Please let me know the solution for the following scenario...please...
How we can mount the compilers(directory) to all users using NFS automout and NIS? . The users home directory is: /home/x1 where "x1" is "username" the compilers directory should mount as : /home/x1/compilers as on demand through NFS auto mount. Thanks Mahaboob |
Quote:
|
Why are you posting the same question three times ?
|
Hi mahabooba,
Since you mentioned Solaris in your tags, I suggest you to read : - http://www.linux-consulting.com/Amd_.../autofs-5.html With Regards, Theorist |
not sure about solaris, but give this a try
/home/x1 *(ro,sync) add the above line to your /etc/exports and start nfs and portmap. |
You can simply create links to automounted directories like this:
Code:
ln -s /net/nfs-server/path-to-compiler-dir /home/x1/compilers |
NFS server | NIS server
/etc/auto_master | /etc/dfs/dfstab /home auto_home | share -F nfs -o rw /expot/home/ /net -hosts share -F nfs -o rw /compilers /etc/auto_home | * sun2:/export/home/& | /etc/hosts all hostnames and IP addr's By MR.jlliagre suggestion I tried, but I am unable to see the compilers directory... Thank you for all valuable suggestions. |
I have no idea about what you describe in your last posting, please clarify.
My suggestion certainly works and would be enough at the client side, assuming it is running Solaris. Sharing the compiler directory on the server side can be done by a single line in /etc/dfs/dfstab. |
At NFS server side:-
------------------- /etc/dfs/dfstab share -F nfs -o rw /expot/home/ share -F nfs -o rw /compilers ( for compiler directory sharing) AT NFS client side:- ------------------ /etc/auto_master /home auto_home ( where I am unable to write the proper tag for compilers directory) /etc/auto_home * sun2:/export/home/& /etc/hosts all hostnames and IP addr's By the above configuration home directory of all user form NFS is done perfectly. When I am trying to mount the compiler directory with little bit modification of above one, But I am couldnot get the fruitful solution. Please help me in this scenario sir. My objective is to share the compilers directory to all users with out script( means I wish to work with only NFS automount and their strom mounts). Thanks and Regards, Mahaboob |
By Mr. jlliagre's answer
"ln -s /net/nfs-server/path-to-compiler-dir /home/x1/compilers" I got the solution for my problem. we should make sure about "/net -hosts" tag in /etc/auto_master file. with out this we are unable to seet /net/.... file system. Thanks a lot to all. Regards, Mahaboob |
All times are GMT -5. The time now is 12:04 AM. |