Stuckless, Colin wrote:
> Hello,

 > Local:        /level1/level2/home/username
 > Server: /prefix/homestore_[:a-z:]/username
> >
 > This means when I want to mount my own home I have to mount
 > server:/prefix/homestore_d/dheinric to /level1/level2/home/dheinric. I
 > guess there's no other way than using a program map, but there's not
 > much documentation/examples about this in the package. Can
 > someone sched
 > some light on this, please.

You can create an auto.home map on the server which has all the
pathnames and mount points. For example, your auto_master would
say:

/level1/level2/home auto_home

and then your auto_home map would have entries like:

dheinric server:/prefix/homestore_d/&
Tried this, but did not quite succeed. The problem is that this would require entries for every single user. But the following auto.home then worked for me:

#!/bin/bash
FIRST_LETTER=`echo $1|cut -c 1`
echo server:/prefix/homestore_${FIRST_LETTER}/$1

This returns the correct path.

This would result in the client automounting /level1/level2/home/dheinric
from server:/prefix/homestore_d/dheinric when you cd'd into the directory.

> I've also looked onto our Solaris machines. They seem to cascade the
> maps, which I guess is not possible on linux, right?



I'm not sure what you mean by cascade, but their is a syntax I've seen referred to as 'multimount' where you have multiple subdirectories undr a single mount point, each seperated by a "\" continuation character. These exist on HP-UX and Solaris. The newest autofs does support this, I'm using the autofs-4.1 beta with these type of maps and it's working fine.
In auto_master they have a line "/level1 auto_level1", then in auto_level1, there is "level2 -fstype=autofs auto_level2", this is what I mean with cascading. Meanwhile, I found another Linux box here which does the same, but the syntax is different: "level2 -fstype=autofs file:/full/path/to/map"

Bye...

        Dirk
--
Dirk Heinrichs          | Tel:  +49 (0)151 1513 6954
Configuration Manager   | Fax:  +49 (0)211 47068 111
Cap Gemini Ernst & Young| Mail: [EMAIL PROTECTED]
Hambornerstra�e 55      | Web:  http://www.cgey.com
D-40472 D�sseldorf      | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: www.keyserver.net


_______________________________________________ autofs mailing list [EMAIL PROTECTED] http://linux.kernel.org/mailman/listinfo/autofs

Reply via email to