From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] (no subject) From: Fco.J.Ballesteros MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-znsnjlhcgoiojuoyvlymzevoxb" Message-Id: <20010904130843.027A419A38@mail.cse.psu.edu> Date: Tue, 4 Sep 2001 15:30:36 +0200 Topicbox-Message-UUID: e8d71c7e-eac9-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-znsnjlhcgoiojuoyvlymzevoxb Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit That's cool. BTW, I'm just wondering... Would a system crash while doing a (mirrowed) dump corrupt both disks at the same time? While I was trying to use a couple of ide disks to survive disk crashes, I thought it would be better not to use a real mirror because a crash at a bad moment could perhaps leave the cached worm unusable. (I had a crash while doing a dump on a cached worm and the cached worm became unusable). Am I missing something? A recover procedure I don't know of? Or perhaps some code in the mirror device tries to deal with that? Another question I have is can you rebuild your mirror device just by raw copying of one disk into another? --upas-znsnjlhcgoiojuoyvlymzevoxb Content-Type: message/rfc822 Content-Disposition: inline Return-Path: <9fans-admin@cse.psu.edu> Received: from mail.cse.psu.edu (postfix@psuvax1.cse.psu.edu [130.203.4.6]) by gsyc.escet.urjc.es (8.9.3/8.9.3/Debian 8.9.3-21) with ESMTP id OAA02460; Tue, 4 Sep 2001 14:09:25 +0200 X-Authentication-Warning: gsyc.escet.urjc.es: Host postfix@psuvax1.cse.psu.edu [130.203.4.6] claimed to be mail.cse.psu.edu Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.8.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id B95F919A35; Tue, 4 Sep 2001 08:09:05 -0400 (EDT) Received: from collyer.net (adsl-66-120-90-189.dsl.snfc21.pacbell.net [66.120.90.189]) by mail.cse.psu.edu (CSE Mail Server) with SMTP id 2D1C7199E3 for <9fans@cse.psu.edu>; Tue, 4 Sep 2001 08:08:40 -0400 (EDT) From: geoff@collyer.net To: 9fans@collyer.net MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010904120840.2D1C7199E3@mail.cse.psu.edu> Subject: [9fans] (no subject) Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.6 Precedence: bulk Reply-To: 9fans@cse.psu.edu List-Id: Fans of the OS Plan 9 from Bell Labs <9fans.cse.psu.edu> List-Archive: Date: Tue, 4 Sep 2001 05:08:33 -0700 I've fixed some bugs in the IDE file server (some latent, some new in the IDE code) and added a mirroring device. I've tested it, it works and later today it will be my main file server. The mirroring device is really very little code; the file server's elegant design is largely responsible for this. Doing a dump of 457121 4K blocks from a cache device on h0 to a fake worm also on h0, mirrored on h1.0.0 (a.k.a. h2) took 73 minutes, so I got 25,648,871 bytes per minute throughput. I verified that the copy on h1.0.0 was correct. Here's my configuration: config h0 service fs [ uninteresting ip configuration omitted ] filsys main cp(h0)0.25f{p(h0)25.75p(h1.0.0)25.75} filsys dump o filsys other p(h1.0.0)0.25 ream other ream main end {} is the mirror device, analogous to () and []. The first device inside {} is the master, any others are mirrors. The code can be found at www.collyer.net/~geoff/9/. I'll add some commentary on the changes later today. They fall into several categories: - fixes to latent bugs. - addition of some missing switch cases for Devfworm, Devnone and Devide. the file server could really use a device switch (rather than a lot of switch statements scattered throughout the code). in particular, device configuration strings are now printed better. - additional paranoia in the IDE code; specifying a non-existent drive no longer causes a kernel page fault. - converted nemo's style back to the original style, and some tidying up. - probably vestigial paranoia traceable to hunting down the fpinit bug. - local configuration (e.g., timezone). you'll want to crank MAXMEG up. - addition of the mirror device. --upas-znsnjlhcgoiojuoyvlymzevoxb--