Page 1 of 1

Pool growth, upgrades, or replacements

Posted: 11 Sep 2014 04:30
by c71clark
Here is the setup: 1 stripe vdev consisting of 2 HDD. 1 mirror vdev consisting of 2 HDD. Both vdev in the same Pool.

A couple questions. First, to 'grow' this Pool, all I need to do is add new VDEV. When I add, say, another 2-disk-mirror vdev to the existing Pool, it is 'empty'. Will N4F continue to try and 'spread out' new data written? Or will it try to equalize the % Used of the new vdev by writing only to it for a while?

Next, if a physical disk in a (mirror) vdev fails, all I need to do to replace it is "offline" the disk, power down N4F, replace the disk, power up N4F, Import and Format the new (similar sized) physical disk, then Add it to the damaged vdev?

Lastly (for now, heh), if I wanted to upgrade the physical disks in an existing (mirror) vdev due to a lack of new port on the mobo, what should I do? "Offline" one disk as if it failed and replace it, then after the resilver, do the same to the other disk? Or do I need to somehow copy the data off that specific vdev, delete it, then create a new vdev with the new disks and add it to the Pool?

Re: Pool growth, upgrades, or replacements

Posted: 16 Sep 2014 01:44
by kenZ71
Not sure about the first question.

As for replacing a failed drive check out this link.
https://www.google.com/url?sa=t&source= ... RAP78CWs0w

To expand an array, simply swap out one drive for another larger drive using the steps in the above link. After the rebuild is done repeat then your pool will be larger. This is the process I followed when I outgrew my 2 500 gig drives in a mirror. I simply swapped in a pair of 2TB drives.

Re: Pool growth, upgrades, or replacements

Posted: 16 Sep 2014 07:22
by b0ssman
there is no way to influence the "spread".

just to be sure. you are aware that if one vdev dies the entire pool data is gone?.
i am saying that because you have a stripe in a pool. if either of those drives dies your pool is gone.

Re: Pool growth, upgrades, or replacements

Posted: 16 Sep 2014 07:47
by raulfg3
c71clark wrote:Here is the setup: 1 stripe vdev consisting of 2 HDD. 1 mirror vdev consisting of 2 HDD. Both vdev in the same Pool.
it's possible to add stripe disk to mirrors vdev but it's not recomended because if only one disk fail, you lose your entire pool.
c71clark wrote:Next, if a physical disk in a (mirror) vdev fails, all I need to do to replace it is "offline" the disk, power down N4F, replace the disk, power up N4F, Import and Format the new (similar sized) physical disk, then Add it to the damaged vdev?
actually, because you have 2 striped disk added to your pool , if one disk in your mirror fail, you loose all your data.


Please read this powerpoint to understand ZFS a bit better: http://forums.freenas.org/index.php?thr ... oobs.7775/

Re: Pool growth, upgrades, or replacements

Posted: 18 Sep 2014 15:40
by c71clark
I'm not trying to be pedantic here, just feeling around for the edges of the issues! Earlier I asked about how ZFS handles writing data to a pool, and the answer basically was that N4F tries to evenly spread data, but it's not for sure. So technically, would any data written to one of the mirror vdevs ONLY (zfs doesn't write it to the stripe vdev) be recoverable if the stripe vdev fails?

The Guide linked above says that if any 'vdev fails' all data in the pool is gone forever. I think I understand, but want to be clear that this means an ENTIRE vdev has to fail for the Pool to be lost. Specifically, for an entire vdev mirror fail, ALL of the drives in that vdev would have to fail for the 'vdev' to fail, correct? For a stripe vdev, only one drive has to fail, no matter how many drives in the vdev stripe. This points back to the question above.