Re: current status of autofs?

2018-04-26 Thread Tomohiro Kusumi
2018-04-21 10:36 GMT-07:00 Edmond Dantès :
> Hi,
> Today I tried to get automount(d) running, using my usual indirect
> map experimented in FreeBSD/Linux, but autofs doesn't seem to apply it,
> as witnessed by a quick `df -h`. The -media special map doesn't seem to
> work either.

Media map (to automount local block devices) is simply unsupported on
NetBSD and DragonFly too. See BUGS section in auto_master(5) or very
bottom part of
http://mail-index.netbsd.org/netbsd-bugs/2018/01/03/msg055054.html


Btw, I think this change by Christos introduced regression.
https://www.mail-archive.com/source-changes-full@netbsd.org/msg93849.html

I haven't tried it on NetBSD, but the same change I once applied to
DragonFly was causing regression and I later reverted it. It makes autofs
unable to unmount under some settings. FreeBSD does it this way.
https://github.com/DragonFlyBSD/DragonFlyBSD/commit/072355267a78ef9c72e8dccd4b7aaf7321be5ba1

> Pluggin-in any device doesn't expectably result in it being
> mounted. What is the current state of the project? Has anyone got this
> runnning?
>
> Best regard,
> Edmond


Re: current status of autofs?

2018-04-22 Thread Edmond Dantes
On Sun, 22 Apr 2018 22:45:12 +0700
Robert Elz  wrote:

Hi,

> Ignoring the typo that rhialto pointed out (perhaps just in the e-mail) those 

Yes, typing mistake on e-mail, not actually affecting my rc.conf

> 
> What is needed is
> 
>   autofs=YES
> 
> The "name" in the rc.d/* scripts is not what matters, the "rcvar" is.
> 
> kre
> 

Thanks! I've read rc(8) meanwhile and now everything's clear

Yours sincerely,
Edmond



Re: current status of autofs?

2018-04-22 Thread Robert Elz
Date:Sun, 22 Apr 2018 14:15:21 +0200
From:Edmond Dantes 
Message-ID:  <20180422141521.8a336a3fa62a76969fc07...@gmx.us>

  |  If I echoed automount=YES, autmountd=YES and autounmountd=YES to 
/etc/rc.conf, 

Ignoring the typo that rhialto pointed out (perhaps just in the e-mail) those 
are not what you need.

What is needed is

autofs=YES

The "name" in the rc.d/* scripts is not what matters, the "rcvar" is.

kre



Re: current status of autofs?

2018-04-22 Thread Rhialto
On Sun 22 Apr 2018 at 14:15:21 +0200, Edmond Dantes wrote:
> It seems that that the problem was somehow related to rc.conf: If I
> echoed automount=YES, autmountd=YES and autounmountd=YES to
   ^ o missing?
> /etc/rc.conf, this didn't result in the services being enbled at the
> next boot, as confirmed by running:

You may have a typo in autOmountd.

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- Wayland: Those who don't understand X
\X/ rhialto/at/falu.nl  -- are condemned to reinvent it. Poorly.


signature.asc
Description: PGP signature


Re: current status of autofs?

2018-04-22 Thread Edmond Dantes
On Sat, 21 Apr 2018 18:33:27 + (UTC)
chris...@astron.com (Christos Zoulas) wrote:

> I've used it with nfs. Can you share the example that is not working
> for you?
> 
> christos

Hi, thanks for the prompt reply.
First of all I apologize for the multiple e-mails I ended up sending: The SSL 
ceritificate for GMX' SMTP server seems to have expired,and as a consequence 
neomutt was returning  an unaccetpable certificate error; normally an emeail 
client wouldn't send a message under similar circumstances but it look like 
neomutt did. Now that I now it, I'll pay more attention next time and see if I 
can call GMX support.

Anyway that's my /etc/auto_master:

/media /etc/autofs/usb.map --timeout=10

Here's my indirect map (/etc/autofs/usb.media)

sd0e -fstype=auto,rw,async,nodev,user,nosuid,noatime,umask=002 :/dev/sd0e

It seems that that the problem was somehow related to rc.conf: If I echoed 
automount=YES, autmountd=YES and autounmountd=YES to /etc/rc.conf, this didn't 
result in the services being enbled at the next boot, as confirmed by running:

service automount restart

which returned in 

$autofs is not enabled - see rc.conf(5)

Strange, as looking at the respective rc scripts in /etc/rc.d, the daemons' 
names are correct

Anyway, if I start the service manually, using onerstart, it works:

$(df -h | grep map)

Filesystem Size Used  Avail Mounted on
map /etc/autofs/usb.media  0B   0B100%  /media


Best whishes,
Edmond




Re: current status of autofs?

2018-04-21 Thread Christos Zoulas
In article <20180421193618.01f39d9b613cc1f3d38d3...@gmx.us>,
Edmond Dantès   wrote:
>Hi,
>Today I tried to get automount(d) running, using my usual indirect
>map experimented in FreeBSD/Linux, but autofs doesn't seem to apply it,
>as witnessed by a quick `df -h`. The -media special map doesn't seem to
>work either. Pluggin-in any device doesn't expectably result in it being
>mounted. What is the current state of the project? Has anyone got this
>runnning?
>

I've used it with nfs. Can you share the example that is not working
for you?

christos



current status of autofs?

2018-04-21 Thread Edmond Dantès
Hi,
Today I tried to get automount(d) running, using my usual indirect
map experimented in FreeBSD/Linux, but autofs doesn't seem to apply it,
as witnessed by a quick `df -h`. The -media special map doesn't seem to
work either. Pluggin-in any device doesn't expectably result in it being
mounted. What is the current state of the project? Has anyone got this
runnning?

Best regard,
Edmond