Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 03-23-2016, 07:19 AM   #1
LQ Newbie
Registered: Mar 2016
Posts: 1

Rep: Reputation: Disabled
ZFS RAID levels on Centos 7.2

Hey guys!

I have a monster server I'm provisioning at the minute.

There are 15 x 8TB HDD's connected to a SATA interface card that i'm using to create a ZFS volume. The drives are all detected and I've got the ZFS libraries installed and they're ready etc.

I created my ZFS volume using zpool. I opted for RAIDZ2, as I want double parity for the extra fault tolerence...

zpool create -f diskpool1 raidz2 sdc sdd sde sdf sdg sdh sdi sdj sdk sdl sdm sdn sdo sdp sdq
and if I check the status, thats all good...

[root@BACKUPNAS-I ~]# zpool status
  pool: diskpool1
 state: ONLINE
  scan: none requested

        NAME        STATE     READ WRITE CKSUM
        diskpool1   ONLINE       0     0     0
          raidz2-0  ONLINE       0     0     0
            sdc     ONLINE       0     0     0
            sdd     ONLINE       0     0     0
            sde     ONLINE       0     0     0
            sdf     ONLINE       0     0     0
            sdg     ONLINE       0     0     0
            sdh     ONLINE       0     0     0
            sdi     ONLINE       0     0     0
            sdj     ONLINE       0     0     0
            sdk     ONLINE       0     0     0
            sdl     ONLINE       0     0     0
            sdm     ONLINE       0     0     0
            sdn     ONLINE       0     0     0
            sdo     ONLINE       0     0     0
            sdp     ONLINE       0     0     0
            sdq     ONLINE       0     0     0

errors: No known data errors
But if I check the disk space, I'm only showing 87Tb

[root@BACKUPNAS-I ~]# df -h
Filesystem               Size  Used Avail Use% Mounted on
/dev/mapper/centos-root   50G  3.0G   47G   6% /
devtmpfs                 7.7G     0  7.7G   0% /dev
/dev/mapper/centos-home  154G   54M  154G   1% /home
/dev/md126p1             497M  188M  310M  38% /boot
diskpool1                 87T  256K   87T   1% /diskpool1

I know the raid levels vary from the RAID standards when using ZFS, due to its origins, however I anticipated that I'd have around 104TB usable with a RAID6-like configuration, giving me a fault tolerance of 2 disks in the pool.

Am I not doing something correctly, or is it simply the case that using what is essentially 'software RAID' with ZFS uses takes up alot of space (2 or so of my 8TB HDD's worth!)

Thanks in advance!
Old 03-24-2016, 01:59 AM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 17,241

Rep: Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638Reputation: 2638
A fair proportion of what you see as "missing" is you falling for sales-speak. They sold you 8TB drives (8x1000*1000*1000), and Linux tells you you have something less than 8TiB. See wikipedia for terabyte vs tibibyte.
Essentially you take the number you were sold and divide by 1024^3 - you "lose" 7% into the ether. Then there is filesystem overhead on top of that. Wouldn't matter if it was ZFS or not. Basically you just have to suck it up.
Old 03-27-2016, 10:36 PM   #3
Registered: Feb 2004
Location: Outside Paris
Distribution: Solaris 11.3, Oracle Linux, Mint, Tribblix
Posts: 9,755

Rep: Reputation: 458Reputation: 458Reputation: 458Reputation: 458Reputation: 458
Are you sure all the disks are 8TB?

15x8TB disks in a raidz2 configuration are leaving 13*8TB, roughly 96TiB. You only see 87TiB so there is something wrong. ZFS does have some overhead, but nothing that significant on an empty file system.

Please post the output of these commands:

dmesg | grep "logical blocks"
zpool list
zfs list


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
create disks for zfs raid rdkellerman CentOS 3 10-10-2014 01:57 PM
Checking RAID levels thannsun Linux - Newbie 3 07-15-2012 06:21 PM
raid levels and partition schemes on server ? indabhutt Slackware 7 11-15-2008 07:35 AM
Why is ZFS raid so slow???? kebabbert Solaris / OpenSolaris 4 07-16-2007 06:01 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 07:41 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration