Page 1 of 1

Changed disks in RaidZ1 - not able to grow

Posted: 19 Apr 2016 23:31
by dboy
I have changed all 4 disks in a RaidZ1 on the command line.
1. I cant make the zpool accept that they are doubled in size. I have tried to export and import. I have set autosize=on
2.The disks still show with the old brandname etc in the Nas4free webgui.

I can't find exact info about what exact commands to use in the webgui to export and import the disks to make them show correctly in the Status-Disks menu, I suspect this may be why they still show with the old size.

Re: Changed disks in RaidZ1 - not able to grow

Posted: 20 Apr 2016 07:01
by b0ssman
the parameter is autoexpand not autosize

Re: Changed disks in RaidZ1 - not able to grow

Posted: 20 Apr 2016 07:42
by raulfg3
dboy wrote:2.The disks still show with the old brandname etc in the Nas4free webgui.
try to sync webgui & real pool

Re: Changed disks in RaidZ1 - not able to grow

Posted: 20 Apr 2016 10:24
by ChriZathens
Yeap, as b0ssman said, the parameter is not autosize...
In any case, autoexpand will not work if you set it now (after changing the disks)
As Raul said:
  • Go to Disks|Management ---> what do you see there?
    If disk names are red, click on Clear config & Import disks. You should see the correct disks now.
    The column named Device lists the names of the disks (ada0,ada1, etc, or da0,da1 etc, depending on your hardware; write down the names)
  • Another step to do is Disks|ZFS|Configuration|Synchronize and click on synchronize
You should now see the correct disks but the space is still the old smaller one.
So, in order to claim the additional space (assuming you have changed all the disks with larger ones):
Go to Advanced|Execute command and for every disk you have, run this command

Code: Select all

zpool online -e <poolname> <diskname>
Obviously, you must replace <poolname> with the name of your pool and <diskname> with the disk name for each command.
So if you have a pool named tank and the disks are ada0, ada1 & ada2 you should run those 3 commands:

Code: Select all

zpool online -e tank ada0
zpool online -e tank ada1
zpool online -e tank ada2
Then the additional space will be available

P.S: If you have any more questions, post screenshots of what you see and seek for advice before doing something you are not sure about! :D
Cheers!