Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Feb 1999 08:55:26 -0600 (CST)
From:      Oscar Bonilla <obonilla@fisicc-ufm.edu>
To:        freebsd-questions@FreeBSD.ORG, Russell@AlpineNetworks.com
Subject:   Re: HLP: Disk mirroring w/o any raid device
Message-ID:  <199902191455.IAA02133@voyager.fisicc-ufm.edu>
In-Reply-To: <002f01be5ac9$127a8be0$1e9e10ac@sarwat.syseca-us.com>

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

You'd be better of using dump(8). The new list would be:

1. Go to single user mode
2. Partition the new disk exactly like the current disk
3. For each slice on new disk:
  3.1 mount it in /newslice
  3.2 cd /newslice
  3.3 dumo 0f - <old slice> | restore rf -

I don't know about putting this stuff in a crontab... i've done it to swap
disks and keep the stuff.

regards,

-oscar


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?199902191455.IAA02133>