Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 28 Feb 2017 13:51:40 -0800
From:      "Motty Cruz" <motty.cruz@gmail.com>
To:        "'Mike Clarke'" <jmc-freebsd2@milibyte.co.uk>
Cc:        "'freeBSD Mailing List'" <freebsd-questions@freebsd.org>
Subject:   RE: how to expand zpool
Message-ID:  <58b5f0ed.4603620a.1c6aa.c20b@mx.google.com>
In-Reply-To: <20170228095346.759e12f1@curlew>
References:  <58b49669.d264620a.7d458.47f0@mx.google.com> <CADqw_gJNN4sRSbg0An_DTHj-4PEkb-p49d%2B9iNT0V3EwytXckw@mail.gmail.com> <20170228095346.759e12f1@curlew>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <michaelsprivate@gmail.com> 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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?58b5f0ed.4603620a.1c6aa.c20b>