All of lore.kernel.org
 help / color / mirror / Atom feed
From: Bill Shannon <bill.shannon@sun.com>
To: Peter Staubach <staubach@redhat.com>
Cc: autofs@linux.kernel.org, Ian Kent <raven@themaw.net>
Subject: Re: Ubuntu NFS automount problem
Date: Mon, 24 Nov 2008 12:31:00 -0800	[thread overview]
Message-ID: <492B0F04.1080104@sun.com> (raw)
In-Reply-To: <492ACFB9.7060201@redhat.com>

Peter Staubach wrote:
> Bill, why aren't you using the -hosts map?

That's a good question...

I don't remember how I got to this point, but ...

I just tried using -hosts, but it doesn't seem to be working:

vostro# cat /etc/auto.master
# $Id: auto.master,v 1.2 1997/10/06 21:52:03 hpa Exp $
# Sample auto.master file
# Format of this file:
# mountpoint map options
# For details of the format look at autofs(8).
# /misc	/etc/auto.misc	--timeout=60
/home	/etc/auto.home	-nosuid
#/net	/etc/auto.net	-nosuid
/net	-hosts		-nosuid
#/-	/etc/auto.direct	-nosuid
vostro# /etc/init.d/autofs reload
Reloading automounter: checking for changes ...
Reloading automounter map for: /home
Stopping automounter for: /smb
vostro# ls /net/nissan
ls: cannot access /net/nissan: No such file or directory
vostro# /etc/init.d/autofs restart
Stopping automounter:
   Couldn't stop automount for /home done.
Starting automounter:
  failed to start automount point /home
  done.
vostro# /etc/init.d/autofs reload
Reloading automounter: checking for changes ...
Reloading automounter map for: /home
vostro# ls /net/nissan
ls: cannot access /net/nissan: No such file or directory
vostro# grep nissan /etc/hosts
192.168.1.2	nissan

I think that's the reason I ended up with an auto.net map,
although it now seems likely that it never worked as intended.

I started chasing this problem because my auto.home map wasn't
working, which I now understand is the expected behavior based
on the way I'm now exporting my /export/home filesystems.  My
mistake.

I just fixed my auto.home map using multimounts.

Still, any hints as to why the -hosts pseudo-map isn't working
would be appreciated.  Are you sure it's *supposed* to work?
It's not documented in the man page.

I think this is the version of autofs I have:

vostro# dpkg-query -l 'autofs*'
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-f/Unpacked/Failed-cfg/Half-inst/t-aWait/T-pend
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  autofs         4.1.4+debian-2 kernel-based automounter for Linux

Is there an "autofs5" package I should install instead?

Thanks for your help!

  parent reply	other threads:[~2008-11-24 20:31 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-11-23  2:27 Ubuntu NFS automount problem Bill Shannon
2008-11-24  4:08 ` Ian Kent
2008-11-24  7:25   ` Bill Shannon
2008-11-24 12:52     ` Ian Kent
2008-11-24 15:42       ` Bill Shannon
2008-11-24 16:00       ` Peter Staubach
2008-11-24 16:26         ` Ian Kent
2008-11-24 20:31         ` Bill Shannon [this message]
2008-11-25  1:32           ` Ian Kent
2008-11-25 10:27             ` Ondrej Valousek
2008-11-25 11:27               ` Ian Kent
2008-11-25 11:44                 ` Ondrej Valousek
2008-11-25 12:11                   ` Ian Kent
2008-11-24 15:59     ` Bill Shannon
2008-11-24 17:43       ` Ian Kent
2008-11-24 20:35         ` Bill Shannon
2008-11-25  1:21           ` Ian Kent
  -- strict thread matches above, loose matches on Subject: below --
2008-11-25  1:10 Brent Callaghan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=492B0F04.1080104@sun.com \
    --to=bill.shannon@sun.com \
    --cc=autofs@linux.kernel.org \
    --cc=raven@themaw.net \
    --cc=staubach@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.