Page 1 of 1

Question on expanding pool

Posted: 02 Aug 2013 03:46
by Brent502
I have 2 x 1TB HD, which I format as ZFS storage pool device (da1, da2). Then I create a vDev (Name=raid1, Type=Mirror, Device=da1, da2).
I then create pool 'pool_1', add vDev 'raid1'. I create my DataSet and add Samba, NFS services..So far so good.

Now I have 2 x 2TB HD (da3, da4). I wish add it as mirror into the pool..I format both of them as ZFS storage pool device,
then at command line: zpool add pool_1 mirror da3 da4
Is that the correct way?? Or do I create a vDev 'raid2' for da3, da4 as mirror?? and can I add into the pool maybe with: zpool add pool_1 raid2 ???

I noticed when I did with 1st method...then later I try to remove da3 and da4 from pool_1..
I think I try: zpool detach pool_1 da3, which it let me..but I could not remove da4.
How can I remove the 2 mirror devices from pool_1 ?
Thanks!!

Re: Question on expanding pool

Posted: 02 Aug 2013 09:03
by raulfg3
Brent502 wrote:Now I have 2 x 2TB HD (da3, da4). I wish add it as mirror into the pool..I format both of them as ZFS storage pool device,
then at command line: zpool add pool_1 mirror da3 da4
Is that the correct way?? Or do I create a vDev 'raid2' for da3, da4 as mirror?? and can I add into the pool maybe with: zpool add pool_1 raid2 ???
both work

you can add by shell using:

Code: Select all

zpool add pool_1 mirror da3 da4
or you can use webGUI:
1 create a vDev 'raid2' for da3, da4 as mirror
2 add this new vdev to existing pool pool_1

Re: Question on expanding pool

Posted: 08 Aug 2013 07:04
by fsbruva
Do you want da3 and da4 to be mirrors to each other? Or to da1 and da2?

Each Vdev is its own entity. Pools can be spread across multiple vdevs. The presumption is that all the vdevs in a given pool will have the same structure or redundancy, but not necessarily the same size.

If you want da3 and da4 to be independent of the existing mirror containing da1 and da2, then create a separate pool. Adding vdevs will always increase the size of the pool. Once vdevs are added, they cannot be removed.