From owner-freebsd-questions@FreeBSD.ORG Mon Jul 15 17:04:43 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 010F96E2 for ; Mon, 15 Jul 2013 17:04:42 +0000 (UTC) (envelope-from sdb@ssr.com) Received: from mailhost.ssr.com (mailhost.ssr.com [199.4.235.5]) by mx1.freebsd.org (Postfix) with SMTP id AED03B67 for ; Mon, 15 Jul 2013 17:04:42 +0000 (UTC) Received: (qmail 59875 invoked from network); 15 Jul 2013 17:46:24 -0000 Received: from pool-71-167-229-123.nycmny.east.verizon.net (HELO irelay.ssr.com) (sdb@71.167.229.123) by 199.4.235.5 with SMTP; 15 Jul 2013 17:46:24 -0000 Received: (qmail 2572 invoked by uid 103); 15 Jul 2013 16:23:26 -0000 Date: 15 Jul 2013 16:23:26 -0000 Message-ID: <20130715162326.2571.qmail@irelay.ssr.com> From: Scott Ballantyne To: freebsd-questions@freebsd.org Subject: Adding another mirror to existing ZFS-root mirror? References: <20130629162457.95950.qmail@irelay.ssr.com> <20130629191109.cd9444c9.freebsd@edvax.de> <20130629202823.97250.qmail@irelay.ssr.com> X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Jul 2013 17:04:43 -0000 Hi, I have the current situation: sdb@gigawattmomma$ zpool status zroot NAME STATE READ WRITE CKSUM zroot ONLINE 0 0 0 mirror-0 ONLINE 0 0 0 gpt/disk0 ONLINE 0 0 0 gpt/disk1 ONLINE 0 0 0 I boot directly from this. This article from Oracle: http://docs.oracle.com/cd/E19253-01/819-5461/gazgw/index.html implies I can add two more disks to the zroot pool with a zpool add zroot mirror disk2 disk3 to get zroot mirror-0 gpt/disk0 gpt/disk1 mirror-1 gpt/disk2 gpt/disk3 My questions: 1) Will booting still work? What do I need to do to make sure I can still boot up the system? Perhaps related: 2) How do I use gpart to prep these disks? The current mirror has the usual three partitions (freebsd-boot, freebsd-swap and freebsd-zfs), with boot code installed, obviously. Do I need to do that with the second mirror, or can I just use the whole thing for a freebsd-zfs filesystem? Sorry this was a bit long. Thanks in advance for any help. Best, Scott -- sdb@ssr.com