[opensuse] autofs nfs mounts problem?
12.1 I have autofs like this: Server: /etc/exports /home/CACTUS 192.168.1.0/24 (rw,sec=none:sys:krb5:krb5i:krb5p,no_subtree_check,insecure) Clients: /etc/auto.master /home/CACTUS /etc/auto.misc /etc/auto.misc 192.168.1.0/24 -rw,sec=krb5,vers=3 /home/CACTUS/& When we start the automounter on 12.1: /etc/auto.misc is mounted on on /home ??? On Ubuntu clients, nothing happens until we hit a share, e.g. someone logs in. Same behaviour with either nfs3 or 4. /home does not exist on either client unless autofs is started. Why the mount with us and not with them? Thanks, L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am Sonntag, 8. April 2012, 20:46:44 schrieb lynn:
[...] Clients: /etc/auto.master /home/CACTUS /etc/auto.misc
So, you are using inderect maps. And you want to map the entry with the key "foo" of /etc/auto.misc to "/home/CACTUS/foo"?
/etc/auto.misc 192.168.1.0/24 -rw,sec=krb5,vers=3 /home/CACTUS/&
Strange, the format of the indirect map file is "key [-options] location". E.g.: | foo -rw,sec=krb5,vers=3 192.168.1.1:/home/CACTUS/& Then, autofs should mount the share "/home/CACTUS/foo" of the server at the directory "/home/CACTUS/foo" on the client---in case of 192.168.1.1 being the ip address of your server. But your key 192.168.1.0/24 does not even look like a location.
When we start the automounter on 12.1: /etc/auto.misc is mounted on on /home ???
What do you expect? It is correct, that the output of "mount" says that the entries of your "/etc/auto.master" are mounted with the fstype "autofs". This does not imply that there is any share mounted. Each actually mounted share is listed separately in the output of "mount" with the real fstype like "nfs" in your case. However, according to your "/etc/auto.master", I would expect that "mount" shows "/etc/auto.misc" mounted on "/home/CACTUS", not on "/home".
On Ubuntu clients, nothing happens until we hit a share, e.g. someone logs in. [...]
Just set DEFAULT_BROWSE_MODE to "no" in /etc/sysconfig/autofs. Gruß Jan -- If things were left to chance, they'd be better. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/04/12 12:07, Jan Ritzerfeld wrote:
Am Sonntag, 8. April 2012, 20:46:44 schrieb lynn:
[...] Clients: /etc/auto.master /home/CACTUS /etc/auto.misc
So, you are using inderect maps. And you want to map the entry with the key "foo" of /etc/auto.misc to "/home/CACTUS/foo"?
Hi Thanks. Here is an example: I want user lynn who has her directory at /home/CACTUS/lynn be mounted at /home/CACTUS/lynn when eg, she logs in. It works as it is at the moment but I'd like to do it correctly if possible. I tried this with the same results: master /home/CACTUS /etc/auto.misc misc * -rw,sec=krb5,vers=3 /home/CACTUS/& The question is what does the * stand for? Thanks, L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
lynn said the following on 04/09/2012 11:01 AM:
misc * -rw,sec=krb5,vers=3 /home/CACTUS/&
The question is what does the * stand for?
What it usually stands for - wildcard. In the manual page AUTOFS(5) it says <quote> Map Key Substitution An & character in the location is expanded to the value of the key field that matched the line (which probably only makes sense together with a wildcard key). Wildcard Key A * in the key field matches all keys. An example for the usefulness is the following entry: * &:/home/& This will enable you to access all the home directory of local hosts using the path /mountpoint/hostname/local-path. </quote> Please see the docuemntation. (i.e RTFM) http://www.autofs.org/ in partciluar http://www.autofs.org/autofs-base.html#nfs -- "Most victories came from instantly exploiting your enemy's stupid mistakes, and not from any particular brilliance in your own plan." -- Orson Scott Card, -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/04/12 17:26, Anton Aylward wrote:
lynn said the following on 04/09/2012 11:01 AM:
misc * -rw,sec=krb5,vers=3 /home/CACTUS/&
Map Key Substitution An& character in the location is expanded to the value of the key field that matched the line (which probably only makes sense together with a wildcard key).
Hi So the syntax is <key> <options> <location> I think I've got it: If lynn asks for /home/CACTUS/lynn then the * is lynn. Is this correct reasoning? * is the key and lynn is the & In this case, both * and & = lynn Sure enough, /home/CACTUS/lynn gets mounted. Why though and before any mount requests are made, de we show /home/auto.misc as being mounted whereas ubuntu shows nothing? Thanks, L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am Montag, 9. April 2012, 18:13:37 schrieb lynn:
[...] Why though and before any mount requests are made, de we show /home/auto.misc as being mounted whereas ubuntu shows nothing?
Please try setting DEFAULT_BROWSE_MODE to "no" in /etc/sysconfig/autofs, as I suggested in my first answer, and restart the autofs service. Gruß Jan -- What the hell, go ahead and put all your eggs in one basket. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
On 09/04/12 18:36, Jan Ritzerfeld wrote:
Am Montag, 9. April 2012, 18:13:37 schrieb lynn:
[...] Why though and before any mount requests are made, de we show /home/auto.misc as being mounted whereas ubuntu shows nothing?
Please try setting DEFAULT_BROWSE_MODE to "no" in /etc/sysconfig/autofs, as I suggested in my first answer, and restart the autofs service.
Hi Yes, sorry I did that and restarted autofs. But we still get /etc/auto.misc mounted. Also, it leaves permanent folders on the client for the folders specified in etc/exports But at least not the wildcard mounted folders. Everything is working, I just see different behaviour between us and Ubuntu. Thanks, L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
Am Dienstag,10 April 2012. 14:37:25 schrieb lynn:
[...] Yes, sorry I did that and restarted autofs. But we still get /etc/auto.misc mounted.
IMHO, this is documented in "man 8 autofs": | OPERATION | autofs will consult a configuration file /etc/auto.master (see | auto.master(5)) by default to find mount points on the system. For each | of those mount points automount(8) will mount and | start a thread, with the appropriate parameters, to manage the mount | point. So, what does the Ubuntu man page say?
Also, it leaves permanent folders on the client for the folders specified in etc/exports
How does "etc/exports" yield to folders on the client? There must be some autofs mount point configured on the client. And what do you mean by "permanent"? While running the autofs service but not using the folder anymore for 10 minutes? Or after stopping the autofs service?
But at least not the wildcard mounted folders. [...]
Hmm, IIRC the browse mode is always off for wildcards. Gruß Jan -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
lynn wrote:
On 09/04/12 18:36, Jan Ritzerfeld wrote:
Am Montag, 9. April 2012, 18:13:37 schrieb lynn:
[...] Why though and before any mount requests are made, de we show /home/auto.misc as being mounted whereas ubuntu shows nothing?
Please try setting DEFAULT_BROWSE_MODE to "no" in /etc/sysconfig/autofs, as I suggested in my first answer, and restart the autofs service.
Hi
Yes, sorry I did that and restarted autofs. But we still get /etc/auto.misc mounted. Also, it leaves permanent folders on the client for the folders specified in etc/exports
Then DEFAULT_BROWSE_MODE=no is not obeyed. Try to add BROWSE_MODE=no to /etc/sysconfig/autofs; man auto.master documents that variable. But: That these folders are shown (and are available for command line completion) is a huge advantage over older versions, IMHO. That these folders exist does not mean that the remote file systems are mounted; they are only mounted if someone access it. (You can see with ls -l which ones are actually mounted -- the other ones have size 0.) But now one sees the directories that are provided by autofs; I wouldn't want to work without that feature any more.
Everything is working, I just see different behaviour between us and Ubuntu.
Concerning mount information, comparing /proc/mounts is better than the mount command output. There, mount points are listed since many versions; e.g., on my 11.4 workstation: puma:~ $ grep auto /proc/mounts /etc/auto.misc /misc autofs rw,relatime,fd=6,pgrp=2533,timeout=60,minproto=5,maxproto=5,indirect 0 0 /etc/auto.smb /smb autofs rw,relatime,fd=12,pgrp=2533,timeout=600,minproto=5,maxproto=5,indirect 0 0 /etc/auto.net /net autofs rw,relatime,fd=18,pgrp=2533,timeout=600,minproto=5,maxproto=5,indirect 0 0 auto.shared /shared autofs rw,relatime,fd=24,pgrp=2533,timeout=600,minproto=5,maxproto=5,indirect 0 0 Cheers, Joachim -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=- Joachim Schrod Email: jschrod@acm.org Roedermark, Germany -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
lynn wrote:
On 09/04/12 18:36, Jan Ritzerfeld wrote:
Am Montag, 9. April 2012, 18:13:37 schrieb lynn: But: That these folders are shown (and are available for command line completion) is a huge advantage over older versions, IMHO. That these folders exist does not mean that the remote file systems are mounted; they are only mounted if someone access it. Hi Ah, that's supposed to happen? Then good. We got it right. And yes,
On 10/04/12 23:55, Joachim Schrod wrote: there is nothing in the folders that are created until someone goes there. Google told me that the mount point should not exist before starting autofs, so we figured that it should be removed on exit. So thanks to your manual references this is solved. Part of the problem is taking over installations from others. Here we have a mix of ubuntu 11.something and 12.1 clients. They have the same versions of libreoffice (that's all they are used for) but different versions of autofs. Thanks so much for taking the time to explain this. L x -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org
participants (4)
-
Anton Aylward
-
Jan Ritzerfeld
-
Joachim Schrod
-
lynn