Ok I've been working on solving problems with autofs for the last couple of days. several things I've been working on come from bugs #3930 and #4248. I have added net-nds/portmap, and net-nds/ypbind to RDEPEND. I also updated the init scripts to add a working stats option...this option is the same as most distros status option, as there seems to be a predefined status option in gentoo that just shows whether a daemon is running or not. I reworked the reload to make it work properly, and added a hard restart option. I also added info to pkg_postinst to note that portmap must be present in the default run-level in order for remote NFS mounts without actually running NFS
Created attachment 4087 [details] autofs-3.1.7-r4.ebuild
Created attachment 4088 [details] ChangeLog
Created attachment 4089 [details] autofs.rc6
Created attachment 4090 [details] digest-autofs-3.1.7-r4
Created attachment 4091 [details] auto.master
Created attachment 4092 [details] auto.misc
Created attachment 4093 [details] autofs.confd
Created attachment 4094 [details] automount.diff
*NOTE all other files in the filesdir can be removed as they are abandoned with no ebuild calling on them
UUGGHH....posted the wrong files/autofs.rc6 added the correct attachment
Created attachment 4095 [details] autofs.rc6 corrected version
autofs.confd contains this... ----------------------------- # Config file for /etc/init.d/autofs FLAGS="defaults 21" # # e.g. localoptions='rsize=8192,wsize=8192' # localoptions='' autofs.rc6 contains this... --------------------------- #FIXME: this works but it really sucks if echo $timeout|grep -v -- '--timeout' >/dev/null ; then rest="$mnt $rest" mnt="$timeout" timeout="" fi In autofs.confd we should add "--timeout=60" to localoptions so we don't have to do this messy passing of variables around.
*** Bug 6058 has been marked as a duplicate of this bug. ***
With the lastest autofs ebuild, whatever I try, I can only mount/see one map when using NIS. # ypcat auto.master auto.home -nobrowse auto.local # ypcat auto.home -fstype=nfs,rw,hard,intr,rsize=8192,wsize=8192 srv01.lphp.local:/home/& # ypcat auto.local -fstype=nfs,rw,hard,intr,rsize=8192,wsize=8192 srv03.lphp.local:/public -fstype=nfs,rw,hard,intr,rsize=8192,wsize=8192 srv02.lphp.local:/public -fstype=nfs,rw,hard,intr,rsize=8192,wsize=8192 srv01.lphp.local:/public auto.home is mounted on /home and auto.local on /mnt/export. # mount srv01.lphp.local:/home/ajacoutot on /home/ajacoutot type nfs (rw,nobrowse,hard,intr,rsize=8192,wsize=8192,addr=192.168.0.1) # cd /mnt/export/public@srv01 bash: cd: /mnt/export/public@srv01: No such file or directory ??? --> isn't it supposed to automount ??? I do have the directory /mnt/export # /etc/init.d/autofs stats Configured Mount Points: ------------------------ /usr/sbin/automount /home/ yp auto.home nobrowse --timeout=60 /usr/sbin/automount /mnt/export/ yp auto.local --timeout=60 Active Mount Points: -------------------- /usr/sbin/automount /home/ yp auto.home nobrowse --timeout=60 grep automount If I disable the auto.home map file on the server, then I can mount what's in auto.local... odd...
hopefully fixed....please submit another bug if not :)
Okay, I am going to add something here too... 3.1.7-r4 has need net use portmap ypbind autofs does *not* need net - and it does *not* use portmap - at least not directly. As I suggested in bug#3930 I believe that the correct setup should be need localmount use ypbind nfs portmap and net get taken care of by ypbind and nfs. the need localmount just forces the correct order since things seems to go in alphabetical order otherwise Scott
Thanks for this new ebuild release... it does resolve my problem !!! Cool.