Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 17 Feb 1999 14:58:45 -0800
From:      "Russell H" <Russell@AlpineNetworks.com>
To:        <freebsd-questions@freebsd.org>
Subject:   HLP: Disk mirroring w/o any raid device
Message-ID:  <002f01be5ac9$127a8be0$1e9e10ac@sarwat.syseca-us.com>

next in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.

------=_NextPart_000_002C_01BE5A86.04468300
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi guys,

I have a question regarding disk-image/disk-mirroring under =
FreeBSD-2.2.6. I would like to make an exact image of the root =
filesystem disk onto another disk, such that in case of a disk faliure I =
simply boot from the mirrored disk without having to do any =
reconfiguring or restoring etc.

Will the following work:

    1..  Go to single user mode.
    2..  Partition the new disk exactly like the current disk
    3..  Mount the new disk at /newdisk
    4..  cd /
    5..  find . -xdev -print | cpio -pdmuv /newdisk
    6.. cd /newdisk
    7.. mkdir /proc
    8.. run crontab to update the modified files (how ?)
If correct, now do the disks have to be exactly the same ? For example =
if the primary disk is 2.1GB SCSI and the secondary disk is 4.3GB EIDE =
would it matter ?!?!

Is there a better/efficient way of doing it, besides installing any Raid =
device. Am I missing something ?

Thanks for your help. BTW we are running FreeBSD-2.2.6 on 4 machines so =
far and are very happy! Great job!!

Best regards,

---
Russell H
Technology Director - Alpine Networks
http://www.AlpineNetworks.com/
"Making Internetworking possible for you"


------=_NextPart_000_002C_01BE5A86.04468300
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.2106.6"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Hi guys,</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>I have a question regarding =
disk-image/disk-mirroring under=20
FreeBSD-2.2.6. I would like to make an exact image of the root =
filesystem disk=20
onto another disk, such that in case of a disk faliure I simply boot =
from the=20
mirrored disk without having to do any reconfiguring or restoring=20
etc.</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Will the following work:</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<OL>
    <LI><FONT size=3D2></FONT><FONT color=3D#000000 size=3D2>&nbsp;Go to =
single user=20
    mode.</FONT></LI>
    <LI><FONT size=3D2>&nbsp;Partition the new disk exactly like the =
current=20
    disk</FONT></LI>
    <LI><FONT color=3D#000000 size=3D2>&nbsp;Mount the new disk at=20
    /newdisk</FONT></LI>
    <LI><FONT size=3D2>&nbsp;cd /</FONT></LI>
    <LI><FONT size=3D2>&nbsp;find . -xdev -print | cpio -pdmuv=20
/newdisk</FONT></LI>
    <LI><FONT size=3D2>cd /newdisk</FONT></LI>
    <LI><FONT size=3D2>mkdir /proc</FONT></LI>
    <LI><FONT size=3D2>run crontab to update the modified files (how=20
?)</FONT></LI></OL>
<DIV><FONT color=3D#000000 size=3D2>If correct, now do the disks have to =
be exactly=20
the same ? For example if the primary disk is 2.1GB SCSI and the =
secondary disk=20
is 4.3GB EIDE would it matter ?!?!</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Is there a better/efficient way of =
doing it,=20
besides installing any Raid device. Am I missing something =
?</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=3D2>Thanks for your help. BTW we are running =
FreeBSD-2.2.6 on 4=20
machines so far and are very happy! Great job!!</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Best regards,</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>---<BR>Russell H<BR>Technology =
Director - Alpine=20
Networks<BR><A=20
href=3D"http://www.AlpineNetworks.com/">http://www.AlpineNetworks.com/</A=
><BR>&quot;Making=20
Internetworking possible for you&quot;<BR></FONT></DIV></BODY></HTML>

------=_NextPart_000_002C_01BE5A86.04468300--



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?002f01be5ac9$127a8be0$1e9e10ac>