- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Automounter & NIS
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2002 01:58 AM
07-18-2002 01:58 AM
Automounter & NIS
I am wanting to set up automounter to work with NIS, so that for any new users, all I have to do is add an entry on the NIS master server and not update /etc/fstab on all of my hosts.
I think it's nearly there, but when I stopped and restarted nfs client, it reported:
automount: user1 must start with a '/'
automount: user2 must start with a '/'
etc.
I am trying to use an indirect map and (believe) I have enabled autofs.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2002 02:02 AM
07-18-2002 02:02 AM
Re: Automounter & NIS
user1 host:/home/user1
user2 host:/home/user2
:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2002 02:18 AM
07-18-2002 02:18 AM
Re: Automounter & NIS
/home auto_home [options]
the auto mount proces mount the /home piece to the username piece in the auto_home, so the full path becomes /home/user1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2002 02:59 AM
07-18-2002 02:59 AM
Re: Automounter & NIS
I have never done this and revising at home at the moment but here are a few things to check
On your nis/nfs server
Check
/etc/exports file has
/home/user1 -access=
/home/user2 -access=
in
/etc/rc.config.d/nfsconf
NFS_CLIENT=0
NFS_SERVER=1
NUM_NFSD=4
NUM_NFSIOD=4
PCCNFS+SERVER=0
START_MOUNTD=1
Run
/sbin/init.d/nfs.core start
/sbin/nfs.server start
The nfs.server start script initiates the exportfs command which can be run after making changes manually with
exportfs -a
On your client
Create your mount point
Edit /etc/rc.config.d/nfsconf and set
NFS_CLIENT=1
NFS_SERVER=0
NUM_NFSD=0
NUM_NFSIOD=4
PCNFS_SERVER=0
START_MOUNTD=0
The NFS client executes the mount -aQF nfs command during execution of the nfs.client script. So to start nfs services on the client
/sbin/init.d/nfs.core start
/sbin/init.d/nfs.client.start
If the nis client is already running
mount
The automounter is a client side software so all configuration is done on the client
The docs state that all file systems should be exported by the NFS in the normal ways as used with the NFS client as above
The automount daemon gets its information from the master map file /etc/auto_master which contains a list of other map files and their locations
In your case you need to have in /etc/auto_master
/home /etc/auto_home
Each line starting with a / shows a direct map file. A line starting with an absolute directoy shows and indirect map
In your indirect map the following line mounts a directory /home/user1 from an nfs server
To start automounter on the client
/sbin/nfs.client start
ensure in you /etc/rc.config.d/nfsconf file you have
AUTOMOUNT=1
AUTO_MASTER="/etc/auto_master"
AUTO_OPTIONS="-f $AUTO_MASTER"
If you modify your automounter maps follow these rules
If you change a master map, kill the automount daemon with kill -TERM , do not use -9
If you modif options or the server part in a direct map you don't have to restart the daemon. If you modify a mount point you have to restart the daemon
There is no need to restart the daemon if you modify an indirect map
HTH
Steven
ps. Thanks for supplying the question that prompted me to sit at my desk instead of watching the golf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2002 03:26 AM
07-18-2002 03:26 AM
Re: Automounter & NIS
/etc/auto_master:
/- /etc/auto.direct
/etc/auto.direct:
/home nfs-servername:/home
This is the way we do the job.
It works great if you have one filesystem with all users on the nfs-server. And if you want to export all users to all your nfs-/nis-clients.
Hartmut
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-18-2002 04:05 AM
07-18-2002 04:05 AM
Re: Automounter & NIS
or
use a special map to mount home directories from users in /etc/passwd
in /etc/auto_master
/home -passwd
This will mount the home directories under /home/
HTH
Steve