From owner-freebsd-questions Mon Jul 22 18:11:02 1996 Return-Path: owner-questions Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id SAA27000 for questions-outgoing; Mon, 22 Jul 1996 18:11:02 -0700 (PDT) Received: from silvia.HIP.Berkeley.EDU (silvia.HIP.Berkeley.EDU [136.152.64.181]) by freefall.freebsd.org (8.7.5/8.7.3) with ESMTP id SAA26995 for ; Mon, 22 Jul 1996 18:10:59 -0700 (PDT) Received: (from asami@localhost) by silvia.HIP.Berkeley.EDU (8.7.5/8.6.9) id SAA23481; Mon, 22 Jul 1996 18:10:48 -0700 (PDT) Date: Mon, 22 Jul 1996 18:10:48 -0700 (PDT) Message-Id: <199607230110.SAA23481@silvia.HIP.Berkeley.EDU> To: njensen@salsa.habaneros.com CC: questions@freebsd.org In-reply-to: <01BB76EB.AF62CAE0@jalapeno.habaneros.com> (njensen@salsa.habaneros.com) Subject: RE: 2.1.5R and ccd questions From: asami@cs.berkeley.edu (Satoshi Asami) 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! Glad to hear that! * 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 Yes, that should work. Assuming you were in / to begin with, of course. BTW, if you are running this from cron or something, you may not want the "V" flag (that prints out a dot for a file). This only copies new files over so old files won't be deleted. You can also use dd to copy the partition directly. Something like dd if=/dev/rsd0a of=/dev/rsd1a bs=512 should work (you may need to add a "seek=32 skip=32" if it says permission denied or something). This of course will solve the delete old files problem. * 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. Sorry, that lights comment was only halfway serious. You can use "systat -iostat" to see the disk activities without opening up the case. * Thanks again, hopefully this will be the last time I bother you, except * to say "Thanks, it worked!". No problem! Satoshi