NIS and NFS problem

From: Andreas Höschler (ahoesch@smartsoft.de)
Date: Thu Jan 18 2007 - 15:33:05 EST


Dear managers,

This is a repost of a problem description that I thought was solved,
but it is not.

> in my boot script on a Solaris 10 06/06 machine I do
>
> #!/bin/sh
> case "$1" in
> start)
> echo "Mounting home dir"
> /usr/sbin/mount -F nfs
> merkur:/home /home
> /usr/lib/netsvc/yp/ypstart
> ;;
>
> stop)
> echo "Unmounting home dir"
> umount /home
> /usr/lib/netsvc/yp/ypstop
> ;;
> *)
> echo "Usage: $0 (start|stop)" >&2
> exit 1
> ;;
> esac
> exit 0
>
> The mount works when executed alone, but after executing ypstart the
> mount is gone!? Just exchanging the two lines is not solution either
> since ypstart returns before its actions are performed. Why is ypstart
> removing my NFS mount. I have
>
> pico /etc/auto_master
>
> #/home auto_home -nobrowse
>
> commented out the /home line in auto_master.

I did

        svcadm disable autofs

but this did not do the trick. I also deleted auto.master and auto.home
from the yp Makefile on the NIS server, entered make and rebooted the
client but no avail. /home is still empty. The mount works but it is
crushed down again by ypstart. Changingthe order has no effect since
execution of ypstart seems to be postponed to some tim ein the future
(after mounting home).

Any idea?

Thanks a lot!

Regards,

   Andreas
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:41:29 EDT