Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Sep 1999 10:10:10 -0400 (EDT)
From:      Andriss <andriss@andriss.com>
To:        questions@freebsd.org
Subject:   SCSI drive mirroring question
Message-ID:  <Pine.BSF.4.10.9909130959480.24894-100000@netmint.com>

next in thread | raw e-mail | index | archive | help
-----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...)

<snip>

#!/bin/sh

#device copying the drives
/bin/cp /dev/rda0 /dev/rda1

<snip>

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 <andriss@andriss.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.10.9909130959480.24894-100000>