Page 1 of 1

Trying to set up a ZFS Pool - WONT WORK

Posted: 22 May 2013 14:12
by jabami
Hi there,

Im trying to set up a NAS with a ZFS File System. Using 4 HDDS in one Raidz-VDEF mounted as one ZFS-Pool. However, I can´t to get this to work via the GUI. Everytime I try I get a failure message in the ZFS-Pools-Management Window. However, creating a VDEF with all HDD´s in Raidz prior to creating the Pool works just fine.
Now the odd thing is, when creating the Pool via ssh I get the following:

Code: Select all

login as: root
root@192.168.178.38's password:
Last login: Wed May 22 12:47:16 2013
Welcome to NAS4Free!
nas4free:~# gnop create -S 4096 ada0
nas4free:~# gnop create -S 4096 ada1
nas4free:~# gnop create -S 4096 ada2
nas4free:~# gnop create -S 4096 ada3
nas4free:~# zpool create -n Pool1 raidz ada0.nop ada1.nop ada2.nop ada3.nop
invalid vdev specification
use '-f' to override the following errors:
raidz contains devices of different sizes
nas4free:~#
Note that I was doing a "Dry Run" just to show the Failure. However, If I now force the ZFS-pool to be established, I get the following:

Code: Select all

nas4free:~# zpool create -f Pool1 raidz ada0.nop ada1.nop ada2.nop ada3.nop
nas4free:~# zpool status -v
  pool: Pool1
 state: ONLINE
  scan: none requested
config:

        NAME          STATE     READ WRITE CKSUM
        Pool1         ONLINE       0     0     0
          raidz1-0    ONLINE       0     0     0
            ada0.nop  ONLINE       0     0     0
            ada1.nop  ONLINE       0     0     0
            ada2.nop  ONLINE       0     0     0
            ada3.nop  ONLINE       0     0     0

errors: No known data errors
nas4free:~#
So the ZFS-Pool named Pool1 has been created using Raidz. Now checking the allignment:

Code: Select all

nas4free:~# zdb -C | grep ashift
            ashift: 12
nas4free:~#
Well that looks nice... But If check on the Pools actual size ... I get a surprise such as:

Code: Select all

nas4free:~# zpool list
NAME    SIZE  ALLOC   FREE    CAP  DEDUP  HEALTH  ALTROOT
Pool1  2.33T   912K  2.33T     0%  1.00x  ONLINE  -
nas4free:~#
The last statement is absolutely hilarious as Im using WD 3TB Red as ada0 and ada1; a WD Caviar Blue 650GB as ada2 and a Seagate Barracuda.7200.12 as ada3.
Now where is my mistake? I would expect the Poolsize to be around 6.7 TB not 2.33 TB!!!
I allready used wipe.sh from the wiki to clean the HDD´s prior to creating the ZFS-Pool. Furthermore, I reinstalled the system, cleaned the config-File. Tried both the WEB-Gui (Which would´nt create the Pool at all) and forced Pool-creation via ssh as shown above.
Any suggestions are highly appreciated.


NAS4Free latest Version (NAS4Free-9.1.0.1/9.1.0.1.690) on USB Stick (Embedded install)
2x WD Red 3TB
1x WD Caviar Blue 650GB
1x Seagate Barracuda.7200.12
HP ProLiant Micro Server N40l

Until now there is no Data on the HDD´s so I don´t have to worry about any Dataloss what so ever!

Thank you very much for your help!

Re: Trying to set up a ZFS Pool - WONT WORK

Posted: 22 May 2013 14:45
by b0ssman
you used hds with different sizes.

the smallest size determines the raid size.

so in effect you have 4 650 GB Drives in that configuration.

Re: Trying to set up a ZFS Pool - WONT WORK

Posted: 22 May 2013 14:54
by raulfg3
jabami wrote:The last statement is absolutely hilarious as Im using WD 3TB Red as ada0 and ada1; a WD Caviar Blue 650GB as ada2 and a Seagate Barracuda.7200.12 as ada3.
Now where is my mistake? I would expect the Poolsize to be around 6.7 TB not 2.33 TB!!!
answer by b0ssman,.

But if you want to have more space, perhaps you want a JOBD of disk, it's possible to do with ZFS, but remember that you lose redundancy, and I do not suggest, only need to eliminate raidz from your create command.

Read this to understand: http://forums.freenas.org/showthread.ph ... -for-noobs!

PD: Based in your actual disk, your better config using redundancy is create a mirror using 3TB disk, and use 650GB and Seagate as individual Disk.

In future you can grow adding 2 3TB disk in miror to existing Mirror and have 6TB in mirror

Re: Trying to set up a ZFS Pool - WONT WORK

Posted: 22 May 2013 15:15
by jabami
Hi there,

thanks for these answers! Just to get this right, I NEED Hdd´s of the same size to maximize my Raids effective storage capacity? Actually I read the "SlideShow" but I can´t remember it stating to use Hdd´s of the same size.

THANKS FOR THE HELP!!

Re: Trying to set up a ZFS Pool - WONT WORK

Posted: 22 May 2013 15:20
by raulfg3
jabami wrote:Just to get this right, I NEED Hdd´s of the same size to maximize my Raids effective storage capacity?
YES