Phil Dumont
Dabbler
- Joined
- Jun 23, 2016
- Messages
- 14
Running FreeNAS 9.10
Would like to get automount running on it. Note: I am not asking how to get a FreeNAS dataset to automount on another machine. I would like FreeNAS to be an automount client.
The "factory installed" /etc/auto_master is already set up exactly the way I want -- only /net is configured, all other entries are commented out. Just what I'm looking for.
But it clearly does not start at boot, because when I try to access /net/some_nfs_server/some_path, I just get no-such-file.
I'm pretty sure I could get it to go at boot, using Tasks -> Init/Shutdown Scripts in the web GUI, if I could figure out how to get it to run once from a shell command line. But I can't. A transcript of my attempts is at the end.
Is there a bug here? If so, I would be happy to submit a bug report. Or is there just some config/install I need to do to get it to work? If so, any help would be appreciated.
I'm quite conversant in Linux, but where FreeBSD differs from Linux, I'm rather a newbie. So undetailed advice like "just install the package that has the autofs kernel module" would not help me much, as I don't know how to do that.
storinator1# /etc/rc.d/automount start
kldload: can't load autofs: No such file or directory
/etc/rc.d/automount: WARNING: Unable to load kernel module autofs
storinator1# /etc/rc.d/automountd start
kldload: can't load autofs: No such file or directory
/etc/rc.d/automountd: WARNING: Unable to load kernel module autofs
/etc/rc.d/automountd: WARNING: failed precmd routine for automountd
storinator1# /usr/sbin/automount
automount: cannot mount map -hosts on /net: Operation not supported by device
storinator1# /usr/sbin/automountd
automountd: failed to open /dev/autofs: No such file or directory
storinator1#
Would like to get automount running on it. Note: I am not asking how to get a FreeNAS dataset to automount on another machine. I would like FreeNAS to be an automount client.
The "factory installed" /etc/auto_master is already set up exactly the way I want -- only /net is configured, all other entries are commented out. Just what I'm looking for.
But it clearly does not start at boot, because when I try to access /net/some_nfs_server/some_path, I just get no-such-file.
I'm pretty sure I could get it to go at boot, using Tasks -> Init/Shutdown Scripts in the web GUI, if I could figure out how to get it to run once from a shell command line. But I can't. A transcript of my attempts is at the end.
Is there a bug here? If so, I would be happy to submit a bug report. Or is there just some config/install I need to do to get it to work? If so, any help would be appreciated.
I'm quite conversant in Linux, but where FreeBSD differs from Linux, I'm rather a newbie. So undetailed advice like "just install the package that has the autofs kernel module" would not help me much, as I don't know how to do that.
storinator1# /etc/rc.d/automount start
kldload: can't load autofs: No such file or directory
/etc/rc.d/automount: WARNING: Unable to load kernel module autofs
storinator1# /etc/rc.d/automountd start
kldload: can't load autofs: No such file or directory
/etc/rc.d/automountd: WARNING: Unable to load kernel module autofs
/etc/rc.d/automountd: WARNING: failed precmd routine for automountd
storinator1# /usr/sbin/automount
automount: cannot mount map -hosts on /net: Operation not supported by device
storinator1# /usr/sbin/automountd
automountd: failed to open /dev/autofs: No such file or directory
storinator1#