This content has been marked as final. Show 6 replies
<pre>ypmatch <username> auto_home</pre>
and see what server:mountpoint is being shared. Then:
<pre>showmount -e <server></pre>
and see how the NFS share is being presented to the network.
If you have the /net mountpoint enabled you could try to 'cd' to:
from the ypmatch above and see if that works.
ypmatch does not seem to recognize the auto.home map. Not sure why, but ypcat does find the auto.home map, and it matches what the homedir server is exporting for the file-system in question via showmount:
ypcat auto.home |grep -i userid
showmount -e starbuck|grep -i userid
/mnt is not enabled in the environment, it is an empty directory on all systems.
This is an odd problem. I am thinking the auto.home map in the server might have some type of corrupt entry for the mount point /home/div/userid, that is causing it to be ignored in the auto.home map by the NIS domain.
If I could find docs on how to modify the compiled version of the map to get rid of any entry for the problem mount point, I would try that.
Your semantics are confusing. You original post referenced auto_home but your latest post referenced auto.home. Which is it? You need to be careful that you match with your NIS environment. If ypmatch isn't finding your map then I would figure out why. That is the mechanism that autofs will use to lookup the information.
Sorry about that. I typed auto_home originally because that is what the src file for automounts is saved as in /var/yp/src. However ypcat does not recognize the map auto_home. It does recognize the map auto.home. I have modified the original message so it matches the second post to avoid confusion. Reviewing the Makefile in /var/yp, it has this note:
"# It is somewhat confusing to note that Solaris 2.x uses /etc/auto_master
# instead of the 4.x /etc/auto.master file name because of NIS+ treating a
# "." in a special way."
o.k. I really should pay more attention to the details. ypmatch does work when auto.home is used as the map. The error message output by ypmatch was different when I used the correct map name:
bash# ypmatch userid auto_home
Can't match key userid in map auto_home. Reason: no such map in server's domain.
bash# ypmatch userid auto.home
Can't match key userid in map auto.home. Reason: no such key in map.
If I use a valid key lookup for auto.home it responds back with the same output as the showmount:
bash# ypmatch /home/div/userid auto.home
bash# showmount -e starbuck|grep userid