From owner-freebsd-questions@FreeBSD.ORG Thu Jul 12 14:53:11 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1D0081065670 for ; Thu, 12 Jul 2012 14:53:11 +0000 (UTC) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from wojtek.tensor.gdynia.pl (wojtek.tensor.gdynia.pl [89.206.35.99]) by mx1.freebsd.org (Postfix) with ESMTP id 756DE8FC0C for ; Thu, 12 Jul 2012 14:53:10 +0000 (UTC) Received: from wojtek.tensor.gdynia.pl (localhost [127.0.0.1]) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5) with ESMTP id q6CEr4Kb002252; Thu, 12 Jul 2012 16:53:04 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Received: from localhost (wojtek@localhost) by wojtek.tensor.gdynia.pl (8.14.5/8.14.5/Submit) with ESMTP id q6CEr4Ae002249; Thu, 12 Jul 2012 16:53:04 +0200 (CEST) (envelope-from wojtek@wojtek.tensor.gdynia.pl) Date: Thu, 12 Jul 2012 16:53:04 +0200 (CEST) From: Wojciech Puchar To: Warren Block In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.2.7 (wojtek.tensor.gdynia.pl [127.0.0.1]); Thu, 12 Jul 2012 16:53:04 +0200 (CEST) Cc: Kaya Saman , miles kuo , freebsd-questions@freebsd.org Subject: Re: How to mirror the FreeBSD OS on two disks X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jul 2012 14:53:11 -0000 >> >> I am no expert at this however a quick Google search comes up with: >> >> http://www.freebsd.org/doc/handbook/geom-mirror.html > > The procedure shown there produces a mirror that will not boot on FreeBSD 9. no idea but my procedure certainly would work if you use installer 1) install to first disk 2) gmirror label system /dev/seconddisk 3) bsdlabel -w /dev/mirror/system 4) bsdlabel -e /dev/mirror/system - make partitions as required. 5) bsdlabel -B /dev/mirror/system 6) newfs all created partitions (/dev/mirror/systema etc...) 7) add vfs.root.mountfrom="ufs:mirror/systema" to loader.conf edit /etc/fstab and change all things to new places 8) mount and copy files using tar or dump/restore to new place 9) reboot. system will start from gmirror 10) gmirror insert system /dev/firstdisk all done. if installer is not used but bootable media with complete system, just create gmirror then as usual.