Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 7 Dec 2001 19:49:17 +0100
From:      Gabriel Ambuehl <gabriel_ambuehl@buz.ch>
To:        questions@freebsd.org
Subject:   What happens on a system with LOTs of mount points (say >1500)?
Message-ID:  <12281195928.20011207194917@buz.ch>

next in thread | raw e-mail | index | archive | help
-----BEGIN PGP SIGNED MESSAGE-----

Hello,
I'm wondering how FreeBSD would behave if I did the following for eac
of about 400 directories (domains) per server:


cd /home/web/user_dom/
mkdir bin
mkdir sbin
mkdir etc
mkdir usr
mkdir temp
mount_null -o rdonly /bin bin
mount_null -o rdonly /sbin sbin
mount_null -o rdonly /etc etc
mount_null -o rdonly /usr usr

i.e. have about 1600 mount points on a single machine. The purpose of
the exercise is to create chroot() environments that get updated
automatically when the base system is updated...

#!/usr/bin/perl
$counter=0;
while($counter<500)
{

print counter;
 $counter++;
 system("mkdir $counter");
 system("mkdir $counter/usr");
 system("mkdir $counter/etc");
 system("mkdir $counter/bin");
 system("mkdir $counter/sbin");



 system("mount_null -o rdonly /usr $counter/usr");
 system("mount_null -o rdonly /sbin $counter/sbin");
 system("mount_null -o rdonly /bin $counter/bin");
 system("mount_null -o rdonly /etc $counter/etc");

  }

will happily create a test environment, afterwards
$ mount
of course looks pretty crowded, but what other things do I need to
consider? Has any one got any experience with this kind of stuff?




TIA & best regards,
 Gabriel
J

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5i

iQEVAwUBPBEBIMZa2WpymlDxAQHLgwf9HP/Sgi22e8IMG6gajVqODv035EaMCz/o
gN5ds2UYYAaG9elRbhJbu6/tt1+NEbg3c2Cszys7BBBkSxfPbrrzJI14jT7tWlRH
yMV824KjSE0aoUEzse/Q3pZSoOKZU++sCqzbImtiBSAOE/zVNR8XpzASuitNJmwp
mGAOpAIEDZcV2txcISaR8uKrZmpm3wP1k+ywCMVnNJDDggBdEE1WviI9TM9OJR+1
xVaGFQOQe8V6kFhzHylEoCFXhkF/WyNnrcp8oBuh26zqa8iXrDzHsJGb8ZO7VLK6
fXQlwPqCA6OvD8n6Ebp9P+/xaUup456qiF65ZHVn6D/7LI2gEtWm8A==
=iQev
-----END PGP SIGNATURE-----


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?12281195928.20011207194917>