Date: Sun, 21 Jul 1996 10:02:08 -0700 From: "Neil C. Jensen" <njensen@salsa.habaneros.com> To: "'Satoshi Asami'" <asami@cs.berkeley.edu> Cc: "'questions@freebsd.org'" <questions@freebsd.org> Subject: RE: 2.1.5R and ccd questions Message-ID: <01BB76EB.AF62CAE0@jalapeno.habaneros.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?01BB76EB.AF62CAE0>