Raidz3 硬盘数请教

Status
Not open for further replies.

leavelost

Dabbler
Joined
Mar 14, 2015
Messages
13
各位下午好,小弟最近想升级Freenas的硬件,之前一直是用HP N54L+16G ECC内存搭建的6盘位raidz2,各方面还算均衡,现在想换台主机升级至raidz3,不知道9个硬盘或11硬盘哪种方案更合适,因为涉及到机箱大小的选购,所以一定要先确定好硬盘数量,还望各位不吝赐教,谢谢啦~
 

Fei

Explorer
Joined
Jan 13, 2014
Messages
80
你可以參考一下我在網路上找到的資訊
  • MIRROR (raid1) used with two(2) to four(4) disks or more.
  • RAIDZ-1 (raid5) used with five(5) disks or more.
  • RAIDZ-2 (raid6) used with six(6) disk or more.
  • RAIDZ-3 (raid7) used with eleven(11) disks or more.
我自己計算的方法是,扣除parity disk後,data disk要是為2的次方數是比較好的。
例如:
你用11顆硬盤做成Riad-Z3 就有 Data disk *8(2^3) + parity disk *3 ,這樣子效能也許會比較好。
 

leavelost

Dabbler
Joined
Mar 14, 2015
Messages
13
你可以參考一下我在網路上找到的資訊
  • MIRROR (raid1) used with two(2) to four(4) disks or more.
  • RAIDZ-1 (raid5) used with five(5) disks or more.
  • RAIDZ-2 (raid6) used with six(6) disk or more.
  • RAIDZ-3 (raid7) used with eleven(11) disks or more.
我自己計算的方法是,扣除parity disk後,data disk要是為2的次方數是比較好的。
例如:
你用11顆硬盤做成Riad-Z3 就有 Data disk *8(2^3) + parity disk *3 ,這樣子效能也許會比較好。
这就是我迷糊的地方,本论坛里基本都倾向你说的这个公式,但我又在wiki上看到了如下的配置:
  • Start a single-parity RAIDZ (raidz) configuration at 3 disks (2+1)
  • Start a double-parity RAIDZ (raidz2) configuration at 6 disks (4+2)
  • Start a triple-parity RAIDZ (raidz3) configuration at 9 disks (6+3)
  • (N+P) with P = 1 (raidz), 2 (raidz2), or 3 (raidz3) and N equals 2, 4, or 6
  • The recommended number of disks per group is between 3 and 9. If you have more disks, use multiple groups.
原链接:http://www.solarisinternals.com/wik...onfiguration_Requirements_and_Recommendations
 

Fei

Explorer
Joined
Jan 13, 2014
Messages
80
剛剛大概測試了一下9顆和11顆的效能,給你參考看看。

RaidZ3(6+3)
upload_2016-3-31_11-11-17.png

Code:
Sequential Read (Q= 32,T= 4) :   803.910 MB/s
  Sequential Write (Q= 32,T= 4) :    28.341 MB/s
  Random Read 4KiB (Q= 32,T= 4) :   310.465 MB/s [ 75797.1 IOPS]
Random Write 4KiB (Q= 32,T= 4) :     1.580 MB/s [   385.7 IOPS]
         Sequential Read (T= 1) :   663.569 MB/s
        Sequential Write (T= 1) :    21.812 MB/s
   Random Read 4KiB (Q= 1,T= 1) :    49.913 MB/s [ 12185.8 IOPS]
  Random Write 4KiB (Q= 1,T= 1) :     0.416 MB/s [   101.6 IOPS]


RaidZ3(8+3)
upload_2016-3-31_11-12-16.png

Code:
 Sequential Read (Q= 32,T= 4) :   803.918 MB/s
  Sequential Write (Q= 32,T= 4) :    38.721 MB/s
  Random Read 4KiB (Q= 32,T= 4) :   312.121 MB/s [ 76201.4 IOPS]
Random Write 4KiB (Q= 32,T= 4) :     1.895 MB/s [   462.6 IOPS]
         Sequential Read (T= 1) :   672.621 MB/s
        Sequential Write (T= 1) :    21.809 MB/s
   Random Read 4KiB (Q= 1,T= 1) :    49.877 MB/s [ 12177.0 IOPS]
  Random Write 4KiB (Q= 1,T= 1) :     0.425 MB/s [   103.8 IOPS]


11顆的效能會比9顆的好一些,因為data 硬盤比較多,但相對的以後你要擴充也要用11顆硬盤才能擴充,反則會導致你的整個volume效能下降。
 

leavelost

Dabbler
Joined
Mar 14, 2015
Messages
13
非常感谢,还特意跑了个测试~
结合我自己的情况,还是9盘位的z3适合我
再次感谢~
 

Caffe Mocha

Explorer
Joined
Aug 3, 2013
Messages
69
寫入有這麼差?
 

Fei

Explorer
Joined
Jan 13, 2014
Messages
80
我故意將sync都打開,這樣差異比較明顯一點。
 

Caffe Mocha

Explorer
Joined
Aug 3, 2013
Messages
69
原來如此, sync always.真的差很大啊


Sent from my iPhone using Tapatalk
 
Status
Not open for further replies.
Top