Date: Tue, 18 Jun 2002 21:56:57 -0700 (PDT) From: "Nielsen" <nielsen@memberwebs.com> To: "Patrick Thomas" <root@utility.clubscholarship.com>, <freebsd-questions@freebsd.org> Subject: Re: parallelizing fsck and startup scripts for jail Message-ID: <20020619045657.E02CC37B40C@hub.freebsd.org> References: <20020618180409.N68572-100000@utility.clubscholarship.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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" <root@utility.clubscholarship.com> To: <freebsd-questions@freebsd.org> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020619045657.E02CC37B40C>