From: Ian Kent <raven@themaw.net>
To: Robert Lazzurs <rob@lazzurs.net>
Cc: autofs@linux.kernel.org
Subject: Re: Laptop users with local home directory
Date: Sat, 27 Feb 2010 11:09:06 +0800 [thread overview]
Message-ID: <4B888CD2.2030701@themaw.net> (raw)
In-Reply-To: <1220a921002260615h420460f9w9a7b599ce49bfcd2@mail.gmail.com>
On 02/26/2010 10:15 PM, Robert Lazzurs wrote:
> Hello,
>
> I have a number of laptop users that have both a local home directory
> on their laptop and a NFS mounted home directory when they are in the
> office.
>
> What they want to be able to do is only use the local home directory
> as their current home directory when the NFS server is not available.
> So for example using the replicated syntax I tried something similar
> to the following for a map on /homes/
>
> username nfsserver:/home/username localhost:/home/username
>
> The passwd entry would then point the user home directory to /homes/username.
>
> The issue with this currently is that autofs will always prefer a
> local mount over a network mount, even with weighting. Is there any
> way to provide this facility in a similar way to the replicated syntax
> without using a script for the map?
The only way to do that is to stop bind mounting for the entry or the
map, depending on what you need. That also means you need to have the
NFS server enabled on the local machine.
There are two ways to do it. One is to use the nosymlink pseudo option
or explicitly specifying the port option for the mount. But beware that
nosymlink option might go away or be renamed at some point in the future
or an additional option which does the same thing introduced and
documented, leaving the nosymlink undocumented, but it's unlikely to be
done any time soon.
Ian
prev parent reply other threads:[~2010-02-27 3:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-26 14:15 Laptop users with local home directory Robert Lazzurs
2010-02-27 3:09 ` Ian Kent [this message]
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=4B888CD2.2030701@themaw.net \
--to=raven@themaw.net \
--cc=autofs@linux.kernel.org \
--cc=rob@lazzurs.net \
/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.