From owner-freebsd-questions Fri Dec 7 10:48:49 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gamma.root-servers.ch (gamma.root-servers.ch [195.49.62.126]) by hub.freebsd.org (Postfix) with SMTP id 74EEA37B405 for ; Fri, 7 Dec 2001 10:48:41 -0800 (PST) Received: (qmail 94274 invoked from network); 7 Dec 2001 18:48:39 -0000 Received: from dclient217-162-128-224.hispeed.ch (HELO athlon550) (217.162.128.224) by 0 with SMTP; 7 Dec 2001 18:48:39 -0000 Date: Fri, 7 Dec 2001 19:49:17 +0100 From: Gabriel Ambuehl X-Mailer: The Bat! (v1.53bis) Educational Organization: BUZ Internet Services X-Priority: 3 (Normal) Message-ID: <12281195928.20011207194917@buz.ch> To: questions@freebsd.org Subject: What happens on a system with LOTs of mount points (say >1500)? MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG -----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