Date: Thu, 4 Oct 2001 01:16:46 +0000 (GMT) From: Khyron <khyron@khyron.com> To: <freebsd-questions@freebsd.org> Subject: Manual boot disk mirroring Message-ID: <Pine.BSF.4.33.0110040116270.46709-100000@four.malevolentminds.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.33.0110040116270.46709-100000>