Page 1 of 1

Replace HDD in RAIDZ

Posted: 25 Dec 2013 12:44
by drnicolas
I have 3 new 3TB HDDs which should replace old ones in an RAIDZ

As first Action, I offlined the first old HDD and replaced with a new one.

Using the GUI, I wanted now to 'online' the new HDD, but under devices, I get only a list of both reminaing old HDDs, not the new one.
using Status, I find my new HDD as a Long number and "was ada2.nop"
What should I do ?

Re: Replace HDD in RAIDZ

Posted: 25 Dec 2013 17:26
by sleid
zpool replace Name of pool Long number ada2

zpool online -e ada2

Re: Replace HDD in RAIDZ

Posted: 25 Dec 2013 21:14
by raulfg3

Re: Replace HDD in RAIDZ

Posted: 26 Dec 2013 00:48
by drnicolas
Okay, that worked; but only with the help of the cmdline. The Web-GUI seems not to be capable of doing the replace process.

But there remains a problem:
I am disappointed that the size of the pool stays at the same size as before.
I had once a pool with 696G; now all 3 HDDs have been replaced by 3TB models;
I would expect a new size of about 6G now.

I found somethig about a autoexpand-feature and activated this - no change

Merry christmas

Re: Replace HDD in RAIDZ

Posted: 26 Dec 2013 00:56
by drnicolas
Some more information:
hp-nas: ~ # zpool get expandsize vStorage
NAME PROPERTY VALUE SOURCE
vStorage expandsize 7.50T -
hp-nas: ~ #

Here you can see that there is a lot of space somewhere

Re: Replace HDD in RAIDZ

Posted: 26 Dec 2013 02:27
by ChriZathens
Not 100% sure but I think an export and reimport of your pool will do the trick.
Merry Christmas!

Re: Replace HDD in RAIDZ

Posted: 26 Dec 2013 07:31
by sleid
autoexpand-feature work BEFORE replace disk.

zpool online -e my disk work AFTER replace disk even disk is online

"You can use the zpool online -e command to expand the pool's size when a smaller disk is replaced by a larger disk. By default, pool size is not expanded to its full size unless the autoexpand pool property is enabled. You can expand the pool size automatically when a smaller disk is replaced by a larger disk by using the zpool online -ecommand even if the disk is already online or if the disk is currently offline."
source ORACLE

Re: Replace HDD in RAIDZ

Posted: 26 Dec 2013 13:01
by drnicolas
Thanky you. This worked for me.
I now have about 4.9T available.

Nevertheles, there seems to be a bug in Web-GUI.
See my new posting