From: Chris Eckert on
hello all,

this is strange, i'm still trying to make my solaris 10 u8 box successfully
mount local home directories from /export/home into /home by means of
the automounter.

my /etc/nsswitch.conf file is unchanged/original.

my /etc/auto_home file bears the following entries...
+auto_home
eckert -fstype=lofs :/export/home/&

my /etc/auto_master file is unchanged/original too...
+auto_master
/net -hosts -nosuid,nobrowse
/home auto_home -nobrowse

eckert's home directory location in /etc/passwd is set to /home.

then doing a 'svcadm restart autofs'... but nothing happens.

'ls -la /home' shows an empty directory.

any ideas?

thanks
chris

--
CHRIS ECKERT
eckert[at]alphanet.ch - http://www.alphanet.ch/~eckert
gpg public key id 0xD08960E3

From: John D Groenveld on
In article <hr1t9g$db6$1(a)news2.open-news-network.org>,
Chris Eckert <eckert(a)alphanet.ch> wrote:
>my /etc/auto_home file bears the following entries...
>+auto_home
>eckert -fstype=lofs :/export/home/&

eckert localhost:/export/home/&

# mkdir /export/home/eckert
# chown eckert /export/home/eckert
# automount
# ls /home/eckert
# mount -v |grep /home/eckert

John
groenveld(a)acm.org
From: Chris Eckert on
On 2010-04-25 21:00:38 +0200, groenvel(a)cse.psu.edu (John D Groenveld) said:

> In article <hr1t9g$db6$1(a)news2.open-news-network.org>,
> Chris Eckert <eckert(a)alphanet.ch> wrote:
>> my /etc/auto_home file bears the following entries...
>> +auto_home
>> eckert -fstype=lofs :/export/home/&
>
> eckert localhost:/export/home/&
>
> # mkdir /export/home/eckert
> # chown eckert /export/home/eckert
> # automount
> # ls /home/eckert
> # mount -v |grep /home/eckert
>
> John
> groenveld(a)acm.org

hmmm, seems to work! i guess what happened is the following:

i never actually accessed /home/eckert's *contents*. instead i just listed
/home's contents (doing an 'ls /home' or similar) and expected the
eckert subdir
to show up as "normal" filesystem behaviour would be. now with the automounter
acting somewhat different due to its prupose, eckert shows only up for
the first time
when something *inside* /home/eckert (i.e. contents) is accessed.

thanks for the enlightment!

chris

--
CHRIS ECKERT
eckert[at]alphanet.ch - http://www.alphanet.ch/~eckert
gpg public key id 0xD08960E3

From: Stefaan A Eeckels on
On Sun, 25 Apr 2010 19:20:53 +0200
Chris Eckert <eckert(a)alphanet.ch> wrote:

> my /etc/auto_home file bears the following entries...
> +auto_home
> eckert -fstype=lofs :/export/home/&

As mentioned by Casper a couple of weeks ago, the automounter will
automatically use lofs when mounting local directories. Simply use:

* localhost:/export/home/&

and your home directories will automount without problems.


--
Stefaan A Eeckels
--
You don't have to spend the rest of your life
exercising yourself to death.
-- SPAM can be fun :)
From: Roger Williams on

>i never actually accessed /home/eckert's *contents*. instead i just listed
>/home's contents (doing an 'ls /home' or similar) and expected the
>eckert subdir
>to show up as "normal" filesystem behaviour would be

To get that behaviour, you can remove the -nobrowse option from the /home entry
in /etc/auto_master (and restart autofs).

--
Roger Williams, GNS Science, New Zealand : www.gns.cri.nz