From owner-freebsd-questions@freebsd.org Tue Jan 31 22:01:34 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id F21ACCCA98E for ; Tue, 31 Jan 2017 22:01:34 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (wonkity.com [67.158.26.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "wonkity.com", Issuer "wonkity.com" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id C479BA19 for ; Tue, 31 Jan 2017 22:01:34 +0000 (UTC) (envelope-from wblock@wonkity.com) Received: from wonkity.com (localhost [127.0.0.1]) by wonkity.com (8.15.2/8.15.2) with ESMTPS id v0VM1XYc058955 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 31 Jan 2017 15:01:33 -0700 (MST) (envelope-from wblock@wonkity.com) Received: from localhost (wblock@localhost) by wonkity.com (8.15.2/8.15.2/Submit) with ESMTP id v0VM1XDu058952; Tue, 31 Jan 2017 15:01:33 -0700 (MST) (envelope-from wblock@wonkity.com) Date: Tue, 31 Jan 2017 15:01:33 -0700 (MST) From: Warren Block To: Sergey Matveychuk cc: freebsd-questions@freebsd.org Subject: Re: boot from second disk In-Reply-To: <64cd6b60-f5e7-872c-b006-99db639d3e1b@yandex-team.ru> Message-ID: References: <64cd6b60-f5e7-872c-b006-99db639d3e1b@yandex-team.ru> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.6.2 (wonkity.com [127.0.0.1]); Tue, 31 Jan 2017 15:01:33 -0700 (MST) X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 31 Jan 2017 22:01:35 -0000 On Tue, 31 Jan 2017, Sergey Matveychuk wrote: > I set up FreeBSD 11.0 on first disk and next I added second disk and I want > to do a mirror remotely. > I followed instructions on > https://www.freebsd.org/doc/handbook/geom-mirror.html > With one difference: I use GPT partitions gmirror(8) is incompatible with GPT. Both put their metadata at the end of a disk. There are ugly ways of mirroring partitions, but it is not worth it. Unless the disks are larger than 2TB, create an MBR/disklabel layout as shown in the Handbook. If the disks are larger than 2TB, use a ZFS mirror. If the first disk has been set up correctly with bootcode, that will all be mirrored to the second disk when the mirror is created. So the system will be able to boot from either disk.