basic question on "key"
Hello there, I'm using autofs since a while and works very well.
Now I'd like to mount /home/milly and /home/es/Data from an NFS export. This means I cannot simply have /home in auto.master otherwise /home/es became inaccesible. ********* auto.master file/home/milly /etc/autofs/auto.home.milly/home/es /etc/autofs/auto.home.es
********* auto.home.milly
./ -fstype=nfs,rw myhost:/home/milly
It seems I can't use ./ as key nor I can have /home/es in auto.master and have Data as key in auto.home.es because it will mount /home/es hidding the content of /home/es.
I have read trought the docs but can't find an example of this basic usage scenario. TIA
Eli
Ian Kent
maintainerQuoted 10 lines · es
Hello there, I'm using autofs since a while and works very well. Now I'd like to mount
/home/millyand/home/es/Datafrom an NFS export. This means I cannot simply have /home in auto.master otherwise/home/esbecame inaccesible.
********* auto.master file/home/milly/etc/autofs/auto.home.milly/home/es/etc/autofs/auto.home.es
********* auto.home.milly
./ -fstype=nfs,rw myhost:/home/milly
Quoted 3 lines
It seems I can't use ./ as key nor I can have
/home/esin auto.master and have Data as key in auto.home.es because it will mount/home/eshidding the content of/home/es.
You might like to try a multi mount entry like
milly myhost:/home/milly
es / myhost:/home/es \
/data otherhost:/home/data
Note that multi mount map entries mount and umount all their entries as a single unit because of the cross filesystem issues that can arise. So in this case /home/es and /home/es/data would be mounted and umounted together.
Ian
Ian Kent
maintainerQuoted 18 lines · Ian Kent
Quoted 10 lines · es
Hello there, I'm using autofs since a while and works very well. Now I'd like to mount
/home/millyand/home/es/Datafrom an NFS export. This means I cannot simply have /home in auto.master otherwise/home/esbecame inaccesible.
********* auto.master file/home/milly/etc/autofs/auto.home.milly/home/es/etc/autofs/auto.home.es
********* auto.home.milly
./ -fstype=nfs,rw myhost:/home/millyQuoted 3 lines
It seems I can't use ./ as key nor I can have
/home/esin auto.master and have Data as key in auto.home.es because it will mount/home/eshidding the content of/home/es.You might like to try a multi mount entry like
Quoted 8 lines
milly myhost:/home/milly
es / myhost:/home/es \
/data otherhost:/home/dataNote that multi mount map entries mount and umount all their entries as a single unit because of the cross filesystem issues that can arise. So in this case
/home/esand/home/es/datawould be mounted and umounted together.
And as Stephen says you need at least autofs version 4.0.0.
Ian