LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (https://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   About NFS automount (https://www.linuxquestions.org/questions/solaris-opensolaris-20/about-nfs-automount-458703/)

mahabooba 06-27-2006 05:36 AM

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

mahabooba 06-27-2006 06:57 AM

Quote:

Originally Posted by mahabooba
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

:Pengy: :study:

jlliagre 06-27-2006 07:27 AM

Why are you posting the same question three times ?

Theorist 06-27-2006 08:01 AM

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

w3bd3vil 06-27-2006 12:28 PM

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.

jlliagre 06-27-2006 02:04 PM

You can simply create links to automounted directories like this:

Code:

ln -s /net/nfs-server/path-to-compiler-dir /home/x1/compilers

mahabooba 06-28-2006 12:08 AM

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.

jlliagre 06-28-2006 01:12 AM

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.

mahabooba 06-28-2006 05:29 AM

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

mahabooba 06-30-2006 12:31 AM

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.