Where's the space? raidz2

Freddie Cash fjwcash at gmail.com
Fri Aug 6 09:36:08 UTC 2010


On Mon, Aug 2, 2010 at 4:27 PM, Dan Langille <dan at langille.org> wrote:
> On 8/2/2010 7:11 PM, Dan Langille wrote:
>>
>> I recently altered an existing raidz2 pool from using 7 vdevs of about
>> 931G to 1.81TB. In fact, the existing pool used half of each HDD. I then
>> wanted to go to using [almost] all of each HDD.
>>
>> I offline'd each vdev, adjusted the HDD paritions using gpart, then
>> replaced the vdev. After letting the resilver occur, I did the next vdev.
>>
>> The space available after this process did not go up as I expected. I
>> have about 4TB in the pool, not the 8 or 9TB I expected.
>
> This fixed it:
>
> # zpool export storage
> # zpool import storage

There's a version of ZFS includes a new *autoexpand* property that
could be set on the pool.  With that set, the available space will be
made available automatically as soon as the last disk in a vdev is
replaced.  I don't know the exact version or whether it's supported in
FreeBSD's port of ZFS.  But it will be available at some point.  :)

-- 
Freddie Cash
fjwcash at gmail.com


More information about the freebsd-stable mailing list