Page 1 of 1

increase pool ZFS size

Posted: 13 Jun 2015 17:58
by françois ROLAND
If I have understand well, I can not add hard drive to a ZFS pool, but I can replace a hard drive by a biger one

Correct?

So, if my ZFS pool is build with 4 HD 1To, I can chang one by one HD with 2To

To be sure and don't break my system, sombody can describ me th complete process to do it?

Many thanks

Re: increase pool ZFS size

Posted: 13 Jun 2015 21:57
by raulfg3
yes, you can replace disk by big ones ( one at time and doing a scrub in each change).

or


You can add another vdev ( if you have 4x1TB in RaidZ1, you can add other 4 disk and have 4x1TB+4x1TB in RaidZ1)

Re: increase pool ZFS size

Posted: 18 Jun 2015 05:08
by Eliminateur
what are the commands to expand the pool once you changed all the drives?.

with the pool set to autoexpand, once we change the final disk will the new size be automagically attained? (ref: http://docs.oracle.com/cd/E19253-01/819 ... index.html )

Re: increase pool ZFS size

Posted: 19 Jun 2015 03:53
by kenZ71
I would consider going with 3 X 3TB or maybe 3 X 4TB in a RaidZ2 so you have less disks to power.

Of course the counter point might be smaller drives are less risk due to data being spread among more drives

Re: increase pool ZFS size

Posted: 20 Jun 2015 13:12
by françois ROLAND
so, I unplug my 1To hard drive, plug my new 2To hard drive and use command line : zpool pool1 scrub

nothing more?

or should I put old HD offline, replace it by new and put new one online?

Could you desribe proces for a ZFS dummy like me?

Re: increase pool ZFS size

Posted: 20 Jun 2015 14:33
by kenZ71
Step 1 verify backups are current.

Step 2, go here: http://mattwilson.org/?s=zfs

Re: increase pool ZFS size

Posted: 20 Jun 2015 18:41
by françois ROLAND
So

1st step, I replace (one after one) 2 HD 1To in my pool by 2 HD 2To

My pool is ONLINE, but total size didn't change

Maybe is normal and total size will be upgaded when I'm going to replace ALL HD of my pool with 2To HD

Or I forgot something ?

Re: increase pool ZFS size

Posted: 20 Jun 2015 21:01
by crowi
Maybe is normal and total size will be upgaded when I'm going to replace ALL HD of my pool with 2To HD
It should grow when you have exchanged all disks, at least after a reboot.
Otherwise go through this:
http://docs.oracle.com/cd/E19253-01/819 ... index.html
and/or this
http://tomasz.korwel.net/2014/01/03/growing-zfs-pool/

Re: increase pool ZFS size

Posted: 07 Feb 2016 03:34
by kenZ71
Many thanks for these tips!