From owner-freebsd-questions@FreeBSD.ORG Mon Aug 1 15:29:37 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 717321065676 for ; Mon, 1 Aug 2011 15:29:37 +0000 (UTC) (envelope-from mail@ozzmosis.com) Received: from outbound.icp-qv1-irony-out4.iinet.net.au (outbound.icp-qv1-irony-out4.iinet.net.au [203.59.1.104]) by mx1.freebsd.org (Postfix) with ESMTP id DF6728FC12 for ; Mon, 1 Aug 2011 15:29:36 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: Av0EAKW/Nk58qgxC/2dsb2JhbABBp2F3gUABAQQBOj8FCwsNATgUGDETh2y/boVjXwSXcy2LUQ X-IronPort-AV: E=Sophos;i="4.67,300,1309708800"; d="scan'208";a="669529613" Received: from unknown (HELO smtp.phoenix) ([124.170.12.66]) by outbound.icp-qv1-irony-out4.iinet.net.au with ESMTP; 01 Aug 2011 23:01:38 +0800 Received: by smtp.phoenix (Postfix, from userid 1001) id D2CFA10C3; Tue, 2 Aug 2011 01:01:35 +1000 (EST) Date: Tue, 2 Aug 2011 01:01:35 +1000 From: andrew clarke To: Dan Nelson Message-ID: <20110801150135.GA87150@ozzmosis.com> References: <4E36B89A.4090200@nagual.nl> <20110801143754.GD59252@dan.emsphone.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20110801143754.GD59252@dan.emsphone.com> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: Dick Hoogendijk , 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:29:37 -0000 On Mon 2011-08-01 09:37:55 UTC-0500, Dan Nelson (dnelson@allantgroup.com) wrote: > In the last episode (Aug 01), Dick Hoogendijk said: > > > OK, my freebsd system runs on ZFS boot. W/ solaris getting larger disks > > for a pool was quit easy. Simply replace one disk from a mirror for a > > larger one, wait for the resilvering and after this replace the second > > one for a larger disk and wait for the resilvering again. That's it. > > Been there, done that. But my feeling tells me it is not that simple for > > a FreeBSD zfs root system, or is it? > > Should be the same procedure. Make sure you either use "zpool online -e" > when swapping in the new disks, or that you have the zpool autoexpand=on > attribute set. On my FreeBSD 8.2-RELEASE machine, "-e" is an "invalid option" and "autoexpand" an "invalid property". I suspect these are features of ZFS v28 and are not provided with the ZFS v15 provided with FreeBSD 8.2-REL. Judging from behaviour I experienced experimenting with ZFS in a virtual machine using 8.2-REL, it was possible to replace all drives in a ZFS mirror with larger ones and increase the size of the pool, but (after resilvering) it required either a reboot, or (if I recall correctly): zpool export tank zpool import tank for the increased size to become available. So I assume "autoexpand" was implied for ZFS v15. However this was not with FreeBSD booting from 'tank'. Trying to run "zpool export tank" may result in a "Device busy" error if the boot device was the "tank" pool. It might be worthwhile experimenting in on a spare (or virtual) machine to get a definitive answer, especially since there seem to be differences depending on FreeBSD version. Regards Andrew