From owner-freebsd-questions Wed Oct 3 18:16:50 2001 Delivered-To: freebsd-questions@freebsd.org Received: from four.malevolentminds.com (four.malevolentminds.com [216.177.76.238]) by hub.freebsd.org (Postfix) with ESMTP id EF43D37B409 for ; Wed, 3 Oct 2001 18:16:43 -0700 (PDT) Received: from localhost (khyron@localhost) by four.malevolentminds.com (8.11.6/8.11.6) with ESMTP id f941Gkl47236 for ; Thu, 4 Oct 2001 01:16:46 GMT Date: Thu, 4 Oct 2001 01:16:46 +0000 (GMT) From: Khyron X-X-Sender: To: Subject: Manual boot disk mirroring Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Hello. I have a system running 4.2-RELEASE with identical 20 GB HDs installed as /dev/ad0 and /dev/ad2. I want to mirror /dev/ad0 (the boot drive) to /dev/ad2 using a script I borrowed & modified. The last piece I am unsure of the order in which to perform the disklabel and fdisk commands to install new boot code. Before mounting/dumping/restoring, I wanted to do something like this: # Setup new boot information # Install MBR code - boot0 /sbin/fdisk -B -b /boot/boot0 ad2 # Install boot1 and boot2 /sbin/disklabel -B /dev/ad2s1 Currently, /dev/ad2 is already labelled and actually has 2 Vinum slices on it. Is this the correct order for issuing these commands, and if not, in which order should they be applied? As well, is there anything else I need to know about the FreeBSD boot process besides what is documented at http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/boot-blocks.html that I should know about before attempting this? The idea is that once the script runs, I will have a completely mirrored, bootable copy of /dev/ad0 on /dev/ad2 (excluding minor modification to /etc/fstab). Is there anything I need to do to make sure Vinum sees the correct slices if the system boots from /dev/ad2? (I would think this would be abstracted by Vinum, but who knows.) //////////////////////////////////////////////////////////////////// Khyron mailto:khyron@khyron.com "Drama free in 2001!" \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message