From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <01eb95d1b74c640de263ed1bfb9e5e71@plan9.escet.urjc.es> To: 9fans@cse.psu.edu Subject: Re: [9fans] now for something completely devfs :) From: Fco.J.Ballesteros From: nemo@plan9.escet.urjc.es In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="upas-myghkvgtejtlhhoexqybtmqxwv" Date: Wed, 9 Jul 2003 19:06:10 +0200 Topicbox-Message-UUID: f01db374-eacb-11e9-9e20-41e7f4b1d025 This is a multi-part message in MIME format. --upas-myghkvgtejtlhhoexqybtmqxwv Content-Disposition: inline Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit I did setup the mirror before formatting venti/fossil partitions. Otherwise, you'd need to copy one disk to another while the partitions are idle. Let's say you have /dev/fs/mirror out of /dev/sdC0/part and /dev/sdC1/part If you add /dev/sdD0/part you could dd from either /dev/fs/mirror or from /dev/sdC[01]/part to /dev/sdD0/part. You should also add the device to devfs. I can help somehow, let me know. --upas-myghkvgtejtlhhoexqybtmqxwv Content-Type: message/rfc822 Content-Disposition: inline Received: from mail.cse.psu.edu ([130.203.4.6]) by aquamar; Wed Jul 9 17:43:27 MDT 2003 Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 8854219B60; Wed, 9 Jul 2003 11:43:16 -0400 (EDT) Received: from psuvax1.cse.psu.edu (psuvax1.cse.psu.edu [130.203.4.6]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 5021319B5F; Wed, 9 Jul 2003 11:43:12 -0400 (EDT) X-Original-To: 9fans@cse.psu.edu Delivered-To: 9fans@cse.psu.edu Received: by mail.cse.psu.edu (CSE Mail Server, from userid 60001) id 57FB119B5F; Wed, 9 Jul 2003 11:42:09 -0400 (EDT) Received: from fbsd.cpsc.ucalgary.ca (fbsd.cpsc.ucalgary.ca [136.159.7.68]) by mail.cse.psu.edu (CSE Mail Server) with ESMTP id 5AA2319B53 for <9fans@cse.psu.edu>; Wed, 9 Jul 2003 11:42:08 -0400 (EDT) Received: from fbsd.cpsc.ucalgary.ca (localhost.localdomain [127.0.0.1]) by fbsd.cpsc.ucalgary.ca (8.12.8/8.12.8) with ESMTP id h69Fg2eH008270 for <9fans@cse.psu.edu>; Wed, 9 Jul 2003 09:42:02 -0600 Received: from localhost (mirtchov@localhost) by fbsd.cpsc.ucalgary.ca (8.12.8/8.12.8/Submit) with ESMTP id h69Fg2JM008266 for <9fans@cse.psu.edu>; Wed, 9 Jul 2003 09:42:02 -0600 X-Authentication-Warning: fbsd.cpsc.ucalgary.ca: mirtchov owned process doing -bs From: andrey mirtchovski To: 9fans@cse.psu.edu Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: [9fans] now for something completely devfs :) Sender: 9fans-admin@cse.psu.edu Errors-To: 9fans-admin@cse.psu.edu X-BeenThere: 9fans@cse.psu.edu X-Mailman-Version: 2.0.11 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: Wed, 9 Jul 2003 09:42:02 -0600 (MDT) X-Spam-Status: No, hits=-0.4 required=5.0 tests=USER_AGENT_PINE,X_AUTH_WARNING version=2.55 X-Spam-Level: X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) Now I have a venti, I'm keeping score, emailing it to myself every morning (thanx to nemo's suggestions!) and am ready to embark on something that'll break the machine completely! I decide to create a devfs mirror. The fossil installation page on the wiki gives some instructions, but the main part is missing -- how to write the first disk to the second one? In the hardware RAID world, there are utilities provided for copying a hard drive 'en masse' to others to create the mirror. With devfs I'm supposed to do it myself. But what do I copy? The entire drive (dd -if /dev/sdC0/data -of /dev/sdD0/data)? Partition by partition? The wiki says: If you already have a fossil and want to add another disk to mirror it, you can setup the mirror as said before, start your fossil and while you are using it, use dd(1) to copy the first device to the new one. Since writes go to all devices but reads are performed just by the first device as long as it works it can be done this way. but what does 'other one' mean here? am I supposed to do something like: dd -if /dev/sdC0/isect -of /dev/fs/isect ? (ok, I try that -- I echo a file to sdD0's isect, run the command, it takes much longer than normal, completes, I run cmp on the two drives -- they're not the same.) Another thing: I should *not*, repeat *not* mirror 9fat with devfs, right? Because if I do the machine becomes unbootable. MBR... shows up, but 9load is nowhere to be found. also: how do I know if one of my /dev/fs/ mirrored disks has crashed? I mean, without rebooting :) andrey --upas-myghkvgtejtlhhoexqybtmqxwv--