From owner-freebsd-questions Fri Feb 19 6:51:13 1999 Delivered-To: freebsd-questions@freebsd.org Received: from voyager.fisicc-ufm.edu (pm5b-s0.guate.net [200.12.60.224]) by hub.freebsd.org (Postfix) with ESMTP id C639711289 for ; Fri, 19 Feb 1999 06:51:00 -0800 (PST) (envelope-from obonilla@voyager.fisicc-ufm.edu) Received: (from obonilla@localhost) by voyager.fisicc-ufm.edu (8.8.8/8.8.8) id IAA02133; Fri, 19 Feb 1999 08:55:26 -0600 (CST) (envelope-from obonilla) Date: Fri, 19 Feb 1999 08:55:26 -0600 (CST) From: Oscar Bonilla Message-Id: <199902191455.IAA02133@voyager.fisicc-ufm.edu> To: freebsd-questions@FreeBSD.ORG, Russell@AlpineNetworks.com Subject: Re: HLP: Disk mirroring w/o any raid device In-Reply-To: <002f01be5ac9$127a8be0$1e9e10ac@sarwat.syseca-us.com> Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > 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 - | 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