1837103 Members
2261 Online
110112 Solutions
New Discussion

NIS and automount

 
SOLVED
Go to solution
Mark Ellzey
Valued Contributor

NIS and automount

See the attachment for a description of the problem. Any replies greatly appreciated.
3 REPLIES 3
Jeff Schussele
Honored Contributor

Re: NIS and automount

Hi Mark,

1) File on the NFS server should be /etc/exports
2) What type map is the auto.master & what does it look like?
3) What auto options do you have in /etc/rc.config.nfsconf for the clients?
4) You might try the -T or -V options in there for tracing or logging.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Jeff Schussele
Honored Contributor

Re: NIS and automount

Sorry,

Should be 3) /etc/rc.config.d/nfsconf
4) -T & -v & specifically do you have the following in the nfsconf file
AUTO_OPTIONS="-f /etc/auto_master"

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Geert Buelens
New Member
Solution

Re: NIS and automount

Hi,

Use /etc/auto_home in stead of /etc/auto.home (important for next point)

Make sure you have added /etc/auto_home as distributed auto.home file in NIS.
(you need to add it to /var/yp/Makefile similar as auto.master for /etc/auto_master)
We added also /etc/auto.direct to support direct automounts

Make sure the standard local filesystem /home is not mounted (we use /export/home for the local one and /home for the automount)
--------
On the NIS server our config is:
/etc/auto_master
/net -hosts -nosuid,soft
/home auto_home -nosuid
/- auto_direct

/etc/auto_home
* fsserver:/export/home/&

/etc/home_direct
/bea fsserver:/export/bea
...

Remember to run make in /var/yp each time you update one of these files
and automount on the clients!
-------
on the NIS client our config is left to the default
/etc/auto_master
/net -hosts -nosuid,soft

important is the /etc/nsswitch.conf:
automount: nis [NOTFOUND=continue UNAVAIL=continue] files

Remember to reboot each time you modify /etc/nsswitch.conf

Hope this helps,

Geert