From owner-freebsd-questions Mon Sep 13 7:10:35 1999 Delivered-To: freebsd-questions@freebsd.org Received: from netmint.com (netmint.com [207.106.21.130]) by hub.freebsd.org (Postfix) with ESMTP id 2ADF314D43 for ; Mon, 13 Sep 1999 07:10:21 -0700 (PDT) (envelope-from andriss@andriss.com) Received: from localhost (andriss@localhost) by netmint.com (8.9.3/8.9.3) with ESMTP id KAA24946 for ; Mon, 13 Sep 1999 10:10:15 -0400 (EDT) Date: Mon, 13 Sep 1999 10:10:10 -0400 (EDT) From: Andriss X-Sender: andriss@netmint.com To: questions@freebsd.org Subject: SCSI drive mirroring question Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG -----BEGIN PGP SIGNED MESSAGE----- Hello, I have two identical UltraStar 18es drives from IBM, and I am planning to mount the second drive on the SCSI bus of the FreeBSD 3.2 box and use it to make nightly mirror copies of the first one. I know a few ways to do this, but obviously it has to be done at night, and without downtime for the box. It sounds easy: I need to make a script, and put it into crontab for like 4am or so. (in the example below, I am assuming that the first drive is da0 and the second drive is da1...) #!/bin/sh #device copying the drives /bin/cp /dev/rda0 /dev/rda1 Is that the right way to do this? What I want to get is a complete mirror copy. I need to make sure that the boot info is getting copied, and the filesystem slices are getting copied right.. In other words, if the first drive fails, I want to be able to simply take it out, switch the SCSI id of the second drive, boot the box and be ready to go... Any comments would be greatly appreciated. Andriss - -- ______________________________________________________________ Andrey Kholodenko http://www.andriss.com Download My Public PGP Key From http://www.andriss.com/pgp.txt ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -----BEGIN PGP SIGNATURE----- Version: 2.6.3a Charset: noconv iQCVAwUBN90FxyQe9jf/ODl9AQHvpwP9Eru9qHU06EaYoJX7q5TNMjHtCfW/wLQS m2KnvyJcUtgIl1kUrNZ85BZYqWwg+jBekex2dHOB51Q2DB1nYGXEWnAqEu/9GZH3 CzQ0rrMvC/K3ehijaqXK7xMFzdKic+vo+x9DUwgoK944J3UiMi61P7Ktb/JAkkTA x+dpxuZ7Dnk= =Lzes -----END PGP SIGNATURE----- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message