Bomi
分类: 服务器与存储
2012-02-05 11:36:50
Copyright 2010, The e. Publishing Dept. of Morpho Studio ( Spruce Int. Found. ) All rights reserved
我们都知道ZFS 有几种基本的RAID 模式:
1.RAID 0 (不指定RAID 选项)
zpool create poolname c8t1d0 c8t2d0
2.RAID 1 ( mirror)
a.基本的2个盘的 RAID 1
zpool create poolname mirror c8t1d0 c8t2d0
b. 超过2个盘的 RAID1
目前大多数的廉价HBA (比如LSI SAD-9211-8i) 都只支持2个盘的mirror,Windows 的逻辑卷管理,LVM 也是只支持2个盘的RAID 1 卷,而ZFS可以轻易突破这个限制!
zpool create poolname mirror c8t1d0 c8t2d0 c8t3d0
3.RAID Z (RAIDZ1) 相当于RAID5
a.2个盘的RAIDZ (相当于mirror (RAID1))
zpool create poolname raidz c8t1d0 c8t2d0
b.2个盘以上的RAIDZ zpool create poolname raidz c8t1d0 c8t2d0 c8t3d0
RAID Z 还有2种更高安全等级的扩展模式 RAID Z2 和RAID Z3
RAID Z2 相当于RAID 6
c.3个盘的RAID Z2 (相当于3个盘的mirror (RAID1))
zpool create poolname raidz2 c8t1d0 c8t2d0 c8t3d0
d.3个盘以上的RAID Z2
zpool create poolname raidz2 c8t1d0 c8t2d0 c8t3d0 c8t4d0 c8t5d0
RAID Z3
e.4个盘的RAID Z3 (相当于4个盘的mirror (RAID1))
zpool create poolname raidz3 c8t1d0 c8t2d0 c8t3d0 c8t4d0
f.3个盘以上的RAID Z3
zpool create poolname raidz3 c8t1d0 c8t2d0 c8t3d0 c8t4d0 c8t5d0 c8t6d0 c8t8d0
基于以上3种基本的ZFS RAID 模式,我们可以组合出丰富多彩的ZFS RAID 模式,比如高性能的ZFS RAID 10 和
ZFS RAID Z0 。
6个盘的ZFS RAID 10
a.2*3 模式
zpool create poolname mirror c8t1d0 c8t2d0 mirror c8t3d0 c8t4d0 mirror c8t5d0 c8t6d0
b.3*2 模式
zpool create poolname mirror c8t1d0 c8t2d0 c8t3d0 mirror c8t4d0 c8t5d0 c8t6d0
6个盘的ZFS RAID Z0 (相当于RAID 50,60)
zpool create poolname raidz c8t1d0 c8t2d0 c8t3d0 raidz c8t4d0 c8t5d0 c8t6d0
下面来看一组测试数据:
20个1TB SATA ZFS RAID 10 PK 20个 1TB SATA ZFS RAID Z0