From owner-freebsd-questions@freebsd.org Tue Feb 28 21:51:43 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 34AEBCF2EE7 for ; Tue, 28 Feb 2017 21:51:43 +0000 (UTC) (envelope-from motty.cruz@gmail.com) Received: from mail-pf0-x22c.google.com (mail-pf0-x22c.google.com [IPv6:2607:f8b0:400e:c00::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 03100CB6 for ; Tue, 28 Feb 2017 21:51:43 +0000 (UTC) (envelope-from motty.cruz@gmail.com) Received: by mail-pf0-x22c.google.com with SMTP id w189so5718056pfb.0 for ; Tue, 28 Feb 2017 13:51:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:from:to:cc:references:in-reply-to:subject:date :mime-version:content-transfer-encoding:thread-index :content-language; bh=b4ERObFJGdFUygcvY6L4lwRWvC0cQdksGaC+kN3XLVw=; b=siAleU1P2n7JNrycXYjTdzPTF7/fHaYXeP3oyH6emDBZxQQKdOeDGf+6k2tY+znpeM tkKYIPVgWBD2xIYXkDDyJj+/Z/QXDkhl5WMrQA7PBDswhzWZzk66ISnBmTSJQULP13cF StnymmaiNcJIV6j7bxYup2r0QTY6FOQ+1u2RUgIJ/X5muCAxzwMfg03088HmCwfJzFsD NwNEJaeQ9JiTuCR4uKV288zgryQE5ebral0tqrM7+Gewbdl/f1HylU8VtUDe0lezU4je wIQdhQ7HRzcXT3KtvfSUbGBW7ytaDXUm5QbGBC5S59ge7nq7ew2JvLly2dGHd18/BZjg xm3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:from:to:cc:references:in-reply-to :subject:date:mime-version:content-transfer-encoding:thread-index :content-language; bh=b4ERObFJGdFUygcvY6L4lwRWvC0cQdksGaC+kN3XLVw=; b=taY4bqRm2aChy8aujZ2thtwF52vgg22or6szHMhhCBcC2EyobANWMT4PCUBTiHp3/F ihW0zGimxvJ5uWPKPUuhRPprLm3nomuzfSxF04kEaQWfLAwMNe9Qygvx5pLRa+JXOmF3 1KvLGk5Z7W5/DqLY/ufGbUcuc+8p4d07/A08YP5h3yQpSvpPKNpf3l4xL3VfBdeT43mK g4yOGCeBDcju19oKnJR5ljbHb60rXMkDh2liyHIOVO5727YPG4ve9VfOAIX7zTHOzKd1 W1UKmDdYEnwiUYsv2BY5/5cREs1vpQy0a8z24ApPu6T1moLDqX8j2hett8kkISXkotIG RYGg== X-Gm-Message-State: AMke39lM0N6BWLdyVyyMFbTtjqp1WWI6upT4uO4KCwcPCL/xr/sM7UZlUZRqHDoy9Aa09A== X-Received: by 10.99.4.134 with SMTP id 128mr4961625pge.77.1488318702146; Tue, 28 Feb 2017 13:51:42 -0800 (PST) Received: from taliz (aswan.sscsinc.com. [199.96.38.41]) by smtp.gmail.com with ESMTPSA id 67sm6018988pfd.120.2017.02.28.13.51.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 28 Feb 2017 13:51:41 -0800 (PST) Message-ID: <58b5f0ed.4603620a.1c6aa.c20b@mx.google.com> X-Google-Original-Message-ID: <036801d2920c$d879f5e0$896de1a0$@cruz@gmail.com> From: "Motty Cruz" To: "'Mike Clarke'" Cc: "'freeBSD Mailing List'" References: <58b49669.d264620a.7d458.47f0@mx.google.com> <20170228095346.759e12f1@curlew> In-Reply-To: <20170228095346.759e12f1@curlew> Subject: RE: how to expand zpool Date: Tue, 28 Feb 2017 13:51:40 -0800 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 12.0 thread-index: AdKRqIBJapCYQtbNQCeNSzmKr4u/ngAZBwLw Content-Language: en-us X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Feb 2017 21:51:43 -0000 Yes I had " zpool set autoexpand=on tank" and yes I have a backup. After replacing all the disk: $ zpool set autoexpand=on tank $ zpool replace tank /dev/sdb /dev/sdd # replace sdb with temporary installed sdd $ zpool status -v tank # wait for the replacement to be finished $ zpool replace tank /dev/sdc /dev/sde # replace sdc with temporary installed sde $ zpool status -v tank # wait for the replacement to be finished $ zpool export tank $ zpool import tank $ zpool online -e tank /dev/sdd $ zpool online -e tank /dev/sde $ zpool export tank $ zpool import tank Now it sees all the space! Thanks, Motty -----Original Message----- From: Mike Clarke [mailto:jmc-freebsd2@milibyte.co.uk] Sent: Tuesday, February 28, 2017 1:54 AM Cc: Motty Cruz; freeBSD Mailing List Subject: Re: how to expand zpool On Tue, 28 Feb 2017 08:27:10 +0100 Michael Schuster wrote: > simply put, physically replace one disk, 'zpool replace' it. when > that's done, next disk ... This process is very well documented :-) You need to set autoexpand for the pool to "on" before it can grow to utilise the extra space. Also see https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216881 there's a bug which causes zpool detach to hang if autoexpand is set to "on". I don't know if this also affects zpool replace but to be safe leave autoexpand set to "off" until after you've replaced the last drive. -- Mike Clarke