ZFS question - Growing

Status
Not open for further replies.

joshg678

Explorer
Joined
Sep 27, 2012
Messages
52
I've been studying ZFS for a few weeks now, and i seem to be hitting a wall.

Planning a 12 drive box.
I understand that there are only two ways to enlarge your pool. Either Creating a new Zdev and adding to the pool, or Replacing the drives one by one with larger ones.

So i've been testing inside Vmware but i have been running into problems with the replacing drive method.
Using Freenas 8.3, Beta 2 and 3.

I started off with 2 two 10gb drives
Setup a ZFS Mirror
put some file on it.

Removed one drive, replace with a bigger one, re-silvered, all good.
Removed the second drive, replace with a bigger one, re-silvered.
But the Size is still the same.

Im not sure what do do.
 

joshg678

Explorer
Joined
Sep 27, 2012
Messages
52
yes thank you.
All the information i find is not applicable to the FreeBSD/FreeNAS version.
The only thing i found before that was somewhat what i needed, was rebuilding the partition structure for each drive. Which completed, but the Pool did not see all the extra space. I enabled the Autogrow, but that did not make a difference.
Even Export/import of pool made no change.
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
It could be a v28 issue, I know it worked in v15 / FreeNAS 8.2

All the information i find is not applicable to the FreeBSD/FreeNAS version.

FreeNAS doesn't have it's own *special* version of ZFS, so I don't know what doesn't apply.

Did you try doing a scrub for grins?
 

joshg678

Explorer
Joined
Sep 27, 2012
Messages
52
i did do a scrub, and its says its all good.
Still no go.

I notice that the GUI seems to not update. When i pull a drive, it had to reboot for it to show. I even did a zpool status and it was not even showing there.
I wonder if im hitting bugs.

The stuff that dosn't apply, was information regarding the Solaris versions that are not released yet to BSD


I thought V28 was the first version where autogrow was supported?
 

ProtoSD

MVP
Joined
Jul 1, 2011
Messages
3,348
I notice that the GUI seems to not update. When i pull a drive, it had to reboot for it to show. I even did a zpool status and it was not even showing there.
I wonder if im hitting bugs.

This is a known issue

I thought V28 was the first version where autogrow was supported?

There was confusion about this when FreeNAS 8 first came out, but several people have verified that it works, at least in versions before 8.3.

Have you tried using a pool of disks other than a mirror?
 

joshg678

Explorer
Joined
Sep 27, 2012
Messages
52
I started using a 5 drive RaidZ setup, and then switched to a mirror to help simplify things.
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
It worked for me with a mirror under 8.3.0-BETA2. If I remember right autoexpand was set to off. I turned it on and it still hadn't expanded, but that's because I forgot to detach the smaller, now non-existent device. Try:
Code:
zpool online -e poolname device
 

joshg678

Explorer
Joined
Sep 27, 2012
Messages
52
That worked!
Running 8.3 beta 3 x64

I had to do use the Full device ids. SInce i only had two drives for this test it was easy only two drives.
If i tried useing da1p2 or da1 it gave me the error 'failed to expand can't find device'

Then after i detached it and re attached, and the new space was there!


Im going to build up a raidz setup and then test it there too to make sure it works there too for me.
If i run into any more problems i'll let you guys know.

Thanks!
 

joshg678

Explorer
Joined
Sep 27, 2012
Messages
52
so i tested this with a raidZ setup.
ran the same commands before and all seems well.

On a side note, i noticed when you run 'zpool list' the size of the pool is not the same as displayed in the GUI.
Currently i see 120G in command, and 78.3 in GUI.

I have 2X 3 22gb drives. any ideas?
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
Re-reading my [post=38900]post above[/post] I see I wasn't very clear. I did not need to run the zpool online -e command. My pool expanded once I removed the old, smaller offlined device. I did set autoexpand to on while the smaller device was still attached to the pool.

On a side note, i noticed when you run 'zpool list' the size of the pool is not the same as displayed in the GUI.
RTFM? Mainly because I'm interested in some feedback, see my last two posts in [post=39001]zfs fudge up, urgent[/post]. :p
 

joshg678

Explorer
Joined
Sep 27, 2012
Messages
52
i figured as much, not sure why i even asked that, must have been too tired last night.


I stumbled upon this post and i think this is exactly what i was looking for.

Going to do some more playing around, and then i might post a tutorial thats easy to find for zfs noobs.
 

paleoN

Wizard
Joined
Apr 22, 2012
Messages
1,403
Going to do some more playing around, and then i might post a tutorial thats easy to find for zfs noobs.
:confused: To do what?
Code:
zfs set autoexpand=on poolname
FYI, William already set autoexpand=on in trunk for pool creation.

No thoughts on SIZE property referenced in the other thread?
 

joshg678

Explorer
Joined
Sep 27, 2012
Messages
52
:confused: To do what?

was thinking of writing up a noob friendly how to with the only two ways to enlarge your storage.

Code:
zfs set autoexpand=on poolname
FYI, William already set autoexpand=on in trunk for pool creation.

No thoughts on SIZE property referenced in the other thread?

Im not sure who William is, is that possibly a Developer for FreeNAS?

Which would that mean the next release/beta for 8.3 have auto expand enabled?
 
Status
Not open for further replies.
Top