From owner-freebsd-questions@FreeBSD.ORG Mon Aug 1 15:27:31 2011 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 1B809106566C for ; Mon, 1 Aug 2011 15:27:31 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from outbound.icp-osb-irony-out8.iinet.net.au (outbound.icp-osb-irony-out8.iinet.net.au [203.59.1.134]) by mx1.freebsd.org (Postfix) with ESMTP id 8ACC18FC0C for ; Mon, 1 Aug 2011 15:27:30 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAAPFNk58qgxC/2dsb2JhbABBp2F3gUABAQQBOj8FCwsNORQYMROHbMAKhWNfBJdzLYtR X-IronPort-AV: E=Sophos;i="4.67,301,1309708800"; d="scan'208";a="133449837" Received: from unknown (HELO smtp.phoenix) ([124.170.12.66]) by outbound.icp-osb-irony-out8.iinet.net.au with ESMTP; 01 Aug 2011 23:27:28 +0800 Received: by smtp.phoenix (Postfix, from userid 1001) id E38AC10CE; Tue, 2 Aug 2011 01:27:25 +1000 (EST) Date: Tue, 2 Aug 2011 01:27:25 +1000 From: andrew clarke To: Dick Hoogendijk Message-ID: <20110801152725.GB87286@ozzmosis.com> References: <4E36B89A.4090200@nagual.nl> <20110801143754.GD59252@dan.emsphone.com> <4E36C09E.8050709@nagual.nl> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E36C09E.8050709@nagual.nl> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Dan Nelson , FreeBSD Questions Subject: Re: larger disk for a zfs pool 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: Mon, 01 Aug 2011 15:27:31 -0000 On Mon 2011-08-01 17:05:02 UTC+0200, Dick Hoogendijk (dick@nagual.nl) wrote: > But I'm confused about the gpart thing I did on the original disks. > > $ gpart show > => 34 156301421 ad4 GPT (75G) > 34 128 1 freebsd-boot (64K) > 162 8388608 2 freebsd-swap (4.0G) > 8388770 147912685 3 freebsd-zfs (71G) > > => 34 156301421 ad6 GPT (75G) > 34 128 1 freebsd-boot (64K) > 162 8388608 2 freebsd-swap (4.0G) > 8388770 147912685 3 freebsd-zfs (71G) > Do I repeat this gpart section on the new disk(s) before putting them in > the rpool (one at a time). Basically yes. Both drives in the mirror need the freebsd-boot partition, otherwise the drive without freebsd-boot won't be bootable if the other drive fails to boot. freebsd-swap can be any size. The sector count of the freebsd-zfs partition on the new drive needs to be equal or greater to the existing sector count, though. 147912685 in your case. gpart should do that automatically if the replacement drive is larger and you tell it just to use the remaining space. Don't forget this step: gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i nnn device > Is it compatrible to putting the solaris bootcode on disk before > attaching them to a rootpool and resilvering? I want to expand my > rootpool but am a little confused about the right procedure. I've not used Solaris, but I assume so. Regards Andrew