From owner-freebsd-questions Tue Jun 18 21:57: 2 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mail.npubs.com (npubs.com [207.111.208.224]) by hub.freebsd.org (Postfix) with ESMTP id E02CC37B40C for ; Tue, 18 Jun 2002 21:56:57 -0700 (PDT) Received: 8.12.2-(Neptune) From: "Nielsen" To: "Patrick Thomas" , References: <20020618180409.N68572-100000@utility.clubscholarship.com> Subject: Re: parallelizing fsck and startup scripts for jail MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-Id: <20020619045657.E02CC37B40C@hub.freebsd.org> Date: Tue, 18 Jun 2002 21:56:57 -0700 (PDT) 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 I've started jails in parallel and I'd imagine (although I could be wrong) you could do the same for fsck on different devices. I use a jailer program ( http://memberwebs.com/nielsen/jails/ ) to manage the jails. Among other things it saves the console output from the jail startup so the last reason for starting them in serial is taken away. Cheers Nate ----- Original Message ----- From: "Patrick Thomas" To: Sent: Tuesday, June 18, 2002 19:13 Subject: parallelizing fsck and startup scripts for jail > > Hello, > > I have a server with 12 vn-backed filesystems and 12 jails to start. The > problem is, when the server crashes, even though the machine is only down > for 10 minutes, it takes about 10 minutes to fsck all 12 vn-backed > filesystems. > > Then, adding insult to injury, once in a while one of the jails takes a > few minutes to start instead of just a few seconds. Maybe sendmail hangs > for a bit when it starts, or a startup script is bad and something times > out...anyway, I want to accomplish two things: > > 1. parallelize the fsck'ing at boot - I want all 12 fscks to happen at one > time - I start the fscks out of a script in /usr/local/etc/rc.d - now I > could have 12 scripts, but that doesn't solve the problem because they > still run in order. Is it possible to solve this by backgrounding the > fsck -y process, or will they still run in serial ? > > 2. after fsck is finished and we move on to jail startup, I want that to > be parallel as well - all 12 start at the same time. Again, not sure how > to do this since the /usr/local/etc/rc.d mechanism is a serial one - they > run in order of the commands in the scripts, and the scripts run in > alphabetical order. > > Suggestions appreciated. > > PT > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message