[OpenIndiana-discuss] NFS Automount from FreeNAS Server
Till Wegmüller
toasterson at gmail.com
Fri Feb 20 15:56:31 UTC 2015
no problem :)
...
The No such file or directory Error Happens when automount can't find a directory on the Server and thus does not create and mount the Directory.
My Question is from where does the truss output of the successful automount come from?
Is it from the same Computer as the failed one? Also are you running /hipster or /dev on this Computer?
Other Tests you could do.
What happens if you manually create the home?
What happens if you replace the * and & in auto_home with some real usernames?
What gets logged in syslog when Automount gets its config from LDAP?
Greetings Till
Jonathan Adams schrieb am Friday 20 February 2015 10.05:42:
> thanks for getting back to me :)
>
> ...
>
> now it says "no such file or directory" instead of "permission denied" ...
>
> setting the verbose logging in sharectl doesn't seem to produce much extra
> output, nothing in syslog, and only a little extra in
> /var/svc/log/system-filesystem-autofs:default.log (no error messages)
>
> Jon
>
> On 19 February 2015 at 20:03, Till Wegmüller <toasterson at gmail.com> wrote:
>
> > Looking at that truss output it seems that automount fails shortly after
> > stat
> > on the home directory without even contacting nfs. Could it be that
> > automount
> > has problems connecting to LDAP?
> >
> > I would like to see what happens if we disable LDAP for automounts.
> >
> > To do so Coment out all Lines starting with a plus '+' in /etc/auto_home
> > and
> > /etc/auto_master.
> >
> > Then Insert the following little Magic Line and reload automount
> > * -fstype=nfs myserver:/myhomes/&
> > Replace myserver and myhomes acordingly.
> >
> > This will instruct automount to search all the subdirectories of /home
> > under
> > myserver:/myhomes and mount hem if needed.
> >
> > If for example we have a user test and would do cd /home/test automount
> > would
> > map myserver:/myuser/test to /home/test automagically replacing & and *
> > with
> > test.
> >
> > If you now get a Permission denied error try to look in syslog, automount
> > is
> > very silent about failing to mount.
> > To Increase automounts volume use:
> > sharect set -p automountd_verbose=true autofs
> > sharect set -p automount_verbose=true autofs
> >
> > Greetings Till
> >
> > On Thursday 19 February 2015 09.57:57 Jonathan Adams wrote:
> > > via automount, it never gets mounted at all.
> > >
> > > hard mounted:
> > >
> > > root at jadlaptop:~# mount mansalnfs01:/mnt/datapool2/IT /mnt
> > > root at jadlaptop:~# mount | grep mansalnfs01
> > > /mnt on mansalnfs01:/mnt/datapool2/IT
> > > remote/read/write/setuid/devices/xattr/dev=9080001 on Thu Feb 19 09:49:24
> > > 2015
> > >
> > > not sure if it helps, but attached is a section of via truss of the
> > > automountd when accessing 2 different mount points from /home
> > >
> > > Jon
> > >
> >
> > _______________________________________________
> > openindiana-discuss mailing list
> > openindiana-discuss at openindiana.org
> > http://openindiana.org/mailman/listinfo/openindiana-discuss
> >
More information about the openindiana-discuss
mailing list