From owner-freebsd-fs@FreeBSD.ORG Mon May 28 07:17:13 2012 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BA3441065672 for ; Mon, 28 May 2012 07:17:13 +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 948A18FC12 for ; Mon, 28 May 2012 07:17:13 +0000 (UTC) Received: from bitblocks.com (localhost [127.0.0.1]) by mail.bitblocks.com (Postfix) with ESMTP id A917AB827 for ; Mon, 28 May 2012 00:09:47 -0700 (PDT) To: freebsd-fs@freebsd.org Date: Mon, 28 May 2012 00:09:47 -0700 From: Bakul Shah Message-Id: <20120528070947.A917AB827@mail.bitblocks.com> Subject: 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: Mon, 28 May 2012 07:17:13 -0000 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? Thanks, Bakul Rough transcript follows: $ zpool iostat -v capacity operations bandwidth pool alloc free read write read write ---------- ----- ----- ----- ----- ----- ----- z 832G 330G 49 98 887K 471K mirror 603G 327G 37 64 800K 329K ada2p1 - - 19 20 425K 330K ada3p1 - - 19 20 409K 330K mirror 229G 3.39G 12 33 86.9K 142K ada4p1 - - 6 33 47.0K 143K ada1p1 - - 6 33 64.7K 143K ---------- ----- ----- ----- ----- ----- ----- $ gpart list ada1 ada2 ada3 ada4 | grep -A2 p1 1. Name: ada1p1 Mediasize: 1000204851712 (931G) Sectorsize: 512 -- 1. Name: ada2p1 Mediasize: 1000204851712 (931G) Sectorsize: 512 -- 1. Name: ada3p1 Mediasize: 1000204851712 (931G) Sectorsize: 512 -- 1. Name: ada4p1 Mediasize: 1000204851712 (931G) Sectorsize: 512