LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 06-27-2006, 05:36 AM   #1
mahabooba
Member
 
Registered: Dec 2005
Posts: 43

Rep: Reputation: 15
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

Last edited by mahabooba; 06-27-2006 at 06:56 AM.
 
Old 06-27-2006, 06:57 AM   #2
mahabooba
Member
 
Registered: Dec 2005
Posts: 43

Original Poster
Rep: Reputation: 15
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
 
Old 06-27-2006, 07:27 AM   #3
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
Why are you posting the same question three times ?
 
Old 06-27-2006, 08:01 AM   #4
Theorist
Member
 
Registered: Jun 2006
Distribution: FC5, FC3, RHEL 3, Debian 3.1, Debian 3.0
Posts: 56

Rep: Reputation: 15
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
 
Old 06-27-2006, 12:28 PM   #5
w3bd3vil
Senior Member
 
Registered: Jun 2006
Location: Hyderabad, India
Distribution: Fedora
Posts: 1,191

Rep: Reputation: 49
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.
 
Old 06-27-2006, 02:04 PM   #6
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
You can simply create links to automounted directories like this:

Code:
ln -s /net/nfs-server/path-to-compiler-dir /home/x1/compilers
 
Old 06-28-2006, 12:08 AM   #7
mahabooba
Member
 
Registered: Dec 2005
Posts: 43

Original Poster
Rep: Reputation: 15
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.
 
Old 06-28-2006, 01:12 AM   #8
jlliagre
Moderator
 
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.4, Oracle Linux, Mint, Debian/WSL
Posts: 9,789

Rep: Reputation: 492Reputation: 492Reputation: 492Reputation: 492Reputation: 492
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.
 
Old 06-28-2006, 05:29 AM   #9
mahabooba
Member
 
Registered: Dec 2005
Posts: 43

Original Poster
Rep: Reputation: 15
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
 
Old 06-30-2006, 12:31 AM   #10
mahabooba
Member
 
Registered: Dec 2005
Posts: 43

Original Poster
Rep: Reputation: 15
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
 
  


Reply

Tags
auto, mount, nfs, solaris



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
nfs automount issue after reboot chickie Linux - Enterprise 2 01-10-2006 03:37 PM
not able to automount files in nfs at startup time kool124 Linux - Networking 4 10-03-2005 11:04 AM
Automount NFS from LDAP info not working klnasveschuk Linux - Networking 2 07-26-2005 01:04 PM
automount nfs and smb al_erola Linux - Networking 2 04-27-2003 11:33 AM
NFS - Automount / Security Issues gene_gEnie Linux - Networking 0 02-08-2002 03:05 PM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 12:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration