From owner-freebsd-fs@FreeBSD.ORG Mon Sep 19 21:54:08 2011 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 3592F106564A for ; Mon, 19 Sep 2011 21:54:08 +0000 (UTC) (envelope-from fjwcash@gmail.com) Received: from mail-qw0-f45.google.com (mail-qw0-f45.google.com [209.85.216.45]) by mx1.freebsd.org (Postfix) with ESMTP id E4C808FC13 for ; Mon, 19 Sep 2011 21:54:07 +0000 (UTC) Received: by qwg2 with SMTP id 2so7071699qwg.4 for ; Mon, 19 Sep 2011 14:54:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=T3EXsgIKWF1xMvlNJgflDLnDp+AlHIyxcQdlAfS1Mog=; b=HzGAQ7nz+C7iRJsVfsBw+uP6LzxA7B5/zyC27IHJ+ec4AgeXYnTGJJVnyWql9yCV7u +YQJT6j8skipz0ST81fK5ve7OAenJVPRYXlnx4ynGJekXDalRd+c5f3U+WqPY24Wnrh1 7kUVNw/eW3Zurw9HxggH51YTZpNKm2h1dy64Y= MIME-Version: 1.0 Received: by 10.52.176.196 with SMTP id ck4mr25275vdc.168.1316469246900; Mon, 19 Sep 2011 14:54:06 -0700 (PDT) Received: by 10.220.198.130 with HTTP; Mon, 19 Sep 2011 14:54:06 -0700 (PDT) In-Reply-To: <20110919213813.GA70527@icarus.home.lan> References: <9774D03B-A8C7-48DE-9BC4-528DD4134787@altesco.nl> <20110919213813.GA70527@icarus.home.lan> Date: Mon, 19 Sep 2011 14:54:06 -0700 Message-ID: From: Freddie Cash To: Jeremy Chadwick Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org Subject: Re: ZFS auto expand mirror 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, 19 Sep 2011 21:54:08 -0000 On Mon, Sep 19, 2011 at 2:38 PM, Jeremy Chadwick wrote: > On Mon, Sep 19, 2011 at 10:49:56AM -0700, Freddie Cash wrote: > > On Mon, Sep 19, 2011 at 10:08 AM, Ben Stuyts wrote: > > > > > I want to expand an existing mirror by replacing the existing drives > with > > > bigger ones. This is on: > > > FreeBSD xxx 7.3-STABLE FreeBSD 7.3-STABLE #2: Mon Sep 20 18:36:08 CEST > 2010 > > > root@xxx:/usr/obj/usr/src/sys/xxx amd64 > > > > > > # zpool status home > > > pool: home > > > state: ONLINE > > > scrub: scrub completed after 2h0m with 0 errors on Mon Sep 19 18:25:45 > > > 2011 > > > config: > > > > > > NAME STATE READ WRITE CKSUM > > > home ONLINE 0 0 0 > > > mirror ONLINE 0 0 0 > > > ad5s1a ONLINE 0 0 0 > > > ad7s1a ONLINE 0 0 0 > > > > > > Will this version of FreeBSD auto-expand to the new, bigger drive size > once > > > they are both replaced? I did not see the autoexpand property in this > pool. > > > zpool is v13, zfs is v3. > > > > > > > No. You will need to reboot the system in order for the extra space to > > become usable in the pool. Or, if none of the OS is installed on the > pool, > > you can export/import the pool to make the new space available. > > Does this advice/fact apply to FreeBSD 7.3? To my knowledge it does > not. The ZFS version is too old. > > It's worked for me on our storage servers. These started with ZFSv6 and have been upgraded through each version, currently running ZFSv28 on 8-STABLE. Early versions of ZFS need the reboot or export/import cycle. Newer versions pick up the new space as soon as the resilver of the last drive in the vdev occurs (if the autoexpand property is enabled on the pool). -- Freddie Cash fjwcash@gmail.com