From owner-freebsd-questions Sun Feb 22 14:19:08 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id OAA26290 for freebsd-questions-outgoing; Sun, 22 Feb 1998 14:19:08 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id OAA26276 for ; Sun, 22 Feb 1998 14:19:00 -0800 (PST) (envelope-from grog@lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.8.7/8.8.5) with ESMTP id IAA07331; Mon, 23 Feb 1998 08:48:51 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.8.8/8.8.7) id IAA29928; Mon, 23 Feb 1998 08:48:50 +1030 (CST) (envelope-from grog) Message-ID: <19980223084850.45183@freebie.lemis.com> Date: Mon, 23 Feb 1998 08:48:50 +1030 From: Greg Lehey To: Jan Koum , FreeBSD Questions Subject: Re: How can I mirror a FreeBSD hard drive? References: <19980222183356.17059@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.89i In-Reply-To: ; from Jan Koum on Sun, Feb 22, 1998 at 12:09:13AM -0800 WWW-Home-Page: http://www.lemis.com/~grog Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 22 February 1998 at 0:09:13 -0800, Jan Koum wrote: > On Sun, 22 Feb 1998, Greg Lehey wrote: > >> On Sun, 22 February 1998 at 0:01:03 -0800, Jan Koum wrote: >>> On Thu, 19 Feb 1998, Greg Lehey wrote: >>> >>>> On Wed, 18 February 1998 at 20:51:15 -0500, Brad wrote: >>>>> >>>>> To Whom It May Concern, >>>>> >>>>> I have a full, working, beautiful install of FreeBSD. It is now time for >>>>> it to go on the Internet. However, there is one thing that I still would >>>>> like to do. This machine has 2 hard drives in it. The first drive is the >>>>> whole FreeBSD install. The second drive is totally unused. I would like >>>>> to mirror the FreeBSD drive to the unused drive so that in the event of a >>>>> crash, I can just switch the jumpers and the backup drive becomes the >>>>> master, bootable FreeBSD drive and things carry on as normal. >>>> >>>> Well, the only way you can currently do this is with the ccd driver. >>>> It's not as simple as it sounds, though: >>>> >>>> 1. You can't mirror the root file system. >>>> 2. If one of your drives goes down, you need to reboot and >>>> reconfigure to use the other one. >>> >>> Could you use 'dd' though? >> >> You wouldn't need to. The data's there, but CCD is too stupid to come >> up if one of its components is down, so you have to remove that >> component from the config. This bug could be fixed, of course, but >> there are plenty more like it, and I've got better things to do. > > No, what I mean is, can I just use dd? For example, I have two > scsi drive, and I would just 'dd if=/dev/sd0 of=/dev/sd1 bs=8192' every > week or so. Then if my sd0 dies, I should have no problem to use sd1? Just > would have to change adaptec's boot device to the new scsi disk. Or is it > more complicated than I think? (like, where kernel/boot/etc would look?) The disk driver includes some safety measures which make it difficult to write a complete disk. I believe there is a way, but I never got it to work. Anyway, there's no need. There are plenty of utilities (tar, cp) which will replicate file systems on a different file system. Greg To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message