From owner-freebsd-questions@FreeBSD.ORG Mon Jan 24 20:25:01 2005 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5BE0E16A4CE for ; Mon, 24 Jan 2005 20:25:01 +0000 (GMT) Received: from shiva.nextrials.com (shiva.nextrials.com [64.81.74.145]) by mx1.FreeBSD.org (Postfix) with ESMTP id 379CF43D2F for ; Mon, 24 Jan 2005 20:25:01 +0000 (GMT) (envelope-from dannyman@toldme.com) Received: from [192.168.1.102] (mito.sr.nextrials.com [192.168.1.102]) by shiva.nextrials.com (Postfix) with ESMTP id ED1DD3C2829; Mon, 24 Jan 2005 12:25:00 -0800 (PST) Message-ID: <41F5593C.2030702@toldme.com> Date: Mon, 24 Jan 2005 12:23:24 -0800 From: Danny Howard User-Agent: Mozilla Thunderbird 1.0 (X11/20041209) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Danny Howard References: <41F556F2.4020503@toldme.com> In-Reply-To: <41F556F2.4020503@toldme.com> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 8bit cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD HOWTO: Software Mirror System Disk X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Jan 2005 20:25:01 -0000 Danny Howard wrote: > As the documentation is a bit sketchy, here’s a quick cheat sheet for > setting this up with gmirror: > (This crib sheet assumes you have a pair of identical IDE (in my case, > SATA) drives identified as ad4 and ad6.) Let me apologize for Thunderbird formatting my mail goofy. (I only use it for mailing lists, silly vim weenie.) Here's a little clean-up: 1. Install FreeBSD on to ad4. 2. Reboot with the Install CD. 3. Enter Fixit mode, using Install CD disc2 as the “live filesystem” 4. # chroot /dist # mount_devfs devfs /dev # gmirror label -v -b round-robin gm0 /dev/ad4 # gmirror insert gm0 /dev/ad6 # mount /dev/mirror/gm0s1a /mnt # echo ‘geom_mirror_load="YES"‘ >> /mnt/boot/loader.conf # echo ’swapoff="YES"‘ >> /mnt/etc/rc.conf 5. Edit /mnt/etc/fstab to convert ad4 -> mirror/gm0 6. Reboot -danny