Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1945808
  • 博文数量: 1000
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 7921
  • 用 户 组: 普通用户
  • 注册时间: 2013-08-20 09:23
个人简介

storage R&D guy.

文章分类

全部博文(1000)

文章存档

2019年(5)

2017年(47)

2016年(38)

2015年(539)

2014年(193)

2013年(178)

分类: 服务器与存储

2015-05-07 15:54:40

确实,基本上两者的原理很像,都是RAID0和RAID1的结合,不过还是有些区别的。
 
raid01,先条带后镜像
aba'b'

raid10是先做镜像,再条带
aa'bb'

Raid10要比raid01可靠性高,因为raid10中的任何一个盘失效,还有一个镜像存在。而01中任何一个盘失效则完全降级为raid1了。

性能相差不大。

以下转自 RAID10与RAID01 

RAID10~RAID0+1~RAID0+RAID1 
RAID01~RAID1+0~RAID1+RAID0 

如果对2n(n>=2)作镜像,系统将自动执行RAID1+0 

一点解释: 
RAID 0+1 - using 4 drives, two pairs are striped, and the results mirror each other. In this configuration, when one of the drives fails, it actually breaks the stipe that it belongs to, which in turn breaks the mirror... at this point, all you have is 1 stipe. At this point, if one drive fails, you are in trouble. To recover, the offending drive is removed, and the entire stipe needs to be resync'd. 

RAID 1+0 - using 4 drives, two pairs are mirrored, and the results are used to create a single stripe. In this configuration, when one of the drives fails, it only breaks one mirror, without affecting the stripe... at this point, only 1/2 of the stipe is mirrored... but if a 2nd drive failure were to occur, it has a 2-in-3 chance of occuring on the last mirror... if it does, you are still OK. To recover, the offending drive is removed, and only the mirror of 1/2 the stripe needs to be resync'd. 

举例说明: 
raid 1+0 
A1=B1 
A2=B2 
A=A1+A2 
B=B1+B2 
当A1坏时,B1再坏整个RAID完蛋,几率为1/3 

raid 0+1 
A=A1+A2 
B=B1+B2 

A=B 
当A1坏时,A即坏但是同时B坏任何一块整个RAID都完蛋,几率为2/3 

所以1+0好于O+1
阅读(1242) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~