Re: NFS /home over local /home

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2013-01-31 at 18:12 +0000, Günter Merz wrote:
> Hi,
> 
> I've read various tutorials but can't seem to get to work what I would like:
> 
> In my home network I want to have central /home directories so that every user
> can use any machine and find their environment.
> 
> I have a few laptops dedicated to users and those users will want a working
> laptop outside of my home network also but they can accept have only a
> rudimentary environment.
> 
> To summarize:
> - at home laptops should mount /home from a central server
> - outside home laptops should access /home locally
> - no synchronisation is needed
> 
> After some reading I thought this sounds like an autofs task.
> 
> I defined
> 
> auto.master:
> /home /etc/auto.home.nfs
> 
> auto.home.nfs:
> * -fstype=nfs server:/home/&
> +auto.home.local
> 
> auto.home.local:
> * -fstype=bind :/home.local/&
> 
> It works except that the local home directory is always picked over nfs.  For my
> purpose, I want it the other way around.
> 
> I tried quite a lot to turn it around but couldn't figure it out.  Is it
> possible or is autofs not the right choice for me?  Should I approach the whole
> subject differently?

You shouldn't even need two maps, you should be able to use the NFS map
and it should bind mount the fs if it is seen to be local.

There have been various difficulties over time, what version of autofs
are you using?

Ian

--
To unsubscribe from this list: send the line "unsubscribe autofs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux Ext4]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux