All of lore.kernel.org
 help / color / mirror / Atom feed
* Automount /home for all the users when a user try to use /home
@ 2011-05-19  7:10 giggzounet
  2011-05-24  3:23 ` Ian Kent
  0 siblings, 1 reply; 4+ messages in thread
From: giggzounet @ 2011-05-19  7:10 UTC (permalink / raw)
  To: autofs

Hi,

I'm using autofs for years and on different configurations. It works
great! so thx for your great work.

But I have a little question/problem:
We have a cluster (with CentOS 5.5). It's a little cluster, so the /home
"is" on the master. And this /home is exported to the nodes. I have
installed autofs in order to automount this /home when a user wants to
use his /home.

So at the moment the configuration is simple:
cat auto.master
/home   /etc/auto.home

cat auto.home
*      nfs_oscar:/home/&


So when a user comes autofs mounts only the /home for the user.

So at the moment it works. but I find it not optimal, because when 2
users try to connect from a node I get 2 mounts.

I would like to get this behaviour:
when a user try to connect to his /home, autofs mount all the export
/home. It is possible ?

Thx!
Best regards,
Guillaume

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Automount /home for all the users when a user try to use /home
  2011-05-19  7:10 Automount /home for all the users when a user try to use /home giggzounet
@ 2011-05-24  3:23 ` Ian Kent
  2011-05-24  6:32   ` giggzounet
  0 siblings, 1 reply; 4+ messages in thread
From: Ian Kent @ 2011-05-24  3:23 UTC (permalink / raw)
  To: giggzounet; +Cc: autofs

On Thu, 2011-05-19 at 09:10 +0200, giggzounet wrote:
> Hi,
> 
> I'm using autofs for years and on different configurations. It works
> great! so thx for your great work.
> 
> But I have a little question/problem:
> We have a cluster (with CentOS 5.5). It's a little cluster, so the /home
> "is" on the master. And this /home is exported to the nodes. I have
> installed autofs in order to automount this /home when a user wants to
> use his /home.
> 
> So at the moment the configuration is simple:
> cat auto.master
> /home   /etc/auto.home
> 
> cat auto.home
> *      nfs_oscar:/home/&
> 
> 
> So when a user comes autofs mounts only the /home for the user.
> 
> So at the moment it works. but I find it not optimal, because when 2
> users try to connect from a node I get 2 mounts.
> 
> I would like to get this behaviour:
> when a user try to connect to his /home, autofs mount all the export
> /home. It is possible ?

It might be possible to come up with a method to mount all the keys in a
indirect map on first access but that sounds like it would be more
difficult than it's worth.

Do you really need to mount these separately?

Could you use a direct mount map instead?
You could do this by using the following:

in the master map (possibly /etc/auto.master):
/-	/etc/auto.direct.homes

and /etc/auto.direct.homes could contain:
/home	oscar:/home

This way there is only one mount not many and it will always make all
home directories available on first access.

Ian

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Automount /home for all the users when a user try to use /home
  2011-05-24  3:23 ` Ian Kent
@ 2011-05-24  6:32   ` giggzounet
  2011-05-30  9:41     ` giggzounet
  0 siblings, 1 reply; 4+ messages in thread
From: giggzounet @ 2011-05-24  6:32 UTC (permalink / raw)
  To: autofs

Le 24/05/2011 05:23, Ian Kent a écrit :
> On Thu, 2011-05-19 at 09:10 +0200, giggzounet wrote:
>> Hi,
>>
>> I'm using autofs for years and on different configurations. It works
>> great! so thx for your great work.
>>
>> But I have a little question/problem:
>> We have a cluster (with CentOS 5.5). It's a little cluster, so the /home
>> "is" on the master. And this /home is exported to the nodes. I have
>> installed autofs in order to automount this /home when a user wants to
>> use his /home.
>>
>> So at the moment the configuration is simple:
>> cat auto.master
>> /home   /etc/auto.home
>>
>> cat auto.home
>> *      nfs_oscar:/home/&
>>
>>
>> So when a user comes autofs mounts only the /home for the user.
>>
>> So at the moment it works. but I find it not optimal, because when 2
>> users try to connect from a node I get 2 mounts.
>>
>> I would like to get this behaviour:
>> when a user try to connect to his /home, autofs mount all the export
>> /home. It is possible ?
> 
> It might be possible to come up with a method to mount all the keys in a
> indirect map on first access but that sounds like it would be more
> difficult than it's worth.
> 
> Do you really need to mount these separately?
> 
> Could you use a direct mount map instead?
> You could do this by using the following:
> 
> in the master map (possibly /etc/auto.master):
> /-	/etc/auto.direct.homes
> 
> and /etc/auto.direct.homes could contain:
> /home	oscar:/home
> 
> This way there is only one mount not many and it will always make all
> home directories available on first access.
> 
> Ian

thx a lot! i will try this!

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Automount /home for all the users when a user try to use /home
  2011-05-24  6:32   ` giggzounet
@ 2011-05-30  9:41     ` giggzounet
  0 siblings, 0 replies; 4+ messages in thread
From: giggzounet @ 2011-05-30  9:41 UTC (permalink / raw)
  To: autofs

Le 24/05/2011 08:32, giggzounet a écrit :
> Le 24/05/2011 05:23, Ian Kent a écrit :
>> On Thu, 2011-05-19 at 09:10 +0200, giggzounet wrote:
>>> Hi,
>>>
>>> I'm using autofs for years and on different configurations. It works
>>> great! so thx for your great work.
>>>
>>> But I have a little question/problem:
>>> We have a cluster (with CentOS 5.5). It's a little cluster, so the /home
>>> "is" on the master. And this /home is exported to the nodes. I have
>>> installed autofs in order to automount this /home when a user wants to
>>> use his /home.
>>>
>>> So at the moment the configuration is simple:
>>> cat auto.master
>>> /home   /etc/auto.home
>>>
>>> cat auto.home
>>> *      nfs_oscar:/home/&
>>>
>>>
>>> So when a user comes autofs mounts only the /home for the user.
>>>
>>> So at the moment it works. but I find it not optimal, because when 2
>>> users try to connect from a node I get 2 mounts.
>>>
>>> I would like to get this behaviour:
>>> when a user try to connect to his /home, autofs mount all the export
>>> /home. It is possible ?
>>
>> It might be possible to come up with a method to mount all the keys in a
>> indirect map on first access but that sounds like it would be more
>> difficult than it's worth.
>>
>> Do you really need to mount these separately?
>>
>> Could you use a direct mount map instead?
>> You could do this by using the following:
>>
>> in the master map (possibly /etc/auto.master):
>> /-	/etc/auto.direct.homes
>>
>> and /etc/auto.direct.homes could contain:
>> /home	oscar:/home
>>
>> This way there is only one mount not many and it will always make all
>> home directories available on first access.
>>
>> Ian
> 
> thx a lot! i will try this!

it works out of the box!

Thx a lot

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-05-30  9:41 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-05-19  7:10 Automount /home for all the users when a user try to use /home giggzounet
2011-05-24  3:23 ` Ian Kent
2011-05-24  6:32   ` giggzounet
2011-05-30  9:41     ` giggzounet

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.