Care to explain those two. direct versus indirect mapping? On Wed, Jun 17, 2015 at 12:13 PM, Akemi Yagi <amyagi at gmail.com> wrote:> On Wed, Jun 17, 2015 at 11:06 AM, Ashley M. Kirchner <ashley at pcraft.com> > wrote: > > Nope, that completely takes over '/mnt' and everything else that's in > there > > becomes invisible. However, I do believe you're on to something here. > > Looking back at the other, working setup, I do realize now that I did the > > same, where the path was '/mnt/<something>' and the autofs mounts are > > within that, so they became '/mnt/<something>/<mount-point>' - so thanks > > for that hint. I'll go fiddle with it. > > Right, I use something other than /mnt for my autofs. > > Another thing you may want to consider is use of 'direct map' instead > of 'indirect map'. If I remember correctly, it works well with cifs > mounts, too. > > Akemi > _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >
On Wed, Jun 17, 2015 at 11:16 AM, Ashley M. Kirchner <ashley at pcraft.com> wrote:> Care to explain those two. direct versus indirect mapping? > > On Wed, Jun 17, 2015 at 12:13 PM, Akemi Yagi <amyagi at gmail.com> wrote:>> Another thing you may want to consider is use of 'direct map' instead >> of 'indirect map'. If I remember correctly, it works well with cifs >> mounts, too.I'm sure you can find nice documentations that explain the two mapping methods. Just briefly, With 'direct map', you can mount virtually at any point because it uses absolute paths. In some situations (like mounting directly under /), 'direct map' is the only option for autofs. In /etc/auto.master, you add a line similar to: /- /etc/auto.direct And in /etc/auto.direct, you may have: /mounthere -fstype=cifs,rw,blah ://machine/share Akemi
Akemi Yagi wrote:> On Wed, Jun 17, 2015 at 11:16 AM, Ashley M. Kirchner <ashley at pcraft.com> > wrote: >> Care to explain those two. direct versus indirect mapping? >> >> On Wed, Jun 17, 2015 at 12:13 PM, Akemi Yagi <amyagi at gmail.com> wrote: > >>> Another thing you may want to consider is use of 'direct map' instead >>> of 'indirect map'. If I remember correctly, it works well with cifs >>> mounts, too. > > I'm sure you can find nice documentations that explain the two mapping > methods. Just briefly, With 'direct map', you can mount virtually at > any point because it uses absolute paths. In some situations (like > mounting directly under /), 'direct map' is the only option for > autofs. > > In /etc/auto.master, you add a line similar to: > > /- /etc/auto.direct > > And in /etc/auto.direct, you may have: > > /mounthere -fstype=cifs,rw,blah ://machine/share >Is auto.net considered direct mounting, or indirect? One thing to note, Ashley - we have that set up, but you *can't* ll /project, it's not there until you look for it by name, say, ll /project/joesproj, and *then* it's there. mark