From owner-freebsd-fs@FreeBSD.ORG Tue May 29 01:55:58 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 55E17106566C for ; Tue, 29 May 2012 01:55:58 +0000 (UTC) (envelope-from bakul@bitblocks.com) Received: from mail.bitblocks.com (ns1.bitblocks.com [173.228.5.8]) by mx1.freebsd.org (Postfix) with ESMTP id 36A948FC0C for ; Tue, 29 May 2012 01:55:58 +0000 (UTC) Received: from bitblocks.com (localhost [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id B4A8CB82E; Mon, 28 May 2012 18:55:57 -0700 (PDT) To: kpneal@pobox.com In-reply-to: Your message of "Mon, 28 May 2012 21:35:22 EDT." <20120529013522.GB86408@neutralgood.org> References: <20120528070947.A917AB827@mail.bitblocks.com> <20120529013522.GB86408@neutralgood.org> Comments: In-reply-to kpneal@pobox.com message dated "Mon, 28 May 2012 21:35:22 -0400." Date: Mon, 28 May 2012 18:55:57 -0700 From: Bakul Shah Message-Id: <20120529015557.B4A8CB82E@mail.bitblocks.com> Cc: freebsd-fs@freebsd.org Subject: Re: zfs disk replace issue X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 29 May 2012 01:55:58 -0000 On Mon, 28 May 2012 21:35:22 EDT kpneal@pobox.com wrote: > On Mon, May 28, 2012 at 12:09:47AM -0700, Bakul Shah wrote: > > I have a zpool with 2 mirrors of two disks each. 3 of the > > disks are 1TB. I replaced three original 300GB disks with > > the TB disks and there were no problems > > > > Recently I upgraded to a new machine and trasferred the old > > zfs disks to the new machine and everything was ok. > > > > I then replaced the final 300GB disk with a 1TB disk. I > > noticed that after resilver finished (in two hours), "zpool > > status" kept showing 'replacing 0' and showed the old and new > > disk in the pool. I thought it would automatically take out > > the old disk? So then I manually "zpool detach"ed the old > > disk but the size of the mirror has not changed. > > > > Is this a bug or did I miss some step? I'd appreciate any help > > to make the extra space usable! This pool is root so it > > was mounted when I did this. May be that was the problem? > > I don't know if the 'autoexpand' property works on FreeBSD or not. If not > then you may have to export the pool and then reimport it. I don't know > how to do that when you are booting from the pool. Thanks. I did discover this property earlier today. At least for the older pool the default seems to be off. I turned it on but haven't had a chance to work on this... I just did zpool detach z ada4p1 zpool attach z ada1p1 ada4p1 That fixed it but now it is resilvering! Luckily it only takes about a couple hours! > Oh, and I don't know if this is needed or not, but the practice seems > to be to always do a scrub after a resilver has completed to a new, > larger, disk. Yeah, I already did that. Thanks for your response.