From owner-freebsd-questions Sun Jul 21 10:07:07 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id KAA16392 for questions-outgoing; Sun, 21 Jul 1996 10:07:07 -0700 (PDT) Received: from salsa.habaneros.com ([207.34.140.99]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id KAA16387 for ; Sun, 21 Jul 1996 10:07:05 -0700 (PDT) Received: from jalapeno.habaneros.com (jalapeno.habaneros.com [207.34.140.98]) by salsa.habaneros.com (8.6.12/8.6.12) with SMTP id JAA02444; Sun, 21 Jul 1996 09:53:18 -0700 Received: by jalapeno.habaneros.com with Microsoft Mail id <01BB76EB.AF62CAE0@jalapeno.habaneros.com>; Sun, 21 Jul 1996 10:02:11 -0700 Message-ID: <01BB76EB.AF62CAE0@jalapeno.habaneros.com> From: "Neil C. Jensen" To: "'Satoshi Asami'" Cc: "'questions@freebsd.org'" Subject: RE: 2.1.5R and ccd questions Date: Sun, 21 Jul 1996 10:02:08 -0700 Encoding: 63 TEXT Sender: owner-questions@freebsd.org X-Loop: FreeBSD.org Precedence: bulk Thanks again, your suggestion below worked - in fact, the rest of the process went smoothly and I have (or least I think I have) disk mirroring working! A few remaining small :) questions: 1. I understand what is required to boot from sd1 as opposed to sd0, but I am having trouble copying the root parition on sd0 to sd1. This is because I think cpio copies to files or directories, not partitions? Is it acceptable to do: mkdir /mnt/tmp mount -o async /dev/sd1a /mnt/tmp find -x . | cpio -pmV /mnt/tmp 2. Is there a way to see if the mirroring is working? I cannot check my hard drive lights because they are not visible. How can I see if the writes are indeed going to both disks? I will do a full test of booting with sd0 disabled, but I would like another quick method to check that mirroring is ok. Thanks again, hopefully this will be the last time I bother you, except to say "Thanks, it worked!". Neil ---------- From: Satoshi Asami[SMTP:asami@cs.berkeley.edu] Sent: Saturday, July 20, 1996 6:14 PM To: njensen@salsa.habaneros.com Cc: njensen@salsa.habaneros.com; questions@freebsd.org Subject: RE: 2.1.5R and ccd questions * 1 . I've been attempting to get disk mirroring working * following the directions below. I can make it to the point * where I create the 1-disk ccd, however, I have troubles * disklabeling it. When I attempt "disklabel -w -r ccd0 auto" * I get back "disklabel: open(): No such file or directory". * The man pages for disklabel mention that there may be * problems with this, but do not give any solutions. Does * anyone know how to make this work so I can label ccd0? * * BTW, I tried going ahead anyway and editiing the disklabel * using "disklabel -e ccd", but this created errors if I just * tried to label the e & f partitions. The man pages stated that * some drivers only would work with "a" paritions for unlabeled * disks and I tried that as well without success. Aw shucks. I haven't tried the "auto" myself, didn't know that doesn't work with ccd. Yes, it seems like you can't edit the ccd disklabel (with disklabel -e) without writing one first. (The output you get by just calling disklabel on ccd0 is a "fake" one and you can't edit that.) Just save the output of "disklabel ccd0" in a file, write *some* label (e.g., "disklabel -wr ccd0 fuji513", look at /etc/disktab for entries), and then use "disklabel -e ccd0" and save the result back. You can then modify it. Satoshi