Page 1 of 1

ZFS expanding problem (not growing)

Posted: 24 Jun 2015 23:59
by yanqc
Hi,

I just replaced a 2TB in my ZFS pool with a 3TB one and after many different tries, I can't get it to expand. I replaced another disk a few months back and I was doubting the ZFS pool expanded. Now I'm pretty sure it didn't.

Autoexpand is on.

Code: Select all

zpool set autoexpand=on VD1pool
I did replace the disk using the offline and online commands and resilvered averything. I also rebooted asfter resilvering and after trying the following "online" and "export/import" commands.

I tried every little trick (see below) I've seen online and still my pool won't expand.
https://forums.freebsd.org/threads/zfs- ... and.28703/
http://tomasz.korwel.net/2014/01/03/growing-zfs-pool/
http://docs.oracle.com/cd/E19253-01/819 ... index.html
viewtopic.php?f=66&t=9057

My pool showed 16.8T before the whole process and still shows the same. Here's the status.

Code: Select all

nas4free: ~ # zpool status
  pool: VD1pool
 state: ONLINE
status: The pool is formatted using a legacy on-disk format.  The pool can
        still be used, but some features are unavailable.
action: Upgrade the pool using 'zpool upgrade'.  Once this is done, the
        pool will no longer be accessible on software that does not support feature
        flags.
  scan: resilvered 40K in 0h0m with 0 errors on Wed Jun 24 13:05:05 2015
config:

        NAME        STATE     READ WRITE CKSUM
        VD1pool     ONLINE       0     0     0
          raidz2-0  ONLINE       0     0     0
            ada0    ONLINE       0     0     0
            ada2    ONLINE       0     0     0
            ada3    ONLINE       0     0     0
            ada4    ONLINE       0     0     0
            ada1    ONLINE       0     0     0
            ada6    ONLINE       0     0     0
            ada5    ONLINE       0     0     0
            ada8    ONLINE       0     0     0
            ada9    ONLINE       0     0     0

errors: No known data errors
Tried bringing every disk online with no luck. The changed disk was ada5 but I've tried with every one just in case. ada7 Being my NAS4FREE install SSD.

Code: Select all

zpool online -e VD1pool /dev/ada1
zpool online -e VD1pool /dev/ada2
zpool online -e VD1pool /dev/ada3
zpool online -e VD1pool /dev/ada4
zpool online -e VD1pool /dev/ada5
zpool online -e VD1pool /dev/ada6
zpool online -e VD1pool /dev/ada8
zpool online -e VD1pool /dev/ada9
Did export and import with no luck

Code: Select all

zpool export VD1pool
zpool import VD1pool
Anyone has a clue?

Thanks so much.

Re: ZFS expanding problem (not growing)

Posted: 25 Jun 2015 03:30
by erico.bettoni
The pool will expand after you replace every disk in it.

Re: ZFS expanding problem (not growing)

Posted: 25 Jun 2015 07:58
by raulfg3
to add more info: the pool DO NOT expand if you only change one or two disk, the pool only grow if you change all disk in the pool (or in the vdev).

please read this powerpoint: https://forums.freenas.org/index.php?th ... oobs.7775/

Re: ZFS expanding problem (not growing)

Posted: 26 Jun 2015 05:43
by yanqc
For some reason, I never got that small detail....

Now to find a way to back up all the data to rebuild my arrays... Thanks for the info guys, much appreciated!