Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Aug 2010 18:20:09 -0700
From:      Artem Belevich <fbsdlist@src.cx>
To:        fbsd@dannysplace.net
Cc:        freebsd-fs <freebsd-fs@freebsd.org>
Subject:   Re: How is data written to a pool with multiple VDevs
Message-ID:  <AANLkTin6pXhP7Bsu9H8j3eO=Mkr%2Bo-vuCt0i6NhePo0s@mail.gmail.com>
In-Reply-To: <4C7D9BF1.9010102@dannysplace.net>
References:  <4C7D9BF1.9010102@dannysplace.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 31, 2010 at 5:18 PM, Danny Carroll <fbsd@dannysplace.net> wrote=
:
...
> My question is: =A0Since the data will initially be on only one of the
> raidz vdevs, when I add the second one, will ZFS re-organise the data on
> the whole pool to be efficient or will I end up with only new data being
> striped.

No, I believe ZFS will not reorganize the data that's already written.
However, ZFS will make an attempt to spread the data across both vdev
once both are available.

> If that is the case then I will try and find a way to build the new
> array fully on a temporary machine first before copying the data.

I guess once you've added second vdev and provided that you have
enough space left, you can try copying your dataset once again. New
copy will be spread across both vdevs.

--Artem



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTin6pXhP7Bsu9H8j3eO=Mkr%2Bo-vuCt0i6NhePo0s>