* Laptop users with local home directory
@ 2010-02-26 14:15 Robert Lazzurs
2010-02-27 3:09 ` Ian Kent
0 siblings, 1 reply; 2+ messages in thread
From: Robert Lazzurs @ 2010-02-26 14:15 UTC (permalink / raw)
To: autofs
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?
Thanks in advance.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Laptop users with local home directory
2010-02-26 14:15 Laptop users with local home directory Robert Lazzurs
@ 2010-02-27 3:09 ` Ian Kent
0 siblings, 0 replies; 2+ messages in thread
From: Ian Kent @ 2010-02-27 3:09 UTC (permalink / raw)
To: Robert Lazzurs; +Cc: autofs
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-02-27 3:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-26 14:15 Laptop users with local home directory Robert Lazzurs
2010-02-27 3:09 ` Ian Kent
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.