1830901 Members
2134 Online
110017 Solutions
New Discussion

Re: autofs direct mounts

 
Mark Ellzey
Valued Contributor

autofs direct mounts

Hi,

Does anybody know how to do direct mounts on Linux? I'm finding very little information in the man pages and other supplementary documentation.

I'm trying to use NIS automount maps from a HP-UX 10.20 NIS master. The client is RHEL Ver 3.

I can get the indirect mounts to work fine, it's just the direct mounts I cannot find the information for.

Thanks,
Mark
9 REPLIES 9
Ivan Ferreira
Honored Contributor

Re: autofs direct mounts

Can you share your direct map configuration files?
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Mark Ellzey
Valued Contributor

Re: autofs direct mounts

Ivan,

I'm using NIS auto.direct maps from an HP NIS master. It looks like this:

/logs -rw,intr owl1:/vol/vol0/home/logs
/net_data -rw,intr \ owl1:/vol/vol0/home/net_data
/etest -rw,intr owl1:/vol/vol0/etest
/perl -rw,intr \ owl1:/vol/vol0/home/bin_tools/perl56

(owl1 is a Network Appliance)

Don't know if this will help, but any direction is appriciated.

Mark
Ivan Ferreira
Honored Contributor

Re: autofs direct mounts

Do you have nis configured in /etc/nsswitch.conf for the automount service?

automount nis files
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Mark Ellzey
Valued Contributor

Re: autofs direct mounts

Ivan,

Yep, that's just the way it looks in the nsswitch.conf file:

automount: nis files

Thanks,
Mark
Ivan Ferreira
Honored Contributor

Re: autofs direct mounts

Try changing the /etc/sysconfig/autofs file:

DISABLE_DIRECT=0
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
Vitaly Karasik_1
Honored Contributor

Re: autofs direct mounts

Mark,

Linux automounter doesn't support direct maps (at least, didn't support when I last timne checked it http://linux.about.com/od/commands/l/blcmdl5_autofs.htm)

rgds,
Vitaly
Mark Ellzey
Valued Contributor

Re: autofs direct mounts

Thanks for the input, fellas.

I suspected that maybe linux didn't support direct mounts. Nothing in the man pages for autofs, automount or auto.master point to direct mounts being possible. In fact, it looks like the only type of mount available is indirect.

Just thought I'd ask. I guess I can put the direct mounts in the fstab, though I would prefer not to.

Thanks again for your help.

Mark
Bill Thorsteinson
Honored Contributor

Re: autofs direct mounts

Would using indirect mounts and
symlinking to the mounts work?

You could also enable /net mounts and
symlink to the appropriate directory.
Mark Ellzey
Valued Contributor

Re: autofs direct mounts

Bill,

Yeah, that's my other idea.

Thanks,
Mark